Skip to content

Commit db3e0e3

Browse files
Blur testimonials section
Blurs the testimonials section on the homepage and adds a "coming soon" overlay.
1 parent 3352a51 commit db3e0e3

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed

src/pages/Index.tsx

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Link } from 'react-router-dom';
33
import { useAuth } from '../utils/auth';
4-
import { ArrowRight, HeartPulse, Shield, Zap, Users, Map, Lock, AlertTriangle } from 'lucide-react';
4+
import { ArrowRight, HeartPulse, Shield, Zap, Users, Map, Lock, AlertTriangle, Clock } from 'lucide-react';
55
import { Button } from '@/components/ui/button';
66
import { motion } from 'framer-motion';
77
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
@@ -53,7 +53,6 @@ const Index: React.FC = () => {
5353

5454
return (
5555
<div className="min-h-screen">
56-
{/* Firebase Initialization Error Alert */}
5756
{!firebaseInitialized && (
5857
<div className="px-6 py-4">
5958
<Alert variant="destructive">
@@ -66,7 +65,6 @@ const Index: React.FC = () => {
6665
</div>
6766
)}
6867

69-
{/* Hero Section */}
7068
<section className="relative py-20 md:py-32 px-6 overflow-hidden">
7169
<div className="absolute inset-0 bg-gradient-to-b from-secondary/50 to-transparent -z-10" />
7270
<div className="absolute inset-0 bg-[radial-gradient(circle_at_30%_20%,hsl(var(--primary)/10%),transparent_60%)] -z-10" />
@@ -119,7 +117,6 @@ const Index: React.FC = () => {
119117
</div>
120118
</section>
121119

122-
{/* Features Section */}
123120
<section className="py-20 px-6 bg-secondary/30">
124121
<div className="max-w-6xl mx-auto">
125122
<div className="text-center mb-16">
@@ -179,8 +176,7 @@ const Index: React.FC = () => {
179176
</div>
180177
</section>
181178

182-
{/* Testimonial Section */}
183-
<section className="py-20 px-6">
179+
<section className="py-20 px-6 relative">
184180
<div className="max-w-4xl mx-auto">
185181
<motion.div
186182
className="text-center mb-16"
@@ -195,29 +191,38 @@ const Index: React.FC = () => {
195191
<div className="w-16 h-1 bg-primary mx-auto"></div>
196192
</motion.div>
197193

198-
<div className="grid gap-6 md:grid-cols-3">
199-
{[
200-
{ quote: "Finally found a community that understands my struggle without judgment.", author: "Member since 2022" },
201-
{ quote: "The analytics helped me identify my triggers. I'm 90 days strong now.", author: "Member since 2023" },
202-
{ quote: "The panic button has saved me countless times. This app is lifechanging.", author: "Member since 2022" }
203-
].map((testimonial, index) => (
204-
<motion.div
205-
key={index}
206-
className="glass-card p-6 rounded-xl"
207-
initial={{ opacity: 0, scale: 0.95 }}
208-
whileInView={{ opacity: 1, scale: 1 }}
209-
viewport={{ once: true }}
210-
transition={{ duration: 0.5, delay: index * 0.1 }}
211-
>
212-
<blockquote className="text-lg mb-4">"{testimonial.quote}"</blockquote>
213-
<p className="text-muted-foreground text-sm">{testimonial.author}</p>
214-
</motion.div>
215-
))}
194+
<div className="relative">
195+
<div className="filter blur-md opacity-50">
196+
<div className="grid gap-6 md:grid-cols-3">
197+
{[
198+
{ quote: "Finally found a community that understands my struggle without judgment.", author: "Member since 2022" },
199+
{ quote: "The analytics helped me identify my triggers. I'm 90 days strong now.", author: "Member since 2023" },
200+
{ quote: "The panic button has saved me countless times. This app is lifechanging.", author: "Member since 2022" }
201+
].map((testimonial, index) => (
202+
<motion.div
203+
key={index}
204+
className="glass-card p-6 rounded-xl"
205+
initial={{ opacity: 0, scale: 0.95 }}
206+
whileInView={{ opacity: 1, scale: 1 }}
207+
viewport={{ once: true }}
208+
transition={{ duration: 0.5, delay: index * 0.1 }}
209+
>
210+
<blockquote className="text-lg mb-4">"{testimonial.quote}"</blockquote>
211+
<p className="text-muted-foreground text-sm">{testimonial.author}</p>
212+
</motion.div>
213+
))}
214+
</div>
215+
</div>
216+
217+
<div className="absolute inset-0 flex flex-col items-center justify-center bg-background/50 backdrop-blur-sm rounded-xl">
218+
<Clock className="h-12 w-12 text-primary mb-4 animate-pulse" />
219+
<h3 className="text-2xl font-bold mb-2">Coming Soon</h3>
220+
<p className="text-muted-foreground">Real member testimonials will be available shortly</p>
221+
</div>
216222
</div>
217223
</div>
218224
</section>
219225

220-
{/* CTA Section */}
221226
<section className="py-20 px-6 bg-gradient-to-b from-secondary/50 to-background">
222227
<div className="max-w-5xl mx-auto text-center">
223228
<motion.h2
@@ -264,7 +269,6 @@ const Index: React.FC = () => {
264269
</div>
265270
</section>
266271

267-
{/* Footer */}
268272
<footer className="py-8 px-6 border-t border-border">
269273
<div className="max-w-6xl mx-auto">
270274
<div className="flex flex-col md:flex-row justify-between items-center">

0 commit comments

Comments
 (0)