import { useState, useEffect } from "react"; import { useAuth } from "@/hooks/use-auth"; import { Link } from "wouter"; import CommunityImage from "@assets/pilates-community_1749840293503.jpeg"; 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", }, { 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", } ]; // Handle the iframe loading useEffect(() => { if (user) { const timer = setTimeout(() => { setIframeLoaded(true); }, 1500); return () => clearTimeout(timer); } }, [user]); return (

Join the Pilates with Fadia Community

I curate a growing community of like-minded individuals committed to health, wellness, and positive growth.

{/* Testimonials moved to a separate section */} {/* Community Image */}
Pilates Community
{/* Whiteboard removed from homepage and moved to community page */}
); }