diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index 27e8709..d9d2450 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -2,131 +2,322 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; -import ContactText from '@/components/sections/contact/ContactText'; +import { useState } from 'react'; import FooterMedia from '@/components/sections/footer/FooterMedia'; import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen'; +import Textarea from '@/components/form/Textarea'; +import ButtonExpandHover from '@/components/button/ButtonExpandHover'; +import { Phone, Mail, MapPin, Clock } from "lucide-react"; + +export default function ContactPage() { + const [fullName, setFullName] = useState(''); + const [phoneNumber, setPhoneNumber] = useState(''); + const [emailAddress, setEmailAddress] = useState(''); + const [propertyLocation, setPropertyLocation] = useState(''); + const [serviceRequired, setServiceRequired] = useState(''); + const [preferredDate, setPreferredDate] = useState(''); + const [preferredTime, setPreferredTime] = useState(''); + const [additionalDetails, setAdditionalDetails] = useState(''); + const [submissionSuccess, setSubmissionSuccess] = useState(false); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + // Here you would typically send the form data to a backend. + // For this example, we'll just simulate a successful submission. + console.log({ + fullName, + phoneNumber, + emailAddress, + propertyLocation, + serviceRequired, + preferredDate, + preferredTime, + additionalDetails, + }); + setSubmissionSuccess(true); + // Optionally reset form fields + setFullName(''); + setPhoneNumber(''); + setEmailAddress(''); + setPropertyLocation(''); + setServiceRequired(''); + setPreferredDate(''); + setPreferredTime(''); + setAdditionalDetails(''); + }; + + const contactInfo = [ + { + icon: Phone, + label: "Call Us", value: "+971 58 931 5357", href: "tel:+971589315357"}, + { + icon: Mail, + label: "Email", value: "info@techguruuae.com", href: "mailto:info@techguruuae.com"}, + { + icon: MapPin, + label: "Office Address", value: "Al Moosa Tower 2, Near Emirates Tower Metro Station, Sheikh Zayed Road, Trade Center First, Dubai, United Arab Emirates", href: "https://www.google.com/maps/search/Al+Moosa+Tower+2,+Sheikh+Zayed+Road,+Dubai"}, + { + icon: Clock, + label: "Working Hours", value: "Monday – Sunday, 8:00 AM – 10:00 PM", href: "#"}, + ]; -export default function LandingPage() { return ( - + -
- console.log('Form submission simulated'), - }, - ]} - /> -
+
+
+
+ {/* Left Column: Booking Form */} +
+
+

Book an Appliance Repair

+

Fill out the form below and our technician will contact you shortly to confirm your appointment.

-
- -
+ {submissionSuccess ? ( +
+ Thank you! + Your booking has been received. Our technician will contact you shortly to confirm your appointment. +
+ ) : ( +
+
+ + setFullName(e.target.value)} + placeholder="Your full name" + required + className="w-full p-3 rounded-md border border-accent bg-background-light text-foreground focus:ring-primary-cta focus:border-primary-cta transition-colors duration-200" + /> +
+
+ + setPhoneNumber(e.target.value)} + placeholder="+971 5X XXX XXXX" + pattern="^\+?[0-9\s\-()]{7,25}$" + required + className="w-full p-3 rounded-md border border-accent bg-background-light text-foreground focus:ring-primary-cta focus:border-primary-cta transition-colors duration-200" + /> +
+
+ + setEmailAddress(e.target.value)} + placeholder="you@example.com" + required + className="w-full p-3 rounded-md border border-accent bg-background-light text-foreground focus:ring-primary-cta focus:border-primary-cta transition-colors duration-200" + /> +
+
+ + setPropertyLocation(e.target.value)} + placeholder="Apartment/Villa No., Street Name, Area" + required + className="w-full p-3 rounded-md border border-accent bg-background-light text-foreground focus:ring-primary-cta focus:border-primary-cta transition-colors duration-200" + /> +
+
+ + +
+
+
+ + setPreferredDate(e.target.value)} + required + className="w-full p-3 rounded-md border border-accent bg-background-light text-foreground focus:ring-primary-cta focus:border-primary-cta transition-colors duration-200" + /> +
+
+ + setPreferredTime(e.target.value)} + required + className="w-full p-3 rounded-md border border-accent bg-background-light text-foreground focus:ring-primary-cta focus:border-primary-cta transition-colors duration-200" + /> +
+
+
+ +