From 49bf7b0974ce33bb012a86a32807b29cf0b54550 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 5 Mar 2026 16:37:47 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 206 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 175 insertions(+), 31 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 7a03db7..a308acf 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,5 +1,6 @@ "use client"; +import { useState } from "react"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay"; import HeroBillboardTestimonial from "@/components/sections/hero/HeroBillboardTestimonial"; @@ -25,9 +26,35 @@ import { Users, Flame, Star, + CheckCircle, + Calendar, + Clock, + Users as GuestIcon, } from "lucide-react"; export default function SunHotelsLanding() { + const [reservationConfirmation, setReservationConfirmation] = useState<{ + show: boolean; + data: Record | null; + }>({ + show: false, + data: null, + }); + + const handleReservationSubmit = (data: Record) => { + setReservationConfirmation({ + show: true, + data, + }); + }; + + const closeConfirmation = () => { + setReservationConfirmation({ + show: false, + data: null, + }); + }; + return ( + {reservationConfirmation.show && reservationConfirmation.data && ( +
+
+
+ +
+

+ Reservation Confirmed! +

+

+ Thank you for booking with us. Your table is reserved. +

+
+
+ ๐Ÿ‘ค +
+

Guest Name

+

+ {reservationConfirmation.data.name} +

+
+
+
+ +
+

Date

+

+ {new Date(reservationConfirmation.data.date).toLocaleDateString( + "en-US", { + weekday: "long", year: "numeric", month: "long", day: "numeric"} + )} +

+
+
+
+ +
+

Time

+

+ {reservationConfirmation.data.time} +

+
+
+
+ +
+

Number of Guests

+

+ {reservationConfirmation.data.guests} {reservationConfirmation.data.guests === "1" ? "guest" : "guests"} +

+
+
+
+ +
+

Contact Number

+

+ {reservationConfirmation.data.phone} +

+
+
+ {reservationConfirmation.data.specialRequest && ( +
+

Special Requests

+

+ {reservationConfirmation.data.specialRequest} +

+
+ )} +
+
+

+ A confirmation has been sent to your phone number. We look forward to serving you! +

+ +
+
+
+ )} + @@ -228,17 +363,23 @@ export default function SunHotelsLanding() { tagAnimation="slide-up" faqs={[ { - id: "location", title: "How to Find Us", content: "Sun Hotels
UKPM Square, 281, Palani Rd, Gandhi Nagar
Udumalaipettai, Tamil Nadu 642154, India

๐Ÿ“ Easy to locate in the heart of Udumalaipettai
๐Ÿ…ฟ๏ธ Large and convenient parking area"}, + id: "location", title: "How to Find Us", content: "Sun Hotels
UKPM Square, 281, Palani Rd, Gandhi Nagar
Udumalaipettai, Tamil Nadu 642154, India

๐Ÿ“ Easy to locate in the heart of Udumalaipettai
๐Ÿ…ฟ๏ธ Large and convenient parking area" + }, { - id: "parking", title: "Parking Options", content: "We offer free parking for all our guests in a spacious lot adjacent to the restaurant. We also have paid parking available for large groups and events. Easy accessibility for all vehicle types."}, + id: "parking", title: "Parking Options", content: "We offer free parking for all our guests in a spacious lot adjacent to the restaurant. We also have paid parking available for large groups and events. Easy accessibility for all vehicle types." + }, { - id: "accessibility", title: "Wheelchair Accessibility", content: "โœ“ Wheelchair accessible entrance
โœ“ Accessible seating arrangements
โœ“ Wheelchair accessible parking spaces
โœ“ Wheelchair accessible restrooms

We welcome all guests and are committed to providing an inclusive dining experience."}, + id: "accessibility", title: "Wheelchair Accessibility", content: "โœ“ Wheelchair accessible entrance
โœ“ Accessible seating arrangements
โœ“ Wheelchair accessible parking spaces
โœ“ Wheelchair accessible restrooms

We welcome all guests and are committed to providing an inclusive dining experience." + }, { - id: "hours", title: "Hours & Contacts", content: "Hours: Open from 10:00 AM until 11:00 PM

Contact:
๐Ÿ“ž Phone: +91 97877 47875
๐Ÿ’ฌ WhatsApp: +91 97877 47875

Call ahead to reserve your table or place an order."}, + id: "hours", title: "Hours & Contacts", content: "Hours: Open from 10:00 AM until 11:00 PM

Contact:
๐Ÿ“ž Phone: +91 97877 47875
๐Ÿ’ฌ WhatsApp: +91 97877 47875

Call ahead to reserve your table or place an order." + }, { - id: "atmosphere", title: "Dining Atmosphere", content: "๐ŸŒก๏ธ Air-Conditioned comfortable environment
๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง Family-Friendly space perfect for all ages
๐Ÿ’ผ Business-Ready with private dining options
๐ŸŽ‰ Event-Capable with catering services"}, + id: "atmosphere", title: "Dining Atmosphere", content: "๐ŸŒก๏ธ Air-Conditioned comfortable environment
๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง Family-Friendly space perfect for all ages
๐Ÿ’ผ Business-Ready with private dining options
๐ŸŽ‰ Event-Capable with catering services" + }, { - id: "crowd", title: "Who Visits Us", content: "๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Families enjoying quality time together
๐ŸŽ’ Tourists exploring local flavors
๐Ÿ‘ฅ Groups celebrating special occasions
๐Ÿ’ผ Business Diners for meetings and events
๐Ÿšถ Solo Diners looking for authentic cuisine"}, + id: "crowd", title: "Who Visits Us", content: "๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Families enjoying quality time together
๐ŸŽ’ Tourists exploring local flavors
๐Ÿ‘ฅ Groups celebrating special occasions
๐Ÿ’ผ Business Diners for meetings and events
๐Ÿšถ Solo Diners looking for authentic cuisine" + }, ]} faqsAnimation="blur-reveal" textboxLayout="default" @@ -253,13 +394,16 @@ export default function SunHotelsLanding() { socialLinks={[ { icon: Phone, - href: "tel:+919787747875", ariaLabel: "Call Sun Hotels"}, + href: "tel:+919787747875", ariaLabel: "Call Sun Hotels" + }, { icon: MessageCircle, - href: "https://wa.me/919787747875", ariaLabel: "WhatsApp Sun Hotels"}, + href: "https://wa.me/919787747875", ariaLabel: "WhatsApp Sun Hotels" + }, { icon: MapPin, - href: "https://maps.google.com/?q=Sun+Hotels+Udumalaipettai", ariaLabel: "View on Google Maps"}, + href: "https://maps.google.com/?q=Sun+Hotels+Udumalaipettai", ariaLabel: "View on Google Maps" + }, ]} />