From fe1d728b6f8fe00e9a80cdc100b8f85b044828f0 Mon Sep 17 00:00:00 2001 From: v0 Date: Fri, 20 Mar 2026 00:50:34 +0000 Subject: [PATCH] refactor: streamline contact form input fields and remove unnecessary wrappers Co-authored-by: ASOwnerYT <23545044+ASOwnerYT@users.noreply.github.com> --- components/contact.tsx | 138 ++++++++++++++++++++--------------------- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/components/contact.tsx b/components/contact.tsx index 966f768..97f3e79 100644 --- a/components/contact.tsx +++ b/components/contact.tsx @@ -19,7 +19,7 @@ export function Contact() { e.preventDefault() setIsSubmitting(true) setError("") - + try { const response = await fetch('/api/send-email', { method: 'POST', @@ -36,7 +36,7 @@ export function Contact() { setIsSubmitted(true) setFormData({ name: "", email: "", message: "" }) - + // Reset success message after 5 seconds setTimeout(() => setIsSubmitted(false), 5000) } catch (err) { @@ -81,7 +81,7 @@ export function Contact() { Ready to Talk Tech?

- Whether you need a new website, cloud hosting, or help with your + Whether you need a new website, cloud hosting, or help with your I.T systems, we're here to help. Get in touch today.

@@ -90,7 +90,7 @@ export function Contact() { {/* Contact Info */}

Contact Details

- +
{contactInfo.map((item) => { const Icon = item.icon @@ -136,7 +136,7 @@ export function Contact() {

Send Us a Message

- + {isSubmitted ? (
@@ -151,74 +151,74 @@ export function Contact() { <> {error && (
- +

{error}

)}
-
- - setFormData({ ...formData, name: e.target.value })} - required - className="bg-background border-border focus:border-primary transition-colors" - /> -
- -
- - setFormData({ ...formData, email: e.target.value })} - required - className="bg-background border-border focus:border-primary transition-colors" - /> -
- -
- -