umar8902 commited on
Commit
c2cd38b
Β·
verified Β·
1 Parent(s): 054f5af

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +8 -48
index.html CHANGED
@@ -4063,7 +4063,7 @@
4063
  <a href="javascript:void(0)" class="nav-link" data-section="howItWorksSection" onclick="scrollToSection('howItWorksSection')">How It Works</a>
4064
  <a href="javascript:void(0)" class="nav-link" data-section="safetySection" onclick="scrollToSection('safetySection')">Safety</a>
4065
  <a href="javascript:void(0)" class="nav-link" data-section="pricingSection" onclick="scrollToSection('pricingSection')">Pricing</a>
4066
- <button class="btn-primary landing-cta" style="padding: 10px 20px; font-size: 14px;">Try Nexa AI</button>
4067
  </nav>
4068
  </header>
4069
 
@@ -4072,8 +4072,8 @@
4072
  <h1 class="hero-title">Your <span id="typing-text"></span><span class="typing-cursor"></span><br>AI Assistant.</h1>
4073
  <p class="hero-subtitle">Chat with Nexa AI to get answers, generate stunning images, and boost your productivity. Your personal AI assistant for work and creativity.</p>
4074
  <div class="cta-container">
4075
- <button class="btn-primary landing-cta">Start Chatting β€” Free Forever</button>
4076
- <button class="btn-secondary landing-cta" data-section="featuresSection">View Demo</button>
4077
  </div>
4078
  <div class="trust-badges">
4079
  <div class="trust-badge"><i data-lucide="shield-check"></i> No credit card required</div>
@@ -4200,7 +4200,7 @@
4200
  <li style="display: flex; align-items: center; gap: 8px;"><i data-lucide="check" style="color: #10a37f; width: 18px;"></i> Deep Research Mode</li>
4201
  <li style="display: flex; align-items: center; gap: 8px;"><i data-lucide="check" style="color: #10a37f; width: 18px;"></i> Persistent Memory</li>
4202
  </ul>
4203
- <button class="btn-primary landing-cta" style="width: 100%; background: var(--accent-blue);">Get Started Now</button>
4204
  </div>
4205
  </div>
4206
  </section>
@@ -5542,18 +5542,9 @@
5542
  }
5543
 
5544
  // 2. Landing CTA Buttons ("Try Nexa AI", "Start Chatting")
5545
- const landingCta = target.closest('.landing-cta');
5546
- if (landingCta) {
5547
  e.preventDefault();
5548
- e.stopPropagation();
5549
- debugLog('DELEGATION: landing-cta handler fired');
5550
- const sectionId = landingCta.getAttribute('data-section');
5551
- debugLog(' sectionId=' + (sectionId || 'null'));
5552
- if (sectionId) {
5553
- scrollToSection(sectionId);
5554
- } else {
5555
- enterApp();
5556
- }
5557
  return;
5558
  }
5559
 
@@ -7220,7 +7211,6 @@
7220
  }
7221
 
7222
  handleRouting();
7223
- setupEventListeners();
7224
 
7225
  function renderLanding() {
7226
  document.getElementById('landingPage').style.display = 'block';
@@ -8162,10 +8152,11 @@
8162
  // Finished typing the word β€” pause, then start deleting
8163
  isDeleting = true;
8164
  setTimeout(typeEffect, newWordDelay);
8165
- } else if (isDeleting && charIndex === 0) {
8166
  // Finished deleting β€” move to next word
8167
  isDeleting = false;
8168
  wordIndex = (wordIndex + 1) % words.length;
 
8169
  setTimeout(typeEffect, 500);
8170
  } else {
8171
  setTimeout(typeEffect, isDeleting ? erasingDelay : typingDelay);
@@ -8192,7 +8183,6 @@
8192
  // 1. Run initialization first
8193
  try {
8194
  await init();
8195
- setupEventListeners();
8196
  } catch (initErr) {
8197
  console.error("init() failed:", initErr);
8198
  }
@@ -8240,35 +8230,5 @@
8240
  }
8241
  });
8242
  </script>
8243
-
8244
- <!-- DEBUG PANEL - Shows click events live -->
8245
- <div id="debugPanel" style="position:fixed;bottom:10px;right:10px;width:300px;max-height:200px;overflow-y:auto;background:rgba(0,0,0,0.9);color:#0f0;border:1px solid #0f0;padding:10px;font-family:monospace;font-size:11px;z-index:99999;border-radius:8px;">
8246
- <div style="font-weight:bold;margin-bottom:5px;color:#fff;">DEBUG LOG</div>
8247
- <div id="debugLog"></div>
8248
- </div>
8249
- <script>
8250
- function debugLog(msg) {
8251
- const el = document.getElementById('debugLog');
8252
- if (el) {
8253
- const line = document.createElement('div');
8254
- line.textContent = '> ' + msg;
8255
- line.style.marginBottom = '2px';
8256
- el.appendChild(line);
8257
- el.scrollTop = el.scrollHeight;
8258
- }
8259
- console.log('[DEBUG]', msg);
8260
- }
8261
- // Log all clicks on landing page
8262
- document.addEventListener('click', function(e) {
8263
- const btn = e.target.closest('button');
8264
- if (btn) {
8265
- debugLog('CLICK: ' + btn.textContent.trim().substring(0,20));
8266
- debugLog(' class=' + btn.className);
8267
- debugLog(' onclick=' + (btn.onclick ? 'YES' : 'NO'));
8268
- debugLog(' data-section=' + (btn.getAttribute('data-section') || 'null'));
8269
- }
8270
- }, true);
8271
- </script>
8272
-
8273
  </body>
8274
  </html>
 
4063
  <a href="javascript:void(0)" class="nav-link" data-section="howItWorksSection" onclick="scrollToSection('howItWorksSection')">How It Works</a>
4064
  <a href="javascript:void(0)" class="nav-link" data-section="safetySection" onclick="scrollToSection('safetySection')">Safety</a>
4065
  <a href="javascript:void(0)" class="nav-link" data-section="pricingSection" onclick="scrollToSection('pricingSection')">Pricing</a>
4066
+ <button onclick="enterApp()" class="btn-primary landing-cta" style="padding: 10px 20px; font-size: 14px;">Try Nexa AI</button>
4067
  </nav>
4068
  </header>
4069
 
 
4072
  <h1 class="hero-title">Your <span id="typing-text"></span><span class="typing-cursor"></span><br>AI Assistant.</h1>
4073
  <p class="hero-subtitle">Chat with Nexa AI to get answers, generate stunning images, and boost your productivity. Your personal AI assistant for work and creativity.</p>
4074
  <div class="cta-container">
4075
+ <button onclick="enterApp()" class="btn-primary landing-cta">Start Chatting β€” Free Forever</button>
4076
+ <button onclick="enterApp()" class="btn-secondary" data-section="featuresSection">View Demo</button>
4077
  </div>
4078
  <div class="trust-badges">
4079
  <div class="trust-badge"><i data-lucide="shield-check"></i> No credit card required</div>
 
4200
  <li style="display: flex; align-items: center; gap: 8px;"><i data-lucide="check" style="color: #10a37f; width: 18px;"></i> Deep Research Mode</li>
4201
  <li style="display: flex; align-items: center; gap: 8px;"><i data-lucide="check" style="color: #10a37f; width: 18px;"></i> Persistent Memory</li>
4202
  </ul>
4203
+ <button onclick="enterApp()" class="btn-primary landing-cta" style="width: 100%; background: var(--accent-blue);">Get Started Now</button>
4204
  </div>
4205
  </div>
4206
  </section>
 
5542
  }
5543
 
5544
  // 2. Landing CTA Buttons ("Try Nexa AI", "Start Chatting")
5545
+ if (target.closest('.landing-cta')) {
5546
+ enterApp();
5547
  e.preventDefault();
 
 
 
 
 
 
 
 
 
5548
  return;
5549
  }
5550
 
 
7211
  }
7212
 
7213
  handleRouting();
 
7214
 
7215
  function renderLanding() {
7216
  document.getElementById('landingPage').style.display = 'block';
 
8152
  // Finished typing the word β€” pause, then start deleting
8153
  isDeleting = true;
8154
  setTimeout(typeEffect, newWordDelay);
8155
+ } else if (isDeleting && charIndex < 0) {
8156
  // Finished deleting β€” move to next word
8157
  isDeleting = false;
8158
  wordIndex = (wordIndex + 1) % words.length;
8159
+ charIndex = 0;
8160
  setTimeout(typeEffect, 500);
8161
  } else {
8162
  setTimeout(typeEffect, isDeleting ? erasingDelay : typingDelay);
 
8183
  // 1. Run initialization first
8184
  try {
8185
  await init();
 
8186
  } catch (initErr) {
8187
  console.error("init() failed:", initErr);
8188
  }
 
8230
  }
8231
  });
8232
  </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8233
  </body>
8234
  </html>