BrunoBen commited on
Commit
d3cd7ef
·
verified ·
1 Parent(s): 58a77fa

<div id="how-it-works" class="order-2 md:order-1"> <h3 class="text-2xl font-bold mb-4">How It Works</h3> <p class="text-gray-400 mb-6"> We pick up every enquiry, qualify it, and book it—then notify both sides. <strong>Works with your tools.</strong> </p> <ul class="space-y-3"> <li class="flex items-start"> <div class="text-accent mr-3 mt-1"><i class=></i></div> <span><strong>1) Customer reaches you</strong> (call, SMS, WhatsApp, or your usual channel).</span> </li> <li class="flex items-start"> <div class="text-accent mr-3 mt-1"><i class=></i></div> <span><strong>2) We qualify</strong> suburb, job type, photos, access, timeframe, and budget.</span> </li> <li class="flex items-start"> <div class="text-accent mr-3 mt-1"><i class=></i></div> <span><strong>3) We book it</strong> into your Google/Outlook calendar and tag the job (e.g., “Plumbing — burst pipe”).</span> </li> <li class="flex items-start"> <div class="text-accent mr-3 mt-1"><i ></i></div> <span><strong>4) Everyone is notified</strong>: summary to you; confirmation & reminder to the customer.</span> </li> </ul> </div> Make the enumerations 1) 2) 3) and 4) have this formatclass="bg-gradient-to-r from-accent to-accent2 bg-clip-text text-transparent" - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +54 -17
index.html CHANGED
@@ -1224,24 +1224,61 @@
1224
  starfield.appendChild(star);
1225
  }
1226
 
1227
- // FAQ accordion
1228
- const accordions = document.querySelectorAll('.accordion');
1229
- accordions.forEach(accordion => {
1230
- const header = accordion.querySelector('.accordion-header');
1231
- const icon = header.querySelector('i');
1232
-
1233
- header.addEventListener('click', () => {
1234
- accordion.classList.toggle('active');
1235
-
1236
- if (accordion.classList.contains('active')) {
1237
- icon.classList.remove('fa-chevron-down');
1238
- icon.classList.add('fa-chevron-up');
1239
- } else {
1240
- icon.classList.remove('fa-chevron-up');
1241
- icon.classList.add('fa-chevron-down');
1242
- }
 
 
 
 
1243
  });
1244
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1245
 
1246
  // Smooth scrolling for anchor links
1247
  document.querySelectorAll('a[href^="#"]').forEach(anchor => {
 
1224
  starfield.appendChild(star);
1225
  }
1226
 
1227
+ // FAQ accordion (una abierta + animación)
1228
+ const accordions = document.querySelectorAll('.accordion');
1229
+
1230
+ // colapsa todo de inicio
1231
+ accordions.forEach(acc => {
1232
+ const header = acc.querySelector('.accordion-header');
1233
+ const content = acc.querySelector('.accordion-content');
1234
+ const icon = acc.querySelector('.accordion-header i');
1235
+ if (!header || !content) return;
1236
+
1237
+ // evita submit si es <button>
1238
+ if (header.tagName === 'BUTTON') header.type = 'button';
1239
+
1240
+ // preps para animación (quitamos hidden por si está en el HTML)
1241
+ content.classList.remove('hidden');
1242
+ content.style.overflow = 'hidden';
1243
+ content.style.maxHeight = '0px';
1244
+ content.style.transition = 'max-height 300ms ease';
1245
+ acc.classList.remove('active');
1246
+ if (icon) { icon.classList.remove('fa-chevron-up'); icon.classList.add('fa-chevron-down'); }
1247
  });
1248
+
1249
+ // click handlers
1250
+ accordions.forEach(acc => {
1251
+ const header = acc.querySelector('.accordion-header');
1252
+ const content = acc.querySelector('.accordion-content');
1253
+ const icon = acc.querySelector('.accordion-header i');
1254
+ if (!header || !content) return;
1255
+
1256
+ header.addEventListener('click', () => {
1257
+ const wasOpen = acc.classList.contains('active');
1258
+
1259
+ // cierra todos
1260
+ accordions.forEach(other => {
1261
+ const oc = other.querySelector('.accordion-content');
1262
+ const oi = other.querySelector('.accordion-header i');
1263
+ other.classList.remove('active');
1264
+ if (oc) oc.style.maxHeight = '0px';
1265
+ if (oi) { oi.classList.remove('fa-chevron-up'); oi.classList.add('fa-chevron-down'); }
1266
+ });
1267
+
1268
+ // si estaba cerrada, abre la actual
1269
+ if (!wasOpen) {
1270
+ acc.classList.add('active');
1271
+ content.style.maxHeight = content.scrollHeight + 'px';
1272
+ if (icon) { icon.classList.remove('fa-chevron-down'); icon.classList.add('fa-chevron-up'); }
1273
+ }
1274
+ });
1275
+ });
1276
+
1277
+ // re-calcula altura si cambia el layout (p.ej., responsive)
1278
+ window.addEventListener('resize', () => {
1279
+ const open = document.querySelector('.accordion.active .accordion-content');
1280
+ if (open) open.style.maxHeight = open.scrollHeight + 'px';
1281
+ });
1282
 
1283
  // Smooth scrolling for anchor links
1284
  document.querySelectorAll('a[href^="#"]').forEach(anchor => {