diff options
author | Robby Zambito <contact@robbyzambito.me> | 2025-08-02 20:01:05 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2025-08-02 20:13:42 -0400 |
commit | 3da02432526c7b6ea1433948009faeb91ecf2d19 (patch) | |
tree | 9349240e341e19baf01477d2ec5e639cbca85a46 | |
parent | acfde602ff33e09de5f55942220d9a6dafd5d889 (diff) |
Link to login page
-rw-r--r-- | static/index.html | 4 | ||||
-rw-r--r-- | static/script.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/static/index.html b/static/index.html index a796239..98cacbc 100644 --- a/static/index.html +++ b/static/index.html @@ -18,8 +18,8 @@ <li><a href="#contact" class="nav-link">Contact</a></li> </ul> <div class="nav-actions"> - <button class="btn btn-ghost">Sign In</button> - <button class="btn btn-primary">Start Free Trial</button> + <a href="login.html" class="btn btn-ghost">Sign In</a> + <button class="btn btn-primary">Start Free Trial</button> </div> <div class="hamburger"> <span></span> diff --git a/static/script.js b/static/script.js index 1189cd4..17607a6 100644 --- a/static/script.js +++ b/static/script.js @@ -38,14 +38,14 @@ window.addEventListener('scroll', () => { navbar.style.background = 'rgba(255, 255, 255, 0.95)'; } }); - // CTA button handlers document.querySelectorAll('.btn').forEach(btn => { btn.addEventListener('click', (e) => { const buttonText = btn.textContent.toLowerCase(); if (buttonText.includes('sign in') || buttonText.includes('login')) { - alert('Redirecting to login page...\n\nThis would navigate to the sign-in form.'); + // Navigate to login page + window.location.href = 'login.html'; } else if (buttonText.includes('trial') || buttonText.includes('start')) { alert('Starting your free trial!\n\nThis would open the registration form with a 14-day trial.'); } else if (buttonText.includes('demo') || buttonText.includes('watch')) { |