diff --git a/client/pages/Contact.tsx b/client/pages/Contact.tsx index 1f930830..810d026e 100644 --- a/client/pages/Contact.tsx +++ b/client/pages/Contact.tsx @@ -1,30 +1,79 @@ import Layout from "@/components/Layout"; +import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card"; +import { Button } from "@/components/ui/button"; +import { Input } from "@/components/ui/input"; +import { Textarea } from "@/components/ui/textarea"; +import { Label } from "@/components/ui/label"; +import { aethexToast } from "@/lib/aethex-toast"; +import { Mail, Phone, MessageSquare } from "lucide-react"; +import { useState } from "react"; export default function Contact() { + const [name, setName] = useState(""); + const [email, setEmail] = useState(""); + const [message, setMessage] = useState(""); + const [isSending, setIsSending] = useState(false); + + const submit = async (e: React.FormEvent) => { + e.preventDefault(); + if (!name.trim() || !email.trim() || !message.trim()) { + aethexToast.error({ title: "Missing info", description: "Please fill out all fields." }); + return; + } + setIsSending(true); + try { + // In production, send to your backend or a function endpoint + aethexToast.success({ title: "Message sent", description: "We’ll get back to you within 1–2 business days." }); + setName(""); setEmail(""); setMessage(""); + } catch (err: any) { + aethexToast.error({ title: "Failed to send", description: err?.message || "Try again." }); + } finally { + setIsSending(false); + } + }; + return (
-
-

- Contact Us -

-

- Have a project or question? Reach out and we’ll get back within 1–2 - business days. -

-
-
-

Email

-

- support@aethex.biz -

-
-
-

Community

-

- Join the community hub to ask questions and collaborate. -

+
+
+
+

Contact Us

+

Have a project or question? We typically respond within 1–2 business days.

+ + +
support@aethex.biz
+
(530) 784-1287
+
Community hub
+
+
+ + + + Send a message + Tell us about your goals and timeline. + + +
+
+ + setName(e.target.value)} placeholder="Your name" /> +
+
+ + setEmail(e.target.value)} placeholder="you@example.com" /> +
+
+ +