From 11b6571f907c3813d0eb2a8c3fd319e5ed3dd87d Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 28 Apr 2026 22:08:11 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 43 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index a146fc7..fad4a69 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,6 +1,7 @@ "use client"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import { useState } from "react"; import ContactCTA from '@/components/sections/contact/ContactCTA'; import FaqDouble from '@/components/sections/faq/FaqDouble'; import FeatureCardTwentyEight from '@/components/sections/feature/FeatureCardTwentyEight'; @@ -11,9 +12,12 @@ import ProductCardTwo from '@/components/sections/product/ProductCardTwo'; import TeamCardTwo from '@/components/sections/team/TeamCardTwo'; import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard'; import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve'; -import { Coffee } from "lucide-react"; +import { Coffee, Calendar, Clock } from "lucide-react"; export default function LandingPage() { + const [selectedDate, setSelectedDate] = useState(""); + const [selectedTime, setSelectedTime] = useState(""); + const scrollToSection = (id: string) => { const element = document.getElementById(id); if (element) { @@ -21,6 +25,14 @@ export default function LandingPage() { } }; + const handleBooking = () => { + if (!selectedDate || !selectedTime) { + alert("Veuillez sélectionner une date et un créneau horaire."); + return; + } + alert(`Réservation confirmée pour le ${selectedDate} à ${selectedTime} !`); + }; + return (
- alert("Réservation confirmée !") }]} - /> +
+

Réservation

+
+
+ + setSelectedDate(e.target.value)} /> +
+
+ + +
+ +
+