diff --git a/src/pages/Contact.tsx b/src/pages/Contact.tsx new file mode 100644 index 0000000..7f7cfd5 --- /dev/null +++ b/src/pages/Contact.tsx @@ -0,0 +1,150 @@ +import { useState } from "react"; +import { Button } from "@/components/ui/button"; +import { Card, CardContent } from "@/components/ui/card"; +import { Badge } from "@/components/ui/badge"; +import { Input } from "@/components/ui/input"; +import { Textarea } from "@/components/ui/textarea"; +import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; +import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion"; +import { MapPin, Phone, Mail, Clock, Send } from "lucide-react"; +import { toast } from "sonner"; +import Header from "@/components/Header"; +import Footer from "@/components/Footer"; +import { useSaasMutation } from "@/hooks/use-tygarun"; + +const offices = [ + { city: "New York Office", addr: "500 Prestige Tower, 5th Avenue, New York, NY 10001", phone: "+1 (212) 555-0199", hours: "Mon-Fri 9:00 AM - 6:00 PM" }, + { city: "Los Angeles Office", addr: "8800 Sunset Blvd, Suite 300, West Hollywood, CA 90069", phone: "+1 (310) 555-0188", hours: "Mon-Fri 9:00 AM - 6:00 PM" }, +]; + +const faqs = [ + { q: "How do I start the home buying process?", a: "Start by getting pre-approved for a mortgage, then connect with one of our agents who will help you identify properties that match your criteria, schedule viewings, and guide you through every step to closing." }, + { q: "What fees are involved in buying a property?", a: "Typical costs include the down payment (3-20% of purchase price), closing costs (2-5%), home inspection fees, appraisal fees, and title insurance. Our agents will provide a detailed breakdown specific to your situation." }, + { q: "How long does it take to sell a property?", a: "On average, our listings sell within 30-45 days, though this varies by market and price point. Our marketing strategy, professional photography, and extensive network often lead to faster sales at premium prices." }, + { q: "Do you help with property investment analysis?", a: "Absolutely. Our investment specialists provide detailed market analysis, ROI projections, rental income estimates, and neighborhood growth data to help you make informed investment decisions." }, +]; + +export default function ContactPage() { + // toast from sonner (imported above) + const [interest, setInterest] = useState(""); + const { mutate: createLead, loading: sending } = useSaasMutation("crm", "/leads"); + + const handleSubmit = async (e: React.FormEvent) => { + e.preventDefault(); + const form = e.currentTarget; + const fd = new FormData(form); + try { + await createLead({ + name: fd.get("name"), + email: fd.get("email"), + phone: fd.get("phone"), + interest, + message: fd.get("message"), + }); + toast.success("Message sent! An agent will get back to you within 24 hours."); + form.reset(); + setInterest(""); + } catch { + toast.error("Could not send message. Please try again."); + } + }; + + return ( +
+
+ + {/* ── HERO ── */} +
+
+ Get in Touch +

Contact Us

+

Have a question or ready to start your property search? We would love to hear from you.

+
+
+ + {/* ── CONTACT SPLIT ── */} +
+
+
+ + {/* LEFT:Offices */} +
+

Our Offices

+
+ {offices.map((o, i) => ( + + +

{o.city}

+
+
{o.addr}
+
{o.phone}
+
{o.hours}
+
+
+
+ ))} +
+ +
+
+ + hello@prestigerealty.com +
+
+ + +1 (800) 555-REAL +
+
+
+ + {/* RIGHT:Form */} +
+ + +

Send Us a Message

+
+
+ + +
+ + +