Compare commits

...

3 Commits

Author SHA1 Message Date
a5c834f9fc Update src/app/page.tsx 2026-03-21 23:16:17 +00:00
1aa9788a4a Update src/app/page.tsx 2026-03-21 23:11:27 +00:00
150f2b254c Merge version_38 into main
Merge version_38 into main
2026-03-21 23:10:39 +00:00

View File

@@ -34,7 +34,7 @@ export default function LandingPage() {
let ticking = false;
const handleScroll = () => {
if (!ticking) {
if (!ticking && !showModal) {
window.requestAnimationFrame(() => {
const currentScrollY = window.scrollY;
setShowBackToTop(currentScrollY > 300);
@@ -46,23 +46,23 @@ export default function LandingPage() {
setScrollDirection('up');
}
// Check gallery section - show View More when section is in viewport
if (galleryRef.current) {
const rect = galleryRef.current.getBoundingClientRect();
// Check gallery section - show View More when visible
if (galleryContainerRef.current && galleryButtonContainerRef.current) {
const rect = galleryButtonContainerRef.current.getBoundingClientRect();
const isInViewport = rect.top < window.innerHeight && rect.bottom > 0;
setShowGalleryViewMore(isInViewport);
}
// Check shoes section - show View More when section is in viewport
if (shoesRef.current) {
const rect = shoesRef.current.getBoundingClientRect();
// Check shoes section - show View More when visible
if (shoesContainerRef.current && shoesButtonContainerRef.current) {
const rect = shoesButtonContainerRef.current.getBoundingClientRect();
const isInViewport = rect.top < window.innerHeight && rect.bottom > 0;
setShowShoesViewMore(isInViewport);
}
// Check veils section - show View More when section is in viewport
if (veilsRef.current) {
const rect = veilsRef.current.getBoundingClientRect();
// Check veils section - show View More when visible
if (veilsContainerRef.current && veilsButtonContainerRef.current) {
const rect = veilsButtonContainerRef.current.getBoundingClientRect();
const isInViewport = rect.top < window.innerHeight && rect.bottom > 0;
setShowVeilsViewMore(isInViewport);
}
@@ -76,7 +76,19 @@ export default function LandingPage() {
window.addEventListener('scroll', handleScroll);
return () => window.removeEventListener('scroll', handleScroll);
}, [lastScrollY]);
}, [lastScrollY, showModal]);
useEffect(() => {
if (showModal) {
document.body.style.overflow = 'hidden';
} else {
document.body.style.overflow = 'unset';
}
return () => {
document.body.style.overflow = 'unset';
};
}, [showModal]);
const scrollToGallery = () => {
const gallerySectionElement = document.getElementById('gallery');
@@ -437,25 +449,25 @@ export default function LandingPage() {
_key: `gallery-${index}`
}))}
/>
</div>
{/* View More Button - Positioned at bottom right of gallery section */}
{/* View More Button - Positioned at bottom right of gallery section */}
<div ref={galleryButtonContainerRef} className="flex justify-end px-8 lg:px-16 pt-8 pb-4">
{showGalleryViewMore && (
<div ref={galleryButtonContainerRef} className="flex justify-end px-8 lg:px-16 pt-8 pb-4 fixed bottom-20 right-8 lg:right-16 z-40">
<button
onClick={() => setShowModal(true)}
className="group relative inline-flex items-center gap-2 px-4 md:px-6 py-2 md:py-3 bg-gradient-to-r from-[#D4AF37] to-[#D4AF37] text-black rounded-lg font-semibold hover:shadow-lg transition-all duration-300 ease-out shadow-lg animate-in fade-in slide-in-from-bottom-4 duration-300"
aria-label="View More Dresses"
>
<span className="text-sm md:text-base">View More</span>
<ChevronRight className="w-4 h-4 md:w-5 md:h-5 group-hover:translate-x-1 transition-transform" />
</button>
</div>
<button
onClick={() => setShowModal(true)}
className="group relative inline-flex items-center gap-2 px-4 md:px-6 py-2 md:py-3 bg-gradient-to-r from-[#D4AF37] to-[#D4AF37] text-black rounded-lg font-semibold hover:shadow-lg transition-all duration-300 ease-out shadow-lg animate-in fade-in slide-in-from-bottom-4 duration-300"
aria-label="View More Dresses"
>
<span className="text-sm md:text-base">View More</span>
<ChevronRight className="w-4 h-4 md:w-5 md:h-5 group-hover:translate-x-1 transition-transform" />
</button>
)}
</div>
{/* Modal Gallery */}
{showModal && (
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm p-4">
<div className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/60 backdrop-blur-sm p-4">
<div className="relative w-full max-w-6xl max-h-[90vh] bg-[var(--background)] rounded-2xl shadow-2xl overflow-hidden flex flex-col">
{/* Modal Header */}
<div className="flex items-center justify-between p-4 md:p-6 border-b border-[var(--accent)]/20">
@@ -583,19 +595,19 @@ export default function LandingPage() {
}
]}
/>
</div>
{/* View More Button for Shoes - Positioned at bottom right of shoes section */}
{/* View More Button for Shoes - Positioned at bottom right of shoes section */}
<div ref={shoesButtonContainerRef} className="flex justify-end px-8 lg:px-16 pt-8 pb-4">
{showShoesViewMore && (
<div ref={shoesButtonContainerRef} className="flex justify-end px-8 lg:px-16 pt-8 pb-4 fixed bottom-20 right-8 lg:right-16 z-40">
<button
onClick={scrollToVeils}
className="group relative inline-flex items-center gap-2 px-4 md:px-6 py-2 md:py-3 bg-gradient-to-r from-[#D4AF37] to-[#D4AF37] text-black rounded-lg font-semibold hover:shadow-lg transition-all duration-300 ease-out shadow-lg animate-in fade-in slide-in-from-bottom-4 duration-300"
aria-label="View More Shoes"
>
<span className="text-sm md:text-base">View More</span>
<ChevronRight className="w-4 h-4 md:w-5 md:h-5 group-hover:translate-x-1 transition-transform" />
</button>
</div>
<button
onClick={scrollToVeils}
className="group relative inline-flex items-center gap-2 px-4 md:px-6 py-2 md:py-3 bg-gradient-to-r from-[#D4AF37] to-[#D4AF37] text-black rounded-lg font-semibold hover:shadow-lg transition-all duration-300 ease-out shadow-lg animate-in fade-in slide-in-from-bottom-4 duration-300"
aria-label="View More Shoes"
>
<span className="text-sm md:text-base">View More</span>
<ChevronRight className="w-4 h-4 md:w-5 md:h-5 group-hover:translate-x-1 transition-transform" />
</button>
)}
</div>
</div>
@@ -633,19 +645,19 @@ export default function LandingPage() {
}
]}
/>
</div>
{/* View More Button for Veils - Positioned at bottom right of veils section */}
{/* View More Button for Veils - Positioned at bottom right of veils section */}
<div ref={veilsButtonContainerRef} className="flex justify-end px-8 lg:px-16 pt-8 pb-4">
{showVeilsViewMore && (
<div ref={veilsButtonContainerRef} className="flex justify-end px-8 lg:px-16 pt-8 pb-4 fixed bottom-20 right-8 lg:right-16 z-40">
<button
className="group relative inline-flex items-center gap-2 px-4 md:px-6 py-2 md:py-3 bg-gradient-to-r from-[#D4AF37] to-[#D4AF37] text-black rounded-lg font-semibold hover:shadow-lg transition-all duration-300 ease-out shadow-lg animate-in fade-in slide-in-from-bottom-4 duration-300"
aria-label="View More Veils"
disabled
>
<span className="text-sm md:text-base">View More</span>
<ChevronRight className="w-4 h-4 md:w-5 md:h-5 group-hover:translate-x-1 transition-transform" />
</button>
</div>
<button
className="group relative inline-flex items-center gap-2 px-4 md:px-6 py-2 md:py-3 bg-gradient-to-r from-[#D4AF37] to-[#D4AF37] text-black rounded-lg font-semibold hover:shadow-lg transition-all duration-300 ease-out shadow-lg animate-in fade-in slide-in-from-bottom-4 duration-300"
aria-label="View More Veils"
disabled
>
<span className="text-sm md:text-base">View More</span>
<ChevronRight className="w-4 h-4 md:w-5 md:h-5 group-hover:translate-x-1 transition-transform" />
</button>
)}
</div>
</div>
@@ -709,4 +721,4 @@ export default function LandingPage() {
</div>
</ThemeProvider>
);
}
}