From 13eea186834af49968afd941d995948258950e18 Mon Sep 17 00:00:00 2001 From: Emily Neighbour Date: Mon, 28 Apr 2025 12:35:18 +0100 Subject: [PATCH] Contact Us page --- src/app/contact-us/page.tsx | 185 +++++++++++++++++++++++++++++++++++- 1 file changed, 181 insertions(+), 4 deletions(-) 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 ( +
+
+

+ Contact Us +

+

+ 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 */} +
+ + {/* Contact Form */} +
+
+
+ + +
+ +
+ + +
+ +
+ +