From 780b6ca629c9a3f261fb3f5623d01ac7118adbfd Mon Sep 17 00:00:00 2001 From: JeffEmmett <20747463-JeffEmmett@users.noreply.replit.com> Date: Fri, 9 May 2025 23:51:31 +0000 Subject: [PATCH] Simplify website design and improve user experience on contact form Remove decorative elements and enhance user input validation in the contact form and testimonial components. Replit-Commit-Author: Agent Replit-Commit-Session-Id: acaf01d7-65a7-4fc5-901d-853488e196e8 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/af8dabca-e746-4e53-9c29-d8d4d9cf30f5/1695a17b-60cc-46a7-886e-2321741926c1.jpg --- .../src/components/community/testimonial.tsx | 43 +-- .../components/contact/contact-section.tsx | 307 ++++++++---------- 2 files changed, 148 insertions(+), 202 deletions(-) diff --git a/client/src/components/community/testimonial.tsx b/client/src/components/community/testimonial.tsx index 660a2d5..230609a 100644 --- a/client/src/components/community/testimonial.tsx +++ b/client/src/components/community/testimonial.tsx @@ -7,49 +7,18 @@ interface TestimonialProps { } export function Testimonial({ quote, author, memberSince, initials, color }: TestimonialProps) { - const colorClasses = { - teal: { - bg: "bg-teal-light", - text: "text-teal", - opacity: "text-teal opacity-30", - }, - purple: { - bg: "bg-purple-light", - text: "text-purple", - opacity: "text-purple opacity-30", - }, - rose: { - bg: "bg-rose-light", - text: "text-rose", - opacity: "text-rose opacity-30", - }, - }; - return ( -
-
- - - -
- -
- -
- -

+

+

"{quote}"

-
-
- {initials} +
+
+ {initials}
-
{author}
+
{author}

Member since {memberSince}

diff --git a/client/src/components/contact/contact-section.tsx b/client/src/components/contact/contact-section.tsx index 4838ff5..00e198f 100644 --- a/client/src/components/contact/contact-section.tsx +++ b/client/src/components/contact/contact-section.tsx @@ -3,10 +3,7 @@ import { useMutation } from "@tanstack/react-query"; import { apiRequest } from "@/lib/queryClient"; import { insertContactMessageSchema } from "@shared/schema"; import { useToast } from "@/hooks/use-toast"; -import { ArabicDecoration } from "@/components/ui/arabic-decoration"; import { Loader2 } from "lucide-react"; -import { SectionDivider, SectionDividerBottom, StarDivider } from "@/components/ui/section-divider"; -import { IslamicPattern } from "@/components/ui/section-divider"; export function ContactSection() { const { toast } = useToast(); @@ -44,186 +41,166 @@ export function ContactSection() { }, }); - const handleChange = (e: React.ChangeEvent) => { + const handleChange = (e: React.ChangeEvent) => { const { name, value } = e.target; setFormData(prev => ({ ...prev, [name]: value })); }; const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); + + if (!formData.name || !formData.email || !formData.message) { + toast({ + title: "Missing information", + description: "Please fill out all required fields", + variant: "destructive", + }); + return; + } + contactMutation.mutate(formData); }; return ( -
- - -
- +
+
+
+

+ Contact Us +

+

+ Have a question or want to schedule a private session? Get in touch with us. +

+
-
-
-

- Contact Us -
-

- -

- Have questions or want to learn more? Reach out to us and we'll get back to you as soon as possible. -

-
- -
-
-
-
- - -
- -
- - -
- -
- - -
- -
- - -
- - -
-
+
+
+

Get In Touch

-
-
-

Connect With Us

- -
-
-
- -
-
-

Our Studio

-

123 Serenity Lane, Wellness District
Dubai, United Arab Emirates

-
-
- -
-
- -
-
-

Email Us

-

hello@pilateswithfadia.com

-

We aim to respond within 24 hours

-
-
- -
-
- -
-
-

Call Us

-

+971 50 123 4567

-

Sunday-Thursday: 9AM-7PM

-
-
- -
-
- -
-
-

Studio Hours

-

- Monday-Friday: 7AM-9PM
- Saturday: 8AM-6PM
- Sunday: 9AM-4PM -

-
-
- -
-

Follow Us

- -
+
+
+
+ +
+
+

Location

+

+ Nun Center, Zamalek
+ Cairo, Egypt +

+
+
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+

Hours

+

+ Monday - Friday: 9am - 6pm
+ Saturday: 10am - 2pm +

+ +
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+
- -
); } \ No newline at end of file