Skip to content

Commit 1be8b6c

Browse files
committed
.
1 parent cb6a1c1 commit 1be8b6c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,10 @@ <h1>Build Stunning Websites & Apps<br>Without Writing Code</h1>
383383
drag-and-drop platform.</p>
384384
<div style="display: flex; gap: 15px; justify-content: center; flex-wrap: wrap;">
385385
<a href="#" class="cta-button">Start Building Free</a>
386-
<a href="#" class="cta-button" id="openVideo"
387-
style="background: transparent; border: 2px solid white;">Watch Demo</a>
386+
<button class="cta-button" id="openVideo"
387+
style="background: transparent; border: 2px solid white;">
388+
Watch Demo
389+
</button>
388390
</div>
389391
</div>
390392
</div>
@@ -489,7 +491,7 @@ <h4>Legal</h4>
489491
});
490492

491493
// 2. SMOOTH SCROLLING: Intercepts link clicks to scroll gracefully instead of jumping
492-
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
494+
document.querySelectorAll('a[href^="#"]:not(#openVideo)').forEach(anchor => {
493495
anchor.addEventListener('click', function (e) {
494496
const href = this.getAttribute('href');
495497

0 commit comments

Comments
 (0)