Compare commits
6 Commits
version_13
...
version_16
| Author | SHA1 | Date | |
|---|---|---|---|
| 3eec907d94 | |||
| ac8cb3c24e | |||
| 8af2e7629e | |||
| abcce974ad | |||
| 0636e0dc0c | |||
| da50567492 |
112
src/app/page.tsx
112
src/app/page.tsx
@@ -10,11 +10,41 @@ import ContactCTA from "@/components/sections/contact/ContactCTA";
|
||||
import FooterSimple from "@/components/sections/footer/FooterSimple";
|
||||
import TestimonialAboutCard from "@/components/sections/about/TestimonialAboutCard";
|
||||
import BlogCardThree from "@/components/sections/blog/BlogCardThree";
|
||||
import { Star, Heart, Users, Camera, Sparkles, Crown, Phone, MessageCircle, User, Play, ChevronRight, X, ArrowDown } from "lucide-react";
|
||||
import { useState } from "react";
|
||||
import { Star, Heart, Users, Camera, Sparkles, Crown, Phone, MessageCircle, User, Play, ChevronRight, X, ArrowDown, ArrowUp } from "lucide-react";
|
||||
import { useState, useEffect } from "react";
|
||||
|
||||
export default function LandingPage() {
|
||||
const [showModal, setShowModal] = useState(false);
|
||||
const [showBackToTop, setShowBackToTop] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
const handleScroll = () => {
|
||||
setShowBackToTop(window.scrollY > 300);
|
||||
};
|
||||
|
||||
window.addEventListener('scroll', handleScroll);
|
||||
return () => window.removeEventListener('scroll', handleScroll);
|
||||
}, []);
|
||||
|
||||
const scrollToGallery = () => {
|
||||
const gallerySectionElement = document.getElementById('gallery');
|
||||
if (gallerySectionElement) {
|
||||
gallerySectionElement.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'start'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const scrollToTop = () => {
|
||||
const heroSectionElement = document.getElementById('hero');
|
||||
if (heroSectionElement) {
|
||||
heroSectionElement.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'start'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const allDresses = [
|
||||
{
|
||||
@@ -96,16 +126,6 @@ export default function LandingPage() {
|
||||
|
||||
const initialDresses = allDresses.slice(0, 6);
|
||||
|
||||
const handleScrollToDresses = () => {
|
||||
const gallerySectionElement = document.getElementById('gallery');
|
||||
if (gallerySectionElement) {
|
||||
gallerySectionElement.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'start'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="shift-hover"
|
||||
@@ -119,7 +139,49 @@ export default function LandingPage() {
|
||||
secondaryButtonStyle="glass"
|
||||
headingFontWeight="light"
|
||||
>
|
||||
<div id="nav" data-section="nav">
|
||||
{/* Decorative Vertical Border/Divider with Gold Accents */}
|
||||
<div className="fixed left-1/2 transform -translate-x-1/2 top-0 w-px h-screen pointer-events-none z-0">
|
||||
{/* Main vertical line with gradient */}
|
||||
<div className="absolute left-0 top-0 w-full h-full bg-gradient-to-b from-transparent via-[#D4AF37] to-transparent opacity-40" />
|
||||
|
||||
{/* Gold accent dots distributed throughout */}
|
||||
<div className="absolute left-1/2 transform -translate-x-1/2 top-[10%] w-1.5 h-1.5 rounded-full bg-[#D4AF37] opacity-60" />
|
||||
<div className="absolute left-1/2 transform -translate-x-1/2 top-[20%] w-1 h-1 rounded-full bg-[#D4AF37] opacity-50" />
|
||||
<div className="absolute left-1/2 transform -translate-x-1/2 top-[30%] w-2 h-2 rounded-full bg-[#D4AF37] opacity-45" />
|
||||
<div className="absolute left-1/2 transform -translate-x-1/2 top-[40%] w-1 h-1 rounded-full bg-[#D4AF37] opacity-55" />
|
||||
<div className="absolute left-1/2 transform -translate-x-1/2 top-[50%] w-1.5 h-1.5 rounded-full bg-[#D4AF37] opacity-50" />
|
||||
<div className="absolute left-1/2 transform -translate-x-1/2 top-[60%] w-1 h-1 rounded-full bg-[#D4AF37] opacity-55" />
|
||||
<div className="absolute left-1/2 transform -translate-x-1/2 top-[70%] w-2 h-2 rounded-full bg-[#D4AF37] opacity-45" />
|
||||
<div className="absolute left-1/2 transform -translate-x-1/2 top-[80%] w-1 h-1 rounded-full bg-[#D4AF37] opacity-60" />
|
||||
<div className="absolute left-1/2 transform -translate-x-1/2 top-[90%] w-1.5 h-1.5 rounded-full bg-[#D4AF37] opacity-50" />
|
||||
</div>
|
||||
|
||||
{/* Fixed "Go to Dresses" Button */}
|
||||
<button
|
||||
onClick={scrollToGallery}
|
||||
className="fixed right-6 bottom-32 z-40 w-16 h-16 rounded-full bg-gradient-to-r from-[var(--primary-cta)] to-[var(--primary-cta)] text-[var(--primary-cta-text)] shadow-lg hover:shadow-2xl transition-all duration-300 ease-out flex items-center justify-center hover:scale-110 active:scale-95"
|
||||
aria-label="Go to Dresses"
|
||||
title="Go to Dresses"
|
||||
>
|
||||
<div className="flex flex-col items-center justify-center gap-1">
|
||||
<ArrowDown className="w-5 h-5" />
|
||||
<span className="text-xs font-semibold text-center leading-tight">Dresses</span>
|
||||
</div>
|
||||
</button>
|
||||
|
||||
{/* Fixed Back-to-Top Button */}
|
||||
{showBackToTop && (
|
||||
<button
|
||||
onClick={scrollToTop}
|
||||
className="fixed right-6 bottom-6 z-40 w-16 h-16 rounded-full bg-gradient-to-r from-[var(--secondary-cta)] to-[var(--secondary-cta)] text-[var(--secondary-cta-text)] shadow-lg hover:shadow-2xl transition-all duration-300 ease-out flex items-center justify-center hover:scale-110 active:scale-95 animate-in fade-in-0 duration-300"
|
||||
aria-label="Back to Top"
|
||||
title="Back to Top"
|
||||
>
|
||||
<ArrowUp className="w-5 h-5" />
|
||||
</button>
|
||||
)}
|
||||
|
||||
<div id="nav" data-section="nav" className="relative z-20">
|
||||
<NavbarStyleCentered
|
||||
brandName="Irentall"
|
||||
navItems={[
|
||||
@@ -134,7 +196,7 @@ export default function LandingPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="hero" data-section="hero">
|
||||
<div id="hero" data-section="hero" className="relative z-10">
|
||||
<HeroSplitDoubleCarousel
|
||||
title="Find Your Perfect Wedding Dress in Los Angeles"
|
||||
description="Personalized bridal styling with a curated collection of stunning gowns. Our expert team will guide you through every moment of your journey to find the dress of your dreams."
|
||||
@@ -144,7 +206,7 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
buttons={[
|
||||
{ text: "Call Now", href: "tel:747-800-7770" },
|
||||
{ text: "Browse Dresses", onClick: handleScrollToDresses }
|
||||
{ text: "Browse Dresses", onClick: scrollToGallery }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
leftCarouselItems={[
|
||||
@@ -173,7 +235,7 @@ export default function LandingPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="features" data-section="features">
|
||||
<div id="features" data-section="features" className="relative z-10">
|
||||
<FeatureCardSixteen
|
||||
title="What Makes Us Different"
|
||||
description="At Irentall, we believe every bride deserves a personalized, stress-free experience. Here's what sets us apart from other boutiques."
|
||||
@@ -196,7 +258,7 @@ export default function LandingPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="about" data-section="about">
|
||||
<div id="about" data-section="about" className="relative z-10">
|
||||
<TestimonialAboutCard
|
||||
tag="Meet Our Founder"
|
||||
tagIcon={User}
|
||||
@@ -212,7 +274,7 @@ export default function LandingPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="testimonials" data-section="testimonials">
|
||||
<div id="testimonials" data-section="testimonials" className="relative z-10">
|
||||
<TestimonialCardSixteen
|
||||
title="Real Brides, Real Love"
|
||||
description="See what brides in Los Angeles are saying about their Irentall experience."
|
||||
@@ -248,7 +310,7 @@ export default function LandingPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="gallery" data-section="gallery">
|
||||
<div id="gallery" data-section="gallery" className="relative z-10">
|
||||
<div className="relative">
|
||||
<ProductCardFour
|
||||
title="Our Dress Collection"
|
||||
@@ -342,7 +404,7 @@ export default function LandingPage() {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div id="reels" data-section="reels">
|
||||
<div id="reels" data-section="reels" className="relative z-10">
|
||||
<BlogCardThree
|
||||
title="Behind the Beauty"
|
||||
description=""
|
||||
@@ -370,7 +432,7 @@ export default function LandingPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="shoes" data-section="shoes">
|
||||
<div id="shoes" data-section="shoes" className="relative z-10">
|
||||
<ProductCardFour
|
||||
title="Bridal Shoes"
|
||||
description="Complete your wedding day look with stunning shoes designed for comfort and elegance. From classic heels to modern designs."
|
||||
@@ -404,7 +466,7 @@ export default function LandingPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="veils" data-section="veils">
|
||||
<div id="veils" data-section="veils" className="relative z-10">
|
||||
<ProductCardFour
|
||||
title="Veils & Crowns"
|
||||
description="Enhance your bridal beauty with our exquisite collection of veils and headpieces. Each piece is carefully selected to complement your gown perfectly."
|
||||
@@ -438,7 +500,7 @@ export default function LandingPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="contact" data-section="contact">
|
||||
<div id="contact" data-section="contact" className="relative z-10">
|
||||
<ContactCTA
|
||||
tag="Get in Touch"
|
||||
tagIcon={Phone}
|
||||
@@ -457,7 +519,7 @@ export default function LandingPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<div id="footer" data-section="footer" className="relative z-10">
|
||||
<FooterSimple
|
||||
columns={[
|
||||
{
|
||||
@@ -498,4 +560,4 @@ export default function LandingPage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user