From 52146a5c71787a22eead45440beb5f534abcddc4 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Sat, 4 Jul 2026 07:54:46 +0000 Subject: [PATCH] Bob AI: implement a fully functional booking form in the website tha --- src/components/ui/NavbarInline.tsx | 57 +++- src/pages/HomePage.tsx | 274 ++---------------- src/pages/HomePage/sections/About.tsx | 39 +++ src/pages/HomePage/sections/Contact.tsx | 27 ++ src/pages/HomePage/sections/Hero.tsx | 29 ++ src/pages/HomePage/sections/Menu.tsx | 58 ++++ src/pages/HomePage/sections/Metrics.tsx | 49 ++++ src/pages/HomePage/sections/PopularDishes.tsx | 64 ++++ src/pages/HomePage/sections/Testimonials.tsx | 52 ++++ 9 files changed, 397 insertions(+), 252 deletions(-) create mode 100644 src/pages/HomePage/sections/About.tsx create mode 100644 src/pages/HomePage/sections/Contact.tsx create mode 100644 src/pages/HomePage/sections/Hero.tsx create mode 100644 src/pages/HomePage/sections/Menu.tsx create mode 100644 src/pages/HomePage/sections/Metrics.tsx create mode 100644 src/pages/HomePage/sections/PopularDishes.tsx create mode 100644 src/pages/HomePage/sections/Testimonials.tsx diff --git a/src/components/ui/NavbarInline.tsx b/src/components/ui/NavbarInline.tsx index b5908a8..d8b6c26 100644 --- a/src/components/ui/NavbarInline.tsx +++ b/src/components/ui/NavbarInline.tsx @@ -1,4 +1,8 @@ import Button from "@/components/ui/Button"; +import Modal from "@/components/ui/Modal"; +import Input from "@/components/ui/Input"; +import Label from "@/components/ui/Label"; +import { useState } from "react"; interface NavbarInlineProps { logo: string; @@ -15,6 +19,47 @@ const handleNavClick = (e: React.MouseEvent, href: string, on onClose?.(); }; +const BookingForm = () => { + const [isSubmitted, setIsSubmitted] = useState(false); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + setIsSubmitted(true); + setTimeout(() => setIsSubmitted(false), 3000); + }; + + if (isSubmitted) { + return ( +
+

Reservation Request Sent!

+

We will contact you shortly to confirm your booking.

+
+ ); + } + + return ( +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+