From e49552c3d7ff1e94a2e00c037db2a15cdb0db24f Mon Sep 17 00:00:00 2001 From: Sahil Date: Thu, 12 Sep 2024 22:52:17 +0530 Subject: [PATCH] contact form changed --- app/(All Pages)/contact/page.tsx | 236 ++++++++++++------------------- 1 file changed, 93 insertions(+), 143 deletions(-) diff --git a/app/(All Pages)/contact/page.tsx b/app/(All Pages)/contact/page.tsx index 33a7bc2..037e68e 100644 --- a/app/(All Pages)/contact/page.tsx +++ b/app/(All Pages)/contact/page.tsx @@ -1,154 +1,104 @@ -import React from "react"; -import { Underdevelopment } from "@/Components/Underdevelopment"; -//TODO: Edit the contact form to suit our current requirement -//TODO:Connect the form with backend service -const Contact = () => { - return ( -
-
-
-
-

- At the same time, the fact that we are wholly owned and totally - independent from manufacturer and other group control gives you - confidence that we will only recommend what is right for you. -

- -
- - {" "} - 0151 475 4450{" "} - - -
- 282 Kevin Brook, Imogeneborough, CA 58517 -
-
-
- -
-
-
- - -
- -
-
- - -
- -
- - -
-
+"use client"; +import React, { useState } from "react"; -
-
- -
+const ContactForm: React.FC = () => { + const [formData, setFormData] = useState({ + email: "", + phone: "", + message: "", + }); -
- -
+ const handleChange = ( + e: React.ChangeEvent + ) => { + const { name, value } = e.target; + setFormData((prevData) => ({ + ...prevData, + [name]: value, + })); + }; -
- -
-
+ if (formSubmitted) { + return
Form submitted
; + } -
- - - -
- -
- -
-
-
-
+ return ( +
+
+ + +
+
+ + +
+
+ +