Compare commits

..

5 Commits

Author SHA1 Message Date
0636e0dc0c Update src/app/page.tsx 2026-03-19 05:52:24 +00:00
da50567492 Merge version_13 into main
Merge version_13 into main
2026-03-19 05:47:46 +00:00
2db5bc271e Update src/app/page.tsx 2026-03-19 05:47:42 +00:00
30e0b609f0 Merge version_12 into main
Merge version_12 into main
2026-03-19 05:44:22 +00:00
0625be4861 Merge version_12 into main
Merge version_12 into main
2026-03-19 05:43:57 +00:00

View File

@@ -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 } 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 = [
{
@@ -109,6 +139,31 @@ export default function LandingPage() {
secondaryButtonStyle="glass"
headingFontWeight="light"
>
{/* 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">
<NavbarStyleCentered
brandName="Irentall"
@@ -133,7 +188,8 @@ export default function LandingPage() {
tagIcon={Star}
tagAnimation="slide-up"
buttons={[
{ text: "Call Now", href: "tel:747-800-7770" }
{ text: "Call Now", href: "tel:747-800-7770" },
{ text: "Browse Dresses", onClick: scrollToGallery }
]}
buttonAnimation="slide-up"
leftCarouselItems={[