From 9aabd01f19f31d0d79b4ed0181dfb419b14cd144 Mon Sep 17 00:00:00 2001 From: JeffEmmett <20747463-JeffEmmett@users.noreply.replit.com> Date: Wed, 21 May 2025 12:11:05 +0000 Subject: [PATCH] Showcase client feedback below the instructor bio for greater visibility Moves testimonials to a new TestimonialsSection component on HomePage and updates testimonial styling in testimonial.tsx. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 88cd88e4-2dbe-4df6-8c8a-7e38f13ef1ec Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/af8dabca-e746-4e53-9c29-d8d4d9cf30f5/d653b197-958c-4eaf-b1c3-758c1d7f8a33.jpg --- .../community/community-section.tsx | 13 +---- .../src/components/community/testimonial.tsx | 4 +- .../testimonials/testimonials-section.tsx | 56 +++++++++++++++++++ client/src/pages/home-page.tsx | 2 + 4 files changed, 61 insertions(+), 14 deletions(-) create mode 100644 client/src/components/testimonials/testimonials-section.tsx diff --git a/client/src/components/community/community-section.tsx b/client/src/components/community/community-section.tsx index 0888464..515057d 100644 --- a/client/src/components/community/community-section.tsx +++ b/client/src/components/community/community-section.tsx @@ -157,18 +157,7 @@ export function CommunitySection() { -
- {testimonials.map((testimonial, index) => ( - - ))} -
+ {/* Testimonials moved to a separate section */}

diff --git a/client/src/components/community/testimonial.tsx b/client/src/components/community/testimonial.tsx index 230609a..c88633c 100644 --- a/client/src/components/community/testimonial.tsx +++ b/client/src/components/community/testimonial.tsx @@ -8,13 +8,13 @@ interface TestimonialProps { export function Testimonial({ quote, author, memberSince, initials, color }: TestimonialProps) { return ( -
+

"{quote}"

-
+
{initials}
diff --git a/client/src/components/testimonials/testimonials-section.tsx b/client/src/components/testimonials/testimonials-section.tsx new file mode 100644 index 0000000..d56a736 --- /dev/null +++ b/client/src/components/testimonials/testimonials-section.tsx @@ -0,0 +1,56 @@ +import { Testimonial } from "@/components/community/testimonial"; + +export function TestimonialsSection() { + const testimonials = [ + { + quote: "Fadia's approach to Pilates has completely transformed my relationship with my body. The community she's built is supportive and encouraging.", + author: "Sarah H.", + memberSince: "2021", + initials: "SH", + color: "teal", + }, + { + quote: "I've seen incredible improvements in my posture and core strength since joining Fadia's classes. She truly understands how to help each individual.", + author: "Ahmed M.", + memberSince: "2022", + initials: "AM", + color: "purple", + }, + { + quote: "The mindful approach to movement has helped my chronic back pain tremendously. I look forward to every class!", + author: "Laila K.", + memberSince: "2023", + initials: "LK", + color: "rose", + } + ]; + + return ( +
+
+
+

+ What My Clients Say +

+

+ Read about the experiences and transformations of people who practice with me +

+
+ +
+ {testimonials.map((testimonial, index) => ( +
+ +
+ ))} +
+
+
+ ); +} \ No newline at end of file diff --git a/client/src/pages/home-page.tsx b/client/src/pages/home-page.tsx index 69c0f47..b819780 100644 --- a/client/src/pages/home-page.tsx +++ b/client/src/pages/home-page.tsx @@ -2,6 +2,7 @@ import { HeroSection } from "@/components/home/hero-section"; import { AboutSection } from "@/components/about/about-section"; import { ClassesSection } from "@/components/classes/classes-section"; +import { TestimonialsSection } from "@/components/testimonials/testimonials-section"; import { CommunitySection } from "@/components/community/community-section"; import { ContactSection } from "@/components/contact/contact-section"; import { CTASection } from "@/components/home/cta-section"; @@ -18,6 +19,7 @@ export default function HomePage() { +