From 19f25d0b8fc22668d83602834265539a88425513 Mon Sep 17 00:00:00 2001 From: bender Date: Sat, 21 Mar 2026 22:59:15 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 125 +++++++++++++---------------------------------- 1 file changed, 34 insertions(+), 91 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index ebc2389..1363120 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -17,8 +17,8 @@ export default function LandingPage() { const [showBackToTop, setShowBackToTop] = useState(false); const [showViewMoreButton, setShowViewMoreButton] = useState(false); const [showShoesArrow, setShowShoesArrow] = useState(false); - const [showShoesMoreButton, setShowShoesMoreButton] = useState(false); - const [showVeilsMoreButton, setShowVeilsMoreButton] = useState(false); + const [showShoesMoreButton, setShowShoesMoreButton] = useState(true); + const [showVeilsMoreButton, setShowVeilsMoreButton] = useState(true); const [scrollDirection, setScrollDirection] = useState<'up' | 'down'>('down'); const [lastScrollY, setLastScrollY] = useState(0); const viewMoreButtonRef = useRef(null); @@ -62,38 +62,6 @@ export default function LandingPage() { } } - // Check if shoes container (with button) is in view - if (shoesContainerRef.current) { - const shoesContainerRect = shoesContainerRef.current.getBoundingClientRect(); - const shoesContainerInView = shoesContainerRect.top < window.innerHeight && shoesContainerRect.bottom > 0; - - // Show more button when scrolled past shoes section - // Hide when user scrolls back to shoes area - if (!shoesContainerInView && currentScrollY > lastScrollY) { - // We've scrolled past the shoes section, show the more button - setShowShoesMoreButton(true); - } else if (shoesContainerInView && currentScrollY < lastScrollY) { - // We're back at or above the shoes section, hide the button - setShowShoesMoreButton(false); - } - } - - // Check if veils container (with button) is in view - if (veilsContainerRef.current) { - const veilsContainerRect = veilsContainerRef.current.getBoundingClientRect(); - const veilsContainerInView = veilsContainerRect.top < window.innerHeight && veilsContainerRect.bottom > 0; - - // Show more button when scrolled past veils section - // Hide when user scrolls back to veils area - if (!veilsContainerInView && currentScrollY > lastScrollY) { - // We've scrolled past the veils section, show the more button - setShowVeilsMoreButton(true); - } else if (veilsContainerInView && currentScrollY < lastScrollY) { - // We're back at or above the veils section, hide the button - setShowVeilsMoreButton(false); - } - } - ticking = false; }); ticking = true; @@ -331,35 +299,18 @@ export default function LandingPage() { )} - {/* Fixed "Go to Shoes" Button - With scroll detection */} - {!showShoesArrow && ( - - )} - - {/* Fixed "Back to Shoes" Button - Appears when scrolled past shoes */} - {showShoesArrow && ( - - )} + {/* Fixed "Go to Shoes" Button - Always visible */} + {/* Fixed Top Social & Contact Bar */}
@@ -667,20 +618,16 @@ export default function LandingPage() { ]} /> - {/* More Button for Shoes - Positioned after shoes section */} -
- {showShoesMoreButton && ( -
- -
- )} + {/* More Button for Shoes - Always visible */} +
+
@@ -719,20 +666,16 @@ export default function LandingPage() { ]} /> - {/* More Button for Veils - Positioned after veils section */} -
- {showVeilsMoreButton && ( -
- -
- )} + {/* More Button for Veils - Always visible */} +
+
-- 2.49.1