Compare commits
5 Commits
version_12
...
version_14
| Author | SHA1 | Date | |
|---|---|---|---|
| 0636e0dc0c | |||
| da50567492 | |||
| 2db5bc271e | |||
| 30e0b609f0 | |||
| 0625be4861 |
@@ -10,11 +10,41 @@ import ContactCTA from "@/components/sections/contact/ContactCTA";
|
|||||||
import FooterSimple from "@/components/sections/footer/FooterSimple";
|
import FooterSimple from "@/components/sections/footer/FooterSimple";
|
||||||
import TestimonialAboutCard from "@/components/sections/about/TestimonialAboutCard";
|
import TestimonialAboutCard from "@/components/sections/about/TestimonialAboutCard";
|
||||||
import BlogCardThree from "@/components/sections/blog/BlogCardThree";
|
import BlogCardThree from "@/components/sections/blog/BlogCardThree";
|
||||||
import { Star, Heart, Users, Camera, Sparkles, Crown, Phone, MessageCircle, User, Play, ChevronRight, X } from "lucide-react";
|
import { Star, Heart, Users, Camera, Sparkles, Crown, Phone, MessageCircle, User, Play, ChevronRight, X, ArrowDown, ArrowUp } from "lucide-react";
|
||||||
import { useState } from "react";
|
import { useState, useEffect } from "react";
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
const [showModal, setShowModal] = useState(false);
|
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 = [
|
const allDresses = [
|
||||||
{
|
{
|
||||||
@@ -109,6 +139,31 @@ export default function LandingPage() {
|
|||||||
secondaryButtonStyle="glass"
|
secondaryButtonStyle="glass"
|
||||||
headingFontWeight="light"
|
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">
|
<div id="nav" data-section="nav">
|
||||||
<NavbarStyleCentered
|
<NavbarStyleCentered
|
||||||
brandName="Irentall"
|
brandName="Irentall"
|
||||||
@@ -133,7 +188,8 @@ export default function LandingPage() {
|
|||||||
tagIcon={Star}
|
tagIcon={Star}
|
||||||
tagAnimation="slide-up"
|
tagAnimation="slide-up"
|
||||||
buttons={[
|
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"
|
buttonAnimation="slide-up"
|
||||||
leftCarouselItems={[
|
leftCarouselItems={[
|
||||||
|
|||||||
Reference in New Issue
Block a user