diff --git a/src/pages/index.tsx b/src/pages/index.tsx index d296af2..29f670c 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -34,17 +34,14 @@ export default function Home() { const currentScrollY = window.scrollY; setIsScrolled(currentScrollY > 100); - // Always hide menu when at the very top if (currentScrollY === 0) { setIsMenuVisible(false); return; } - // Show menu when scrolling up and past initial threshold if (currentScrollY < lastScrollY.current && currentScrollY > 100) { setIsMenuVisible(true); } - // Hide menu when scrolling down else if (currentScrollY > lastScrollY.current) { setIsMenuVisible(false); } @@ -53,7 +50,7 @@ export default function Home() { }; window.addEventListener('scroll', updateScroll); - updateScroll(); // Initial check + updateScroll(); return () => window.removeEventListener('scroll', updateScroll); }, []); @@ -87,7 +84,6 @@ export default function Home() { exit={{ opacity: 0 }} transition={{ duration: 0.7, ease: [0.32, 0.72, 0, 1] }} > - {/* Skip Link */} - {/* Menu Bar */}
- {/* Main Content */}
- {/* Hero Section */}
- {/* Background Image */}
- {/* Details Section */}
- {/* Left Column - About */} - {/* Right Column - Measurements */}
- {/* Categories Section */}
- {/* Commercial */} @@ -495,7 +472,6 @@ export default function Home() {

- {/* Fitness */} @@ -511,7 +487,6 @@ export default function Home() {

- {/* Editorial */} @@ -529,7 +504,6 @@ export default function Home() {
- {/* Portfolio Section */}
- {/* Contact Section */}
- {/* Footer */}