Spaces:
Running
Running
navbar içerisinde yönlendirme yapmayan menüleri düzelt. Ek olarak sign up ve login butonları da çalışmıyor onları da düzelt.
Browse files- components/navbar.js +5 -8
- script.js +0 -42
components/navbar.js
CHANGED
|
@@ -207,17 +207,16 @@ class CustomNavbar extends HTMLElement {
|
|
| 207 |
<div class="logo-icon">💰</div>
|
| 208 |
GoldenVault Pro
|
| 209 |
</a>
|
| 210 |
-
|
| 211 |
<ul class="nav-links">
|
| 212 |
<li><a href="#invest">Investment Plans</a></li>
|
| 213 |
<li><a href="#how">How It Works</a></li>
|
| 214 |
-
<li><a href="#calculator">Calculator</a></li>
|
| 215 |
-
<li><a href="#testimonials">Reviews</a></li>
|
| 216 |
-
<li><a href="#faq">FAQ</a></li>
|
| 217 |
</ul>
|
| 218 |
<div class="auth-buttons">
|
| 219 |
-
<
|
| 220 |
-
<
|
| 221 |
</div>
|
| 222 |
<button class="mobile-menu-btn" onclick="toggleMobileMenu()">
|
| 223 |
<i data-feather="menu" class="w-6 h-6"></i>
|
|
@@ -231,8 +230,6 @@ class CustomNavbar extends HTMLElement {
|
|
| 231 |
<li><a href="#calculator" onclick="toggleMobileMenu(); document.querySelector('.py-20.bg-dark-card').scrollIntoView({behavior: 'smooth'}); return false;">Calculator</a></li>
|
| 232 |
<li><a href="#testimonials" onclick="toggleMobileMenu(); document.querySelectorAll('.py-20.bg-dark-card')[1].scrollIntoView({behavior: 'smooth'}); return false;">Reviews</a></li>
|
| 233 |
<li><a href="#faq" onclick="toggleMobileMenu(); document.getElementById('faq').scrollIntoView({behavior: 'smooth'}); return false;">FAQ</a></li>
|
| 234 |
-
<li><a href="#" onclick="showRegistration(); toggleMobileMenu(); return false;">Sign Up</a></li>
|
| 235 |
-
<li><a href="#" onclick="showLogin(); toggleMobileMenu(); return false;">Login</a></li>
|
| 236 |
</ul>
|
| 237 |
</div>
|
| 238 |
</nav>
|
|
|
|
| 207 |
<div class="logo-icon">💰</div>
|
| 208 |
GoldenVault Pro
|
| 209 |
</a>
|
|
|
|
| 210 |
<ul class="nav-links">
|
| 211 |
<li><a href="#invest">Investment Plans</a></li>
|
| 212 |
<li><a href="#how">How It Works</a></li>
|
| 213 |
+
<li><a href="#calculator" onclick="document.querySelector('.py-20.bg-dark-card').scrollIntoView({behavior: 'smooth'}); return false;">Calculator</a></li>
|
| 214 |
+
<li><a href="#testimonials" onclick="document.querySelectorAll('.py-20.bg-dark-card')[1].scrollIntoView({behavior: 'smooth'}); return false;">Reviews</a></li>
|
| 215 |
+
<li><a href="#faq" onclick="document.getElementById('faq').scrollIntoView({behavior: 'smooth'}); return false;">FAQ</a></li>
|
| 216 |
</ul>
|
| 217 |
<div class="auth-buttons">
|
| 218 |
+
<button onclick="showRegistration()" class="btn btn-outline">Sign Up</button>
|
| 219 |
+
<button onclick="showLogin()" class="btn btn-solid">Login</button>
|
| 220 |
</div>
|
| 221 |
<button class="mobile-menu-btn" onclick="toggleMobileMenu()">
|
| 222 |
<i data-feather="menu" class="w-6 h-6"></i>
|
|
|
|
| 230 |
<li><a href="#calculator" onclick="toggleMobileMenu(); document.querySelector('.py-20.bg-dark-card').scrollIntoView({behavior: 'smooth'}); return false;">Calculator</a></li>
|
| 231 |
<li><a href="#testimonials" onclick="toggleMobileMenu(); document.querySelectorAll('.py-20.bg-dark-card')[1].scrollIntoView({behavior: 'smooth'}); return false;">Reviews</a></li>
|
| 232 |
<li><a href="#faq" onclick="toggleMobileMenu(); document.getElementById('faq').scrollIntoView({behavior: 'smooth'}); return false;">FAQ</a></li>
|
|
|
|
|
|
|
| 233 |
</ul>
|
| 234 |
</div>
|
| 235 |
</nav>
|
script.js
CHANGED
|
@@ -44,48 +44,6 @@ function selectPlan(plan, daily, withdrawal, fixedAmount) {
|
|
| 44 |
document.getElementById('investModal').classList.add('flex');
|
| 45 |
document.body.style.overflow = 'hidden';
|
| 46 |
}
|
| 47 |
-
|
| 48 |
-
// Initialize navbar event listeners
|
| 49 |
-
document.addEventListener('DOMContentLoaded', function() {
|
| 50 |
-
// Desktop buttons
|
| 51 |
-
const signupBtn = document.getElementById('signupBtn');
|
| 52 |
-
const loginBtn = document.getElementById('loginBtn');
|
| 53 |
-
|
| 54 |
-
// Mobile buttons
|
| 55 |
-
const mobileSignupBtn = document.getElementById('mobileSignupBtn');
|
| 56 |
-
const mobileLoginBtn = document.getElementById('mobileLoginBtn');
|
| 57 |
-
|
| 58 |
-
if (signupBtn) {
|
| 59 |
-
signupBtn.addEventListener('click', function(e) {
|
| 60 |
-
e.preventDefault();
|
| 61 |
-
showRegistration();
|
| 62 |
-
});
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
if (loginBtn) {
|
| 66 |
-
loginBtn.addEventListener('click', function(e) {
|
| 67 |
-
e.preventDefault();
|
| 68 |
-
showLogin();
|
| 69 |
-
});
|
| 70 |
-
}
|
| 71 |
-
|
| 72 |
-
if (mobileSignupBtn) {
|
| 73 |
-
mobileSignupBtn.addEventListener('click', function(e) {
|
| 74 |
-
e.preventDefault();
|
| 75 |
-
toggleMobileMenu();
|
| 76 |
-
showRegistration();
|
| 77 |
-
});
|
| 78 |
-
}
|
| 79 |
-
|
| 80 |
-
if (mobileLoginBtn) {
|
| 81 |
-
mobileLoginBtn.addEventListener('click', function(e) {
|
| 82 |
-
e.preventDefault();
|
| 83 |
-
toggleMobileMenu();
|
| 84 |
-
showLogin();
|
| 85 |
-
});
|
| 86 |
-
}
|
| 87 |
-
});
|
| 88 |
-
|
| 89 |
// Smooth scrolling for anchor links
|
| 90 |
document.addEventListener('DOMContentLoaded', function() {
|
| 91 |
const links = document.querySelectorAll('a[href^="#"]');
|
|
|
|
| 44 |
document.getElementById('investModal').classList.add('flex');
|
| 45 |
document.body.style.overflow = 'hidden';
|
| 46 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
// Smooth scrolling for anchor links
|
| 48 |
document.addEventListener('DOMContentLoaded', function() {
|
| 49 |
const links = document.querySelectorAll('a[href^="#"]');
|