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..fed6cdd --- /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 ( -
- - - -
- ); -}