import { useState, useEffect } from "react"; import { Testimonial } from "./testimonial"; import { useAuth } from "@/hooks/use-auth"; import { Link } from "wouter"; import { Card, CardContent } from "@/components/ui/card"; export function CommunitySection() { const { user } = useAuth(); const [iframeLoaded, setIframeLoaded] = useState(false); 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" as const, }, { quote: "As someone recovering from back surgery, I was hesitant to try Pilates. Fadia's expertise made me feel safe and I've gained strength I never thought possible.", author: "Michael K.", memberSince: "2022", initials: "MK", color: "purple" as const, }, { quote: "The community aspect of Pilates with Fadia sets it apart. I've not only improved my physical health but have made wonderful connections with fellow members.", author: "Amina L.", memberSince: "2020", initials: "AL", color: "rose" as const, }, ]; // This function would load the actual whiteboard in a real implementation // For now, we're simulating the load timing useEffect(() => { if (user) { const timer = setTimeout(() => { setIframeLoaded(true); }, 1000); return () => clearTimeout(timer); } }, [user]); return (

Our Community

A Global Space for Movement & Connection

Whether you're joining from your living room in Cairo or your studio in Berlin, you're part of a larger collective—a community that values strength, softness, breath, and belonging.

{testimonials.map((testimonial, index) => ( ))}

Community Digital Whiteboard

{user ? ( iframeLoaded ? (