diff --git a/src/app/contact-us/page.tsx b/src/app/contact-us/page.tsx index dbc1370..42c71ef 100644 --- a/src/app/contact-us/page.tsx +++ b/src/app/contact-us/page.tsx @@ -1,6 +1,183 @@ "use client"; +import React, { useState } from "react"; -export default function Page() -{ - return(
Contact Us
) -} +const ContactUs = () => { + const [formData, setFormData] = useState({ + name: "", + email: "", + message: "", + }); + + const handleChange = (e) => { + setFormData({ ...formData, [e.target.name]: e.target.value }); + }; + + const handleSubmit = (e) => { + e.preventDefault(); + console.log("Form submitted with data:", formData); + // Handle form submission, like sending data to a server + alert("Thank you for reaching out! We will get back to you soon."); + setFormData({ name: "", email: "", message: "" }); // Clear form + }; + + return ( ++ Have questions or concerns about earthquake preparedness? Contact us + using the form below or through the provided contact details. +
+ + {/* Flexbox Layout for Form and Contact Details */} +support@earthquakesafety.org
++1 800 123 4567
++ 123 Earthquake Ave, Prepared City, CA 98765 +
+