From 74e6b2cd62b461163429470c2b34cffa7067e2c3 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 17 May 2026 16:17:28 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 1b2dacf..018a45c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,6 +2,7 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; +import { useState } from "react"; import ContactSplitForm from '@/components/sections/contact/ContactSplitForm'; import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne'; import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal'; @@ -13,6 +14,17 @@ import PricingCardNine from '@/components/sections/pricing/PricingCardNine'; import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo'; export default function LandingPage() { + const [submitted, setSubmitted] = useState(false); + const [selectedService, setSelectedService] = useState(null); + + const handleServiceSelect = (serviceName: string) => { + setSelectedService(serviceName); + const contactSection = document.getElementById('contact'); + if (contactSection) { + contactSection.scrollIntoView({ behavior: 'smooth' }); + } + }; + return ( handleServiceSelect("Coupe & Coiffage") } }, { id: "p2", title: "La Barbe Traditionnelle", price: "25€", period: "service", features: ["Taille aux ciseaux", "Rasoir de précision", "Rituel serviette chaude", "Huiles de soin"], - imageSrc: "http://img.b2bpic.net/free-photo/close-up-from-man-barber-shop_23-2148257045.jpg?_wi=2", imageAlt: "Back view of man getting a haircut", button: { text: "Réserver" } + imageSrc: "http://img.b2bpic.net/free-photo/close-up-from-man-barber-shop_23-2148257045.jpg?_wi=2", imageAlt: "Back view of man getting a haircut", button: { text: "Réserver", onClick: () => handleServiceSelect("La Barbe Traditionnelle") } }, { id: "p3", title: "Le Rituel Mondial", price: "55€", period: "service", features: ["Coupe premium", "Soin de la barbe", "Massage signature", "Finitions irréprochables"], - imageSrc: "http://img.b2bpic.net/free-photo/barber-shop-tools-arrangement_23-2149167448.jpg", imageAlt: "Back view of man getting a haircut", button: { text: "Réserver" } + imageSrc: "http://img.b2bpic.net/free-photo/barber-shop-tools-arrangement_23-2149167448.jpg", imageAlt: "Back view of man getting a haircut", button: { text: "Réserver", onClick: () => handleServiceSelect("Le Rituel Mondial") } } ]} title="Nos Services Signature" @@ -145,12 +157,13 @@ export default function LandingPage() {
setSubmitted(true)} />
@@ -167,4 +180,4 @@ export default function LandingPage() {
); -} +} \ No newline at end of file -- 2.49.1