diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index 96d62d3..2c7fdc0 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -4,22 +4,33 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline"; import ContactFaq from "@/components/sections/contact/ContactFaq"; import FooterSimple from "@/components/sections/footer/FooterSimple"; -import { Phone } from "lucide-react"; +import { Phone, Mail } from "lucide-react"; import { useState } from "react"; -import Input from "@/components/form/Input"; export default function ContactPage() { const [formData, setFormData] = useState({ name: "", email: "", subject: "", message: ""}); + const [submitted, setSubmitted] = useState(false); - const handleChange = (field: string, value: string) => { - setFormData((prev) => ({ ...prev, [field]: value })); + const handleInputChange = ( + e: React.ChangeEvent + ) => { + const { name, value } = e.target; + setFormData((prev) => ({ + ...prev, + [name]: value, + })); }; - const handleSubmit = (e: React.FormEvent) => { + const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); + // Here you would typically send the form data to a backend console.log("Form submitted:", formData); - setFormData({ name: "", email: "", subject: "", message: "" }); + setSubmitted(true); + setTimeout(() => { + setFormData({ name: "", email: "", subject: "", message: "" }); + setSubmitted(false); + }, 3000); }; return ( @@ -43,152 +54,147 @@ export default function ContactPage() { { name: "Features", id: "features" }, { name: "Why AirPods", id: "metrics" }, { name: "Support", id: "faq" }, - { name: "Pricing", id: "/pricing" }, - { name: "Contact", id: "/contact" }, + { name: "Pricing", id: "pricing" }, + { name: "Contact", id: "contact" }, ]} button={{ text: "Shop Now", href: "/" }} animateOnLoad={true} /> -
-
-
- {/* Contact Form */} -
-

Get in Touch

-

We'd love to hear from you. Send us a message and we'll respond as soon as possible.

- +
+
+
+ {/* Contact Information Section */} +
+
+
+
+ +
+

Call Us

+
+

+1 (800) 275-2273

+

Available Monday to Friday, 9AM to 6PM EST

+
+ +
+
+
+ +
+

Email Us

+
+

support@airpods.com

+

We'll get back to you within 24 hours

+
+ +
+
+
+ +
+

Live Chat

+
+

Chat with our support team

+

Available 24/7 for immediate assistance

+
+
+ + {/* Contact Form Section */} +
+

Send us a Message

+

Have a question or feedback? Fill out the form below and we'll get back to you as soon as possible.

+
-
- - handleChange("name", value)} - placeholder="Your name" - required - /> +
+
+ + +
+
+ + +
- - handleChange("email", value)} - type="email" - placeholder="your@email.com" - required - /> -
- -
- - Subject + handleChange("subject", value)} - placeholder="How can we help?" + onChange={handleInputChange} required + placeholder="How can we help?" + className="w-full px-4 py-2 rounded-lg bg-secondary-cta/50 border border-accent/20 focus:outline-none focus:border-primary-cta" />
- +