From 73600ac83bd37125fa1354641376dfd70e2b93fd Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 15 Apr 2026 05:13:01 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index bc3462d..4587785 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -16,10 +16,11 @@ export default function LandingPage() { const [isReserving, setIsReserving] = useState(false); const [email, setEmail] = useState(""); const [mobile, setMobile] = useState(""); + const [name, setName] = useState(""); const [guests, setGuests] = useState("2"); const handleReserve = () => { - const message = encodeURIComponent(`Hello, I would like to book a table at Shaffa. \nEmail: ${email}\nMobile: ${mobile}\nGuests: ${guests}`); + const message = encodeURIComponent(`Hello, I would like to book a table at Shaffa. \nName: ${name}\nEmail: ${email}\nMobile: ${mobile}\nGuests: ${guests}`); window.open(`https://wa.me/919876543210?text=${message}`, '_blank'); setIsReserving(false); }; @@ -47,7 +48,7 @@ export default function LandingPage() { { name: "Contact", id: "contact" }, ]} button={{ - text: "Reserve", onClick: () => setIsReserving(true) + text: "Book a table", onClick: () => setIsReserving(true) }} brandName="Shaffa" /> @@ -59,7 +60,7 @@ export default function LandingPage() { description="Authentic flavors of North India, crafted for families and couples in the heart of Sec 26B, Chandigarh." buttons={[ { - text: "Reserve on WhatsApp", onClick: () => setIsReserving(true), + text: "Book a table", onClick: () => setIsReserving(true), }, ]} imageSrc="http://img.b2bpic.net/free-photo/vegetable-salad-with-herbs-cheese_140725-44342.jpg?_wi=1" @@ -70,7 +71,13 @@ export default function LandingPage() { {isReserving && (
-

Confirm Your Reservation

+

Book a Table

+ setName(e.target.value)} + /> setMobile(e.target.value)} /> - setGuests(e.target.value)} - />
- - + +
@@ -104,6 +104,9 @@ export default function LandingPage() { textboxLayout="default" gridVariant="three-columns-all-equal-width" useInvertedBackground={false} + buttons={[ + { text: "Reserve on WhatsApp", onClick: () => setIsReserving(true) } + ]} products={[ { id: "m1", name: "Butter Chicken", price: "₹450", variant: "Popular", imageSrc: "http://img.b2bpic.net/free-photo/top-close-view-delicious-bright-cake-with-cream-cracker-cookies-dark-wall-cake-biscuit-pie-sugar-sweet-photo-cookie_140725-53987.jpg?_wi=1" }, { id: "m2", name: "Tandoori Platter", price: "₹650", variant: "Premium", imageSrc: "http://img.b2bpic.net/free-photo/top-view-assortment-different-pakistan-goodies_23-2148821568.jpg?_wi=1" },