Showcase community image as a background with a prominent call-to-action

Replaces the community image with a background image and adds a translucent overlay in CommunitySection.tsx.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e524de2d-167c-4bad-8c36-b012186a210b
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/af8dabca-e746-4e53-9c29-d8d4d9cf30f5/c3f18c2f-a395-4591-aa44-352dec1be7ef.jpg
This commit is contained in:
JeffEmmett 2025-06-13 19:26:41 +00:00
parent 1a1f4ef417
commit 1d73c4121c
1 changed files with 20 additions and 17 deletions

View File

@ -56,23 +56,26 @@ export function CommunitySection() {
{/* Testimonials moved to a separate section */}
{/* Community Image */}
<div className="flex justify-center mb-8">
<img
src={CommunityImage}
alt="Pilates Community"
className="w-full max-w-2xl rounded-lg shadow-lg object-cover"
/>
</div>
{/* Whiteboard removed from homepage and moved to community page */}
<div className="text-center">
<Link to="/auth">
<button className="px-8 py-3 bg-rose text-white font-bold rounded-full hover:bg-opacity-90 transition duration-300 shadow-md">
{user ? "Access Community Dashboard" : "Join My Community"}
</button>
</Link>
{/* Community Background with Centered Button */}
<div
className="relative w-full h-96 rounded-lg shadow-lg overflow-hidden flex items-center justify-center"
style={{
backgroundImage: `url(${CommunityImage})`,
backgroundSize: 'cover',
backgroundPosition: 'center',
}}
>
{/* Translucent overlay */}
<div className="absolute inset-0 bg-black bg-opacity-40"></div>
{/* Centered button */}
<div className="relative z-10">
<Link to="/auth">
<button className="px-8 py-3 bg-rose text-white font-bold rounded-full hover:bg-opacity-90 transition duration-300 shadow-lg">
{user ? "Access Community Dashboard" : "Join My Community"}
</button>
</Link>
</div>
</div>
</div>
</section>