Deploy
This commit is contained in:
@@ -0,0 +1,143 @@
|
|||||||
|
'use client'
|
||||||
|
|
||||||
|
import { useState } from "react"
|
||||||
|
import { Mail, Phone, Send } from 'lucide-react'
|
||||||
|
import Button from "@/components/ui/Button"
|
||||||
|
import Input from "@/components/ui/Input"
|
||||||
|
|
||||||
|
export default function LodgeEnquirySection() {
|
||||||
|
const [form, setForm] = useState({ name: "", email: "", phone: "", message: "", arrival: "", departure: "" })
|
||||||
|
const [submitted, setSubmitted] = useState(false)
|
||||||
|
|
||||||
|
const handleChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
|
||||||
|
setForm(prev => ({ ...prev, [e.target.name]: e.target.value }))
|
||||||
|
}
|
||||||
|
|
||||||
|
const handleSubmit = (e: React.FormEvent) => {
|
||||||
|
e.preventDefault()
|
||||||
|
// In production, send to Medusa / api or email
|
||||||
|
console.log("Enquiry submitted", form)
|
||||||
|
setSubmitted(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section data-vula-section="lodgeenquiry" id="contact-us" className="bg-white py-16 md:py-24 px-4">
|
||||||
|
<div className="max-w-5xl mx-auto">
|
||||||
|
<div className="grid md:grid-cols-2 gap-12 items-start">
|
||||||
|
{/* Left: form */}
|
||||||
|
<div>
|
||||||
|
<h2 className="text-3xl md:text-4xl font-bold text-[#2C1810] mb-3">
|
||||||
|
Get in Touch
|
||||||
|
</h2>
|
||||||
|
<p className="text-[#2C1810]/70 mb-8">
|
||||||
|
We'd love to hear from you — ask us anything, from a special request to the best birdwatching spots.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
{submitted ? (
|
||||||
|
<div className="bg-[#FDF6EC] border border-[#F1C40F]/30 rounded-xl p-6 text-[#2C1810]">
|
||||||
|
<p className="font-semibold text-lg">Thank you! Your message has been received.</p>
|
||||||
|
<p className="text-sm mt-2">We'll get back to you within 24 hours.</p>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<form onSubmit={handleSubmit} className="space-y-5">
|
||||||
|
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||||
|
<Input
|
||||||
|
name="name"
|
||||||
|
placeholder="Your name"
|
||||||
|
value={form.name}
|
||||||
|
onChange={handleChange}
|
||||||
|
required
|
||||||
|
className="bg-[#FDF6EC] border-2 border-transparent focus:border-[#C0392B] focus:ring-0 rounded-lg"
|
||||||
|
/>
|
||||||
|
<Input
|
||||||
|
name="email"
|
||||||
|
type="email"
|
||||||
|
placeholder="Your email"
|
||||||
|
value={form.email}
|
||||||
|
onChange={handleChange}
|
||||||
|
required
|
||||||
|
className="bg-[#FDF6EC] border-2 border-transparent focus:border-[#C0392B] focus:ring-0 rounded-lg"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<Input
|
||||||
|
name="phone"
|
||||||
|
placeholder="Phone number (optional)"
|
||||||
|
value={form.phone}
|
||||||
|
onChange={handleChange}
|
||||||
|
className="bg-[#FDF6EC] border-2 border-transparent focus:border-[#C0392B] focus:ring-0 rounded-lg"
|
||||||
|
/>
|
||||||
|
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||||
|
<Input
|
||||||
|
name="arrival"
|
||||||
|
type="date"
|
||||||
|
placeholder="Arrival date"
|
||||||
|
value={form.arrival}
|
||||||
|
onChange={handleChange}
|
||||||
|
className="bg-[#FDF6EC] border-2 border-transparent focus:border-[#C0392B] focus:ring-0 rounded-lg"
|
||||||
|
/>
|
||||||
|
<Input
|
||||||
|
name="departure"
|
||||||
|
type="date"
|
||||||
|
placeholder="Departure date"
|
||||||
|
value={form.departure}
|
||||||
|
onChange={handleChange}
|
||||||
|
className="bg-[#FDF6EC] border-2 border-transparent focus:border-[#C0392B] focus:ring-0 rounded-lg"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<textarea
|
||||||
|
name="message"
|
||||||
|
placeholder="Your message..."
|
||||||
|
rows={4}
|
||||||
|
value={form.message}
|
||||||
|
onChange={handleChange}
|
||||||
|
className="w-full bg-[#FDF6EC] border-2 border-transparent focus:border-[#C0392B] focus:ring-0 rounded-lg p-3 text-sm text-[#2C1810] placeholder:text-[#2C1810]/40 resize-none"
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
type="submit"
|
||||||
|
className="bg-[#F1C40F] text-[#2C1810] hover:bg-[#E67E22] hover:text-white px-8 py-3 font-semibold rounded-xl transition-all duration-200 ease-out"
|
||||||
|
>
|
||||||
|
<Send className="w-4 h-4 mr-2" />
|
||||||
|
Send Enquiry
|
||||||
|
</Button>
|
||||||
|
</form>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Right: contact info */}
|
||||||
|
<div className="space-y-6">
|
||||||
|
<div className="rounded-xl bg-[#FDF6EC] p-6 border border-[#e5e7eb]">
|
||||||
|
<h3 className="text-lg font-semibold text-[#2C1810] mb-4">Contact Details</h3>
|
||||||
|
<div className="space-y-3">
|
||||||
|
<a
|
||||||
|
href="tel:+27331234567"
|
||||||
|
className="flex items-center gap-3 text-[#2C1810]/80 hover:text-[#C0392B] transition-colors"
|
||||||
|
>
|
||||||
|
<Phone className="w-5 h-5 text-[#E67E22]" />
|
||||||
|
<span>+27 33 123 4567</span>
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="mailto:info@kwantofontofo.co.za"
|
||||||
|
className="flex items-center gap-3 text-[#2C1810]/80 hover:text-[#C0392B] transition-colors"
|
||||||
|
>
|
||||||
|
<Mail className="w-5 h-5 text-[#E67E22]" />
|
||||||
|
<span>info@kwantofontofo.co.za</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="rounded-xl bg-[#FDF6EC] p-6 border border-[#e5e7eb]">
|
||||||
|
<h3 className="text-lg font-semibold text-[#2C1810] mb-2">Quick Response</h3>
|
||||||
|
<p className="text-[#2C1810]/70 text-sm">
|
||||||
|
We aim to reply to all enquiries within 2 hours during business hours.
|
||||||
|
For urgent bookings, please call us directly.
|
||||||
|
</p>
|
||||||
|
<p className="mt-3 text-sm font-medium text-[#C0392B]">
|
||||||
|
Or WhatsApp us on +27 33 123 4567
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user