From f5eca2fca79abdfbfcb97c867c16858723fe20de Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Wed, 10 Jun 2026 14:53:43 +0000 Subject: [PATCH 1/2] Bob AI: Replaced contact form with a custom direct booking form UI. --- src/pages/HomePage.tsx | 6 +- src/pages/HomePage/sections/Booking.tsx | 110 ++++++++++++++++++++++++ src/pages/HomePage/sections/Contact.tsx | 27 ------ 3 files changed, 113 insertions(+), 30 deletions(-) create mode 100644 src/pages/HomePage/sections/Booking.tsx delete mode 100644 src/pages/HomePage/sections/Contact.tsx diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index ecd577f..13514e7 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -10,9 +10,9 @@ import AmenitiesSection from './HomePage/sections/Amenities'; import TestimonialsSection from './HomePage/sections/Testimonials'; import SocialProofSection from './HomePage/sections/SocialProof'; import FaqSection from './HomePage/sections/Faq'; -import ContactSection from './HomePage/sections/Contact'; -export default function HomePage(): React.JSX.Element { + +import BookingSection from './HomePage/sections/Booking';export default function HomePage(): React.JSX.Element { return ( <> @@ -22,7 +22,7 @@ export default function HomePage(): React.JSX.Element { - + ); } diff --git a/src/pages/HomePage/sections/Booking.tsx b/src/pages/HomePage/sections/Booking.tsx new file mode 100644 index 0000000..4a66c9c --- /dev/null +++ b/src/pages/HomePage/sections/Booking.tsx @@ -0,0 +1,110 @@ +import React, { useState } from 'react'; +import { motion } from 'motion/react'; +import Button from '@/components/ui/Button'; +import Input from '@/components/ui/Input'; +import Label from '@/components/ui/Label'; +import Card from '@/components/ui/Card'; +import Tag from '@/components/ui/Tag'; +import TextAnimation from '@/components/ui/TextAnimation'; +import ScrollReveal from '@/components/ui/ScrollReveal'; + +export default function BookingSection() { + const [checkIn, setCheckIn] = useState(''); + const [checkOut, setCheckOut] = useState(''); + const [guests, setGuests] = useState('2'); + const [roomType, setRoomType] = useState('deluxe'); + + const handleBook = (e: React.FormEvent) => { + e.preventDefault(); + alert(`Checking availability for ${guests} guests from ${checkIn} to ${checkOut} in a ${roomType} room.`); + }; + + return ( +
+
+ +
+ + +

+ Check availability and reserve your room instantly. +

+
+
+ + + +
+
+ + setCheckIn(e.target.value)} + required + className="w-full" + /> +
+ +
+ + setCheckOut(e.target.value)} + required + className="w-full" + /> +
+ +
+ + setGuests(e.target.value)} + required + className="w-full" + /> +
+ +
+ + +
+ +
+
+
+
+
+
+
+ ); +} \ No newline at end of file diff --git a/src/pages/HomePage/sections/Contact.tsx b/src/pages/HomePage/sections/Contact.tsx deleted file mode 100644 index 69b5c0d..0000000 --- a/src/pages/HomePage/sections/Contact.tsx +++ /dev/null @@ -1,27 +0,0 @@ -// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this -// file as the canonical source for the "contact" section. - -import React from 'react'; -import ContactCta from '@/components/sections/contact/ContactCta'; -import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; - -export default function ContactSection(): React.JSX.Element { - return ( -
- - - -
- ); -} -- 2.49.1 From ef6fa2d7fe11c06c517e3ab4f17fa120e0e45006 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Wed, 10 Jun 2026 14:54:23 +0000 Subject: [PATCH 2/2] Bob AI: fix build errors (attempt 1) --- src/pages/HomePage/sections/Booking.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/HomePage/sections/Booking.tsx b/src/pages/HomePage/sections/Booking.tsx index 4a66c9c..fed6cdd 100644 --- a/src/pages/HomePage/sections/Booking.tsx +++ b/src/pages/HomePage/sections/Booking.tsx @@ -20,10 +20,10 @@ export default function BookingSection() { }; return ( -
-
- -
+
+
+ +
- +
-- 2.49.1