Compare commits
8 Commits
version_38
...
version_41
| Author | SHA1 | Date | |
|---|---|---|---|
| fdf4547d57 | |||
| a5e06e87b9 | |||
| f3be5a11fe | |||
| e2506c3a66 | |||
| b260ab6f15 | |||
| a5c834f9fc | |||
| 1aa9788a4a | |||
| 150f2b254c |
@@ -3,7 +3,6 @@ import { Halant } from "next/font/google";
|
|||||||
import { Inter } from "next/font/google";
|
import { Inter } from "next/font/google";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
||||||
import Tag from "@/tag/Tag";
|
|
||||||
import { getVisualEditScript } from "@/utils/visual-edit-script";
|
import { getVisualEditScript } from "@/utils/visual-edit-script";
|
||||||
import { Lato } from "next/font/google";
|
import { Lato } from "next/font/google";
|
||||||
|
|
||||||
@@ -28,7 +27,7 @@ export default function RootLayout({
|
|||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
<ServiceWrapper>
|
<ServiceWrapper>
|
||||||
<body className={`${lato.variable} antialiased`}>
|
<body className={`${lato.variable} antialiased`}>
|
||||||
<Tag />
|
|
||||||
{children}
|
{children}
|
||||||
<script
|
<script
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
|
|||||||
400
src/app/page.tsx
400
src/app/page.tsx
@@ -18,6 +18,7 @@ export default function LandingPage() {
|
|||||||
const [showGalleryViewMore, setShowGalleryViewMore] = useState(false);
|
const [showGalleryViewMore, setShowGalleryViewMore] = useState(false);
|
||||||
const [showShoesViewMore, setShowShoesViewMore] = useState(false);
|
const [showShoesViewMore, setShowShoesViewMore] = useState(false);
|
||||||
const [showVeilsViewMore, setShowVeilsViewMore] = useState(false);
|
const [showVeilsViewMore, setShowVeilsViewMore] = useState(false);
|
||||||
|
const [modalType, setModalType] = useState<'gallery' | 'shoes' | 'veils' | null>(null);
|
||||||
const [scrollDirection, setScrollDirection] = useState<'up' | 'down'>('down');
|
const [scrollDirection, setScrollDirection] = useState<'up' | 'down'>('down');
|
||||||
const [lastScrollY, setLastScrollY] = useState(0);
|
const [lastScrollY, setLastScrollY] = useState(0);
|
||||||
const galleryRef = useRef<HTMLDivElement>(null);
|
const galleryRef = useRef<HTMLDivElement>(null);
|
||||||
@@ -34,7 +35,7 @@ export default function LandingPage() {
|
|||||||
let ticking = false;
|
let ticking = false;
|
||||||
|
|
||||||
const handleScroll = () => {
|
const handleScroll = () => {
|
||||||
if (!ticking) {
|
if (!ticking && !showModal) {
|
||||||
window.requestAnimationFrame(() => {
|
window.requestAnimationFrame(() => {
|
||||||
const currentScrollY = window.scrollY;
|
const currentScrollY = window.scrollY;
|
||||||
setShowBackToTop(currentScrollY > 300);
|
setShowBackToTop(currentScrollY > 300);
|
||||||
@@ -46,23 +47,23 @@ export default function LandingPage() {
|
|||||||
setScrollDirection('up');
|
setScrollDirection('up');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check gallery section - show View More when section is in viewport
|
// Check gallery section - show View More when visible
|
||||||
if (galleryRef.current) {
|
if (galleryContainerRef.current && galleryButtonContainerRef.current) {
|
||||||
const rect = galleryRef.current.getBoundingClientRect();
|
const rect = galleryButtonContainerRef.current.getBoundingClientRect();
|
||||||
const isInViewport = rect.top < window.innerHeight && rect.bottom > 0;
|
const isInViewport = rect.top < window.innerHeight && rect.bottom > 0;
|
||||||
setShowGalleryViewMore(isInViewport);
|
setShowGalleryViewMore(isInViewport);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check shoes section - show View More when section is in viewport
|
// Check shoes section - show View More when visible
|
||||||
if (shoesRef.current) {
|
if (shoesContainerRef.current && shoesButtonContainerRef.current) {
|
||||||
const rect = shoesRef.current.getBoundingClientRect();
|
const rect = shoesButtonContainerRef.current.getBoundingClientRect();
|
||||||
const isInViewport = rect.top < window.innerHeight && rect.bottom > 0;
|
const isInViewport = rect.top < window.innerHeight && rect.bottom > 0;
|
||||||
setShowShoesViewMore(isInViewport);
|
setShowShoesViewMore(isInViewport);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check veils section - show View More when section is in viewport
|
// Check veils section - show View More when visible
|
||||||
if (veilsRef.current) {
|
if (veilsContainerRef.current && veilsButtonContainerRef.current) {
|
||||||
const rect = veilsRef.current.getBoundingClientRect();
|
const rect = veilsButtonContainerRef.current.getBoundingClientRect();
|
||||||
const isInViewport = rect.top < window.innerHeight && rect.bottom > 0;
|
const isInViewport = rect.top < window.innerHeight && rect.bottom > 0;
|
||||||
setShowVeilsViewMore(isInViewport);
|
setShowVeilsViewMore(isInViewport);
|
||||||
}
|
}
|
||||||
@@ -76,7 +77,19 @@ export default function LandingPage() {
|
|||||||
|
|
||||||
window.addEventListener('scroll', handleScroll);
|
window.addEventListener('scroll', handleScroll);
|
||||||
return () => window.removeEventListener('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 scrollToGallery = () => {
|
||||||
const gallerySectionElement = document.getElementById('gallery');
|
const gallerySectionElement = document.getElementById('gallery');
|
||||||
@@ -196,7 +209,169 @@ export default function LandingPage() {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const allShoes = [
|
||||||
|
{
|
||||||
|
id: "shoe-1", name: "Classic Satin Heels", price: "Starting at $250", variant: "White", imageSrc: "http://img.b2bpic.net/free-photo/elegant-beautiful-fashionable-woman-blonde-long-white-dre_7502-4897.jpg?_wi=2", imageAlt: "Classic white satin bridal heels"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "shoe-2", name: "Jeweled Flats", price: "Starting at $280", variant: "Ivory", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-bridal-dress-hanger_23-2149640924.jpg?_wi=2", imageAlt: "Comfortable jeweled flat bridal shoes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "shoe-3", name: "Pearl Embellished Pumps", price: "Starting at $320", variant: "Champagne", imageSrc: "http://img.b2bpic.net/free-photo/morning-bride-when-she-wears-beautiful-dress_1328-2238.jpg?_wi=2", imageAlt: "Pearl decorated champagne bridal pumps"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "shoe-4", name: "Delicate Strappy Sandals", price: "Starting at $200", variant: "Silver", imageSrc: "http://img.b2bpic.net/free-photo/elegant-bride-posing_23-2148105871.jpg?_wi=2", imageAlt: "Delicate silver strappy bridal sandals"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "shoe-5", name: "Vintage Lace Pumps", price: "Starting at $290", variant: "White", imageSrc: "http://img.b2bpic.net/free-photo/front-view-beautiful-bride-indoors_23-2149640909.jpg?_wi=2", imageAlt: "Vintage lace wedding pumps"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "shoe-6", name: "Minimalist Ballet Flats", price: "Starting at $220", variant: "Ivory", imageSrc: "http://img.b2bpic.net/free-photo/bride-playing-with-her-skirt_1157-725.jpg?_wi=2", imageAlt: "Minimalist ivory ballet flat shoes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "shoe-7", name: "Elegant Crystal Heels", price: "Starting at $310", variant: "White", imageSrc: "http://img.b2bpic.net/free-photo/elegant-beautiful-fashionable-woman-blonde-long-white-dre_7502-4897.jpg?_wi=3", imageAlt: "Elegant crystal white heels"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "shoe-8", name: "Champagne Satin Pumps", price: "Starting at $275", variant: "Champagne", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-bridal-dress-hanger_23-2149640924.jpg?_wi=3", imageAlt: "Champagne satin pump heels"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "shoe-9", name: "Ivory Lace Flats", price: "Starting at $240", variant: "Ivory", imageSrc: "http://img.b2bpic.net/free-photo/morning-bride-when-she-wears-beautiful-dress_1328-2238.jpg?_wi=3", imageAlt: "Ivory lace flat bridal shoes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "shoe-10", name: "Pearl White Heels", price: "Starting at $295", variant: "White", imageSrc: "http://img.b2bpic.net/free-photo/elegant-bride-posing_23-2148105871.jpg?_wi=3", imageAlt: "Pearl white bridal heels"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "shoe-11", name: "Silver Strappy Heels", price: "Starting at $265", variant: "Silver", imageSrc: "http://img.b2bpic.net/free-photo/front-view-beautiful-bride-indoors_23-2149640909.jpg?_wi=3", imageAlt: "Silver strappy bridal heels"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "shoe-12", name: "Gold Accent Pumps", price: "Starting at $330", variant: "Gold", imageSrc: "http://img.b2bpic.net/free-photo/bride-playing-with-her-skirt_1157-725.jpg?_wi=3", imageAlt: "Gold accent wedding pumps"
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
const allVeils = [
|
||||||
|
{
|
||||||
|
id: "veil-1", name: "Cathedral Length Veil", price: "Starting at $180", variant: "White Tulle", imageSrc: "http://img.b2bpic.net/free-photo/woman-looking-herself_1157-187.jpg?_wi=2", imageAlt: "Elegant cathedral length bridal veil"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "veil-2", name: "Lace Embellished Veil", price: "Starting at $220", variant: "Ivory Lace", imageSrc: "http://img.b2bpic.net/free-photo/woman-checking-two-shirts_23-2147601332.jpg?_wi=2", imageAlt: "Beautiful lace embellished bridal veil"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "veil-3", name: "Dramatic Detachable Veil", price: "Starting at $250", variant: "Ivory", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-bride-posing-medium-shot_23-2149860841.jpg?_wi=1", imageAlt: "Dramatic detachable bridal veil"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "veil-4", name: "Short Birdcage Veil", price: "Starting at $120", variant: "Black Netting", imageSrc: "http://img.b2bpic.net/free-photo/young-women-enjoying-bachelorette-party_23-2149278361.jpg?_wi=1", imageAlt: "Modern short birdcage veil"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "veil-5", name: "Pearl Trimmed Veil", price: "Starting at $200", variant: "Champagne", imageSrc: "http://img.b2bpic.net/free-photo/elegant-beautiful-fashionable-woman-blonde-long-white-dre_7502-4897.jpg?_wi=1", imageAlt: "Pearl trimmed champagne bridal veil"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "veil-6", name: "Crystal Beaded Veil", price: "Starting at $270", variant: "White with Crystals", imageSrc: "http://img.b2bpic.net/free-photo/elegant-bride-posing_23-2148105871.jpg?_wi=1", imageAlt: "Sparkling crystal beaded bridal veil"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "veil-7", name: "Tulle and Lace Veil", price: "Starting at $210", variant: "Ivory", imageSrc: "http://img.b2bpic.net/free-photo/woman-looking-herself_1157-187.jpg?_wi=3", imageAlt: "Tulle and lace combination veil"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "veil-8", name: "Romantic Cascading Veil", price: "Starting at $240", variant: "White", imageSrc: "http://img.b2bpic.net/free-photo/woman-checking-two-shirts_23-2147601332.jpg?_wi=3", imageAlt: "Romantic cascading bridal veil"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "veil-9", name: "Minimalist Tulle Veil", price: "Starting at $160", variant: "White", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-bride-posing-medium-shot_23-2149860841.jpg?_wi=2", imageAlt: "Minimalist white tulle veil"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "veil-10", name: "Beaded Edge Veil", price: "Starting at $280", variant: "Champagne", imageSrc: "http://img.b2bpic.net/free-photo/young-women-enjoying-bachelorette-party_23-2149278361.jpg?_wi=2", imageAlt: "Beaded edge champagne veil"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "veil-11", name: "Classic Elbow Veil", price: "Starting at $140", variant: "Ivory", imageSrc: "http://img.b2bpic.net/free-photo/elegant-beautiful-fashionable-woman-blonde-long-white-dre_7502-4897.jpg?_wi=2", imageAlt: "Classic ivory elbow length veil"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "veil-12", name: "Dramatic Train Veil", price: "Starting at $310", variant: "White", imageSrc: "http://img.b2bpic.net/free-photo/elegant-bride-posing_23-2148105871.jpg?_wi=2", imageAlt: "Dramatic white train veil"
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
const initialDresses = allDresses.slice(0, 6);
|
const initialDresses = allDresses.slice(0, 6);
|
||||||
|
const initialShoes = allShoes.slice(0, 3);
|
||||||
|
const initialVeils = allVeils.slice(0, 3);
|
||||||
|
|
||||||
|
const renderModal = () => {
|
||||||
|
if (!showModal || !modalType) return null;
|
||||||
|
|
||||||
|
let items = [];
|
||||||
|
let title = '';
|
||||||
|
|
||||||
|
if (modalType === 'gallery') {
|
||||||
|
items = allDresses;
|
||||||
|
title = 'Complete Dress Gallery';
|
||||||
|
} else if (modalType === 'shoes') {
|
||||||
|
items = allShoes;
|
||||||
|
title = 'Complete Bridal Shoes Collection';
|
||||||
|
} else if (modalType === 'veils') {
|
||||||
|
items = allVeils;
|
||||||
|
title = 'Complete Veils & Crowns Collection';
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<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">
|
||||||
|
<h2 className="text-xl md:text-2xl font-semibold text-[var(--foreground)]">{title}</h2>
|
||||||
|
<button
|
||||||
|
onClick={() => setShowModal(false)}
|
||||||
|
className="p-2 hover:bg-[var(--accent)]/10 rounded-lg transition-colors"
|
||||||
|
aria-label="Close gallery"
|
||||||
|
>
|
||||||
|
<X className="w-6 h-6 text-[var(--foreground)]" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Modal Gallery Grid */}
|
||||||
|
<div className="overflow-y-auto flex-1 p-4 md:p-6">
|
||||||
|
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-6">
|
||||||
|
{items.map((item) => (
|
||||||
|
<div
|
||||||
|
key={item.id}
|
||||||
|
className="group relative overflow-hidden rounded-lg bg-[var(--card)] shadow-md hover:shadow-xl transition-all duration-500 ease-out"
|
||||||
|
>
|
||||||
|
{/* Image Container */}
|
||||||
|
<div className="relative h-64 md:h-72 overflow-hidden bg-[var(--accent)]/5">
|
||||||
|
<img
|
||||||
|
src={item.imageSrc}
|
||||||
|
alt={item.imageAlt}
|
||||||
|
className="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500 ease-out"
|
||||||
|
/>
|
||||||
|
{/* Hover Overlay */}
|
||||||
|
<div className="absolute inset-0 bg-gradient-to-t from-black/40 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Content */}
|
||||||
|
<div className="p-3 md:p-4">
|
||||||
|
<h3 className="text-sm md:text-base font-semibold text-[var(--foreground)] line-clamp-2">
|
||||||
|
{item.name}
|
||||||
|
</h3>
|
||||||
|
<p className="text-xs md:text-sm text-[var(--foreground)]/70 mt-1">
|
||||||
|
{item.variant}
|
||||||
|
</p>
|
||||||
|
<p className="text-sm md:text-base font-bold text-[var(--primary-cta)] mt-2">
|
||||||
|
{item.price}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Modal Footer */}
|
||||||
|
<div className="flex items-center justify-end gap-3 p-4 md:p-6 border-t border-[var(--accent)]/20 bg-[var(--card)]/50">
|
||||||
|
<button
|
||||||
|
onClick={() => setShowModal(false)}
|
||||||
|
className="px-4 md:px-6 py-2 md:py-3 rounded-lg border border-[var(--accent)] text-[var(--foreground)] hover:bg-[var(--accent)]/10 transition-colors"
|
||||||
|
>
|
||||||
|
Close
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
@@ -335,7 +510,7 @@ export default function LandingPage() {
|
|||||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-checking-two-shirts_23-2147601332.jpg?_wi=1", imageAlt: "Elegant Irentall bridal boutique interior"
|
imageSrc: "http://img.b2bpic.net/free-photo/woman-checking-two-shirts_23-2147601332.jpg?_wi=1", imageAlt: "Elegant Irentall bridal boutique interior"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-bride-posing-medium-shot_23-2149860841.jpg?_wi=1", imageAlt: "Happy bride smiling in wedding dress"
|
videoSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3B5MJh3BJx339lVFA4KYjFzlzMX/uploaded-1773947877000-kdhrbcou.mp4", imageAlt: "Happy bride smiling in wedding dress"
|
||||||
}
|
}
|
||||||
]}
|
]}
|
||||||
rightCarouselItems={[
|
rightCarouselItems={[
|
||||||
@@ -355,7 +530,7 @@ export default function LandingPage() {
|
|||||||
|
|
||||||
<div id="features" data-section="features" className="relative z-10">
|
<div id="features" data-section="features" className="relative z-10">
|
||||||
<FeatureCardSixteen
|
<FeatureCardSixteen
|
||||||
title="What Makes Us Different"
|
title="What Makes Irentall Different"
|
||||||
description="At Irentall, we believe every bride deserves a personalized, stress-free experience. Here's what sets us apart from other boutiques."
|
description="At Irentall, we believe every bride deserves a personalized, stress-free experience. Here's what sets us apart from other boutiques."
|
||||||
textboxLayout="default"
|
textboxLayout="default"
|
||||||
useInvertedBackground={false}
|
useInvertedBackground={false}
|
||||||
@@ -402,9 +577,9 @@ export default function LandingPage() {
|
|||||||
tagIcon={Users}
|
tagIcon={Users}
|
||||||
tagAnimation="slide-up"
|
tagAnimation="slide-up"
|
||||||
kpiItems={[
|
kpiItems={[
|
||||||
{ value: "50+", label: "Happy Brides" },
|
{ value: "120+", label: "Happy Brides" },
|
||||||
{ value: "5.0★", label: "Average Rating" },
|
{ value: "5.0★", label: "Average Rating" },
|
||||||
{ value: "4.5+", label: "Month of Excellence" }
|
{ value: "6+", label: "Month of Excellence" }
|
||||||
]}
|
]}
|
||||||
testimonials={[
|
testimonials={[
|
||||||
{
|
{
|
||||||
@@ -437,86 +612,24 @@ export default function LandingPage() {
|
|||||||
_key: `gallery-${index}`
|
_key: `gallery-${index}`
|
||||||
}))}
|
}))}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* View More Button - Positioned at bottom right of gallery section */}
|
|
||||||
{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>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Modal Gallery */}
|
{/* View More Button - Positioned at bottom right of gallery section */}
|
||||||
{showModal && (
|
<div ref={galleryButtonContainerRef} className="flex justify-end px-8 lg:px-16 pt-8 pb-4">
|
||||||
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm p-4">
|
{showGalleryViewMore && (
|
||||||
<div className="relative w-full max-w-6xl max-h-[90vh] bg-[var(--background)] rounded-2xl shadow-2xl overflow-hidden flex flex-col">
|
<button
|
||||||
{/* Modal Header */}
|
onClick={() => {
|
||||||
<div className="flex items-center justify-between p-4 md:p-6 border-b border-[var(--accent)]/20">
|
setModalType('gallery');
|
||||||
<h2 className="text-xl md:text-2xl font-semibold text-[var(--foreground)]">Complete Dress Gallery</h2>
|
setShowModal(true);
|
||||||
<button
|
}}
|
||||||
onClick={() => setShowModal(false)}
|
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"
|
||||||
className="p-2 hover:bg-[var(--accent)]/10 rounded-lg transition-colors"
|
aria-label="View More Dresses"
|
||||||
aria-label="Close gallery"
|
>
|
||||||
>
|
<span className="text-sm md:text-base">View More</span>
|
||||||
<X className="w-6 h-6 text-[var(--foreground)]" />
|
<ChevronRight className="w-4 h-4 md:w-5 md:h-5 group-hover:translate-x-1 transition-transform" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
)}
|
||||||
|
</div>
|
||||||
{/* Modal Gallery Grid */}
|
|
||||||
<div className="overflow-y-auto flex-1 p-4 md:p-6">
|
|
||||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-6">
|
|
||||||
{allDresses.map((dress) => (
|
|
||||||
<div
|
|
||||||
key={dress.id}
|
|
||||||
className="group relative overflow-hidden rounded-lg bg-[var(--card)] shadow-md hover:shadow-xl transition-all duration-500 ease-out"
|
|
||||||
>
|
|
||||||
{/* Image Container */}
|
|
||||||
<div className="relative h-64 md:h-72 overflow-hidden bg-[var(--accent)]/5">
|
|
||||||
<img
|
|
||||||
src={dress.imageSrc}
|
|
||||||
alt={dress.imageAlt}
|
|
||||||
className="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500 ease-out"
|
|
||||||
/>
|
|
||||||
{/* Hover Overlay */}
|
|
||||||
<div className="absolute inset-0 bg-gradient-to-t from-black/40 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Content */}
|
|
||||||
<div className="p-3 md:p-4">
|
|
||||||
<h3 className="text-sm md:text-base font-semibold text-[var(--foreground)] line-clamp-2">
|
|
||||||
{dress.name}
|
|
||||||
</h3>
|
|
||||||
<p className="text-xs md:text-sm text-[var(--foreground)]/70 mt-1">
|
|
||||||
{dress.variant}
|
|
||||||
</p>
|
|
||||||
<p className="text-sm md:text-base font-bold text-[var(--primary-cta)] mt-2">
|
|
||||||
{dress.price}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Modal Footer */}
|
|
||||||
<div className="flex items-center justify-end gap-3 p-4 md:p-6 border-t border-[var(--accent)]/20 bg-[var(--card)]/50">
|
|
||||||
<button
|
|
||||||
onClick={() => setShowModal(false)}
|
|
||||||
className="px-4 md:px-6 py-2 md:py-3 rounded-lg border border-[var(--accent)] text-[var(--foreground)] hover:bg-[var(--accent)]/10 transition-colors"
|
|
||||||
>
|
|
||||||
Close
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="reels" data-section="reels" className="relative z-10">
|
<div id="reels" data-section="reels" className="relative z-10">
|
||||||
@@ -562,40 +675,27 @@ export default function LandingPage() {
|
|||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Explore All Shoes", onClick: scrollToShoes }
|
{ text: "Explore All Shoes", onClick: scrollToShoes }
|
||||||
]}
|
]}
|
||||||
products={[
|
products={initialShoes.map((shoe, index) => ({
|
||||||
{
|
...shoe,
|
||||||
id: "shoe-1", name: "Classic Satin Heels", price: "Starting at $250", variant: "White", imageSrc: "http://img.b2bpic.net/free-photo/elegant-beautiful-fashionable-woman-blonde-long-white-dre_7502-4897.jpg?_wi=2", imageAlt: "Classic white satin bridal heels"
|
_key: `shoes-${index}`
|
||||||
},
|
}))}
|
||||||
{
|
|
||||||
id: "shoe-2", name: "Jeweled Flats", price: "Starting at $280", variant: "Ivory", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-bridal-dress-hanger_23-2149640924.jpg?_wi=2", imageAlt: "Comfortable jeweled flat bridal shoes"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "shoe-3", name: "Pearl Embellished Pumps", price: "Starting at $320", variant: "Champagne", imageSrc: "http://img.b2bpic.net/free-photo/morning-bride-when-she-wears-beautiful-dress_1328-2238.jpg?_wi=2", imageAlt: "Pearl decorated champagne bridal pumps"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "shoe-4", name: "Delicate Strappy Sandals", price: "Starting at $200", variant: "Silver", imageSrc: "http://img.b2bpic.net/free-photo/elegant-bride-posing_23-2148105871.jpg?_wi=2", imageAlt: "Delicate silver strappy bridal sandals"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "shoe-5", name: "Vintage Lace Pumps", price: "Starting at $290", variant: "White", imageSrc: "http://img.b2bpic.net/free-photo/front-view-beautiful-bride-indoors_23-2149640909.jpg?_wi=2", imageAlt: "Vintage lace wedding pumps"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "shoe-6", name: "Minimalist Ballet Flats", price: "Starting at $220", variant: "Ivory", imageSrc: "http://img.b2bpic.net/free-photo/bride-playing-with-her-skirt_1157-725.jpg?_wi=2", imageAlt: "Minimalist ivory ballet flat shoes"
|
|
||||||
}
|
|
||||||
]}
|
|
||||||
/>
|
/>
|
||||||
|
</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 && (
|
{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
|
||||||
<button
|
onClick={() => {
|
||||||
onClick={scrollToVeils}
|
setModalType('shoes');
|
||||||
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"
|
setShowModal(true);
|
||||||
aria-label="View More Shoes"
|
}}
|
||||||
>
|
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"
|
||||||
<span className="text-sm md:text-base">View More</span>
|
aria-label="View More Shoes"
|
||||||
<ChevronRight className="w-4 h-4 md:w-5 md:h-5 group-hover:translate-x-1 transition-transform" />
|
>
|
||||||
</button>
|
<span className="text-sm md:text-base">View More</span>
|
||||||
</div>
|
<ChevronRight className="w-4 h-4 md:w-5 md:h-5 group-hover:translate-x-1 transition-transform" />
|
||||||
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -612,40 +712,27 @@ export default function LandingPage() {
|
|||||||
tagAnimation="slide-up"
|
tagAnimation="slide-up"
|
||||||
gridVariant="three-columns-all-equal-width"
|
gridVariant="three-columns-all-equal-width"
|
||||||
animationType="slide-up"
|
animationType="slide-up"
|
||||||
products={[
|
products={initialVeils.map((veil, index) => ({
|
||||||
{
|
...veil,
|
||||||
id: "veil-1", name: "Cathedral Length Veil", price: "Starting at $180", variant: "White Tulle", imageSrc: "http://img.b2bpic.net/free-photo/woman-looking-herself_1157-187.jpg?_wi=2", imageAlt: "Elegant cathedral length bridal veil"
|
_key: `veils-${index}`
|
||||||
},
|
}))}
|
||||||
{
|
|
||||||
id: "veil-2", name: "Lace Embellished Veil", price: "Starting at $220", variant: "Ivory Lace", imageSrc: "http://img.b2bpic.net/free-photo/woman-checking-two-shirts_23-2147601332.jpg?_wi=2", imageAlt: "Beautiful lace embellished bridal veil"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "veil-3", name: "Dramatic Detachable Veil", price: "Starting at $250", variant: "Ivory", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-bride-posing-medium-shot_23-2149860841.jpg?_wi=1", imageAlt: "Dramatic detachable bridal veil"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "veil-4", name: "Short Birdcage Veil", price: "Starting at $120", variant: "Black Netting", imageSrc: "http://img.b2bpic.net/free-photo/young-women-enjoying-bachelorette-party_23-2149278361.jpg?_wi=1", imageAlt: "Modern short birdcage veil"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "veil-5", name: "Pearl Trimmed Veil", price: "Starting at $200", variant: "Champagne", imageSrc: "http://img.b2bpic.net/free-photo/elegant-beautiful-fashionable-woman-blonde-long-white-dre_7502-4897.jpg?_wi=1", imageAlt: "Pearl trimmed champagne bridal veil"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "veil-6", name: "Crystal Beaded Veil", price: "Starting at $270", variant: "White with Crystals", imageSrc: "http://img.b2bpic.net/free-photo/elegant-bride-posing_23-2148105871.jpg?_wi=1", imageAlt: "Sparkling crystal beaded bridal veil"
|
|
||||||
}
|
|
||||||
]}
|
|
||||||
/>
|
/>
|
||||||
|
</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 && (
|
{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
|
||||||
<button
|
onClick={() => {
|
||||||
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"
|
setModalType('veils');
|
||||||
aria-label="View More Veils"
|
setShowModal(true);
|
||||||
disabled
|
}}
|
||||||
>
|
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"
|
||||||
<span className="text-sm md:text-base">View More</span>
|
aria-label="View More Veils"
|
||||||
<ChevronRight className="w-4 h-4 md:w-5 md:h-5 group-hover:translate-x-1 transition-transform" />
|
>
|
||||||
</button>
|
<span className="text-sm md:text-base">View More</span>
|
||||||
</div>
|
<ChevronRight className="w-4 h-4 md:w-5 md:h-5 group-hover:translate-x-1 transition-transform" />
|
||||||
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -707,6 +794,9 @@ export default function LandingPage() {
|
|||||||
bottomRightText="3106 Los Feliz Blvd, Los Angeles, CA 90039 | (747) 800-7770"
|
bottomRightText="3106 Los Feliz Blvd, Los Angeles, CA 90039 | (747) 800-7770"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* Universal Modal */}
|
||||||
|
{renderModal()}
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user