@@ -127,8 +127,8 @@ export function Testimonials() {
127127 [
128128 AutoPlay ( {
129129 playOnInit : true ,
130- delay : 4000 ,
131- stopOnInteraction : true ,
130+ delay : 3_500 ,
131+ stopOnInteraction : false ,
132132 stopOnMouseEnter : true ,
133133 stopOnFocusIn : true ,
134134 } ) ,
@@ -201,43 +201,43 @@ export function Testimonials() {
201201 </ div >
202202
203203 < motion . div
204- className = "relative mx-auto max-w-[1400px]"
204+ className = "relative -mx-4 md: mx-auto max-w-[1400px]"
205205 variants = { containerVariants }
206206 initial = "hidden"
207207 whileInView = "visible"
208208 viewport = { { once : true } } >
209209 { /* Previous Button */ }
210210 < button
211211 onClick = { scrollPrev }
212- className = "absolute left-0 top-1/2 z-20 -translate-y-1/2 rounded-full border border-border/50 bg-background/80 p-2 backdrop-blur-xl transition-all duration-300 hover:scale-110 hover:shadow-lg md:left-4 md:p-3 lg:left-8"
212+ className = "absolute left-1 top-1/2 z-20 -translate-y-1/2 rounded-full border border-border/50 bg-background/80 p-2 backdrop-blur-xl transition-all duration-300 hover:scale-110 hover:shadow-lg md:left-4 md:p-3 lg:left-8"
213213 aria-label = "Previous testimonial" >
214214 < ChevronLeft className = "h-5 w-5 text-muted-foreground transition-colors hover:text-foreground md:h-6 md:w-6" />
215215 </ button >
216216
217217 { /* Next Button */ }
218218 < button
219219 onClick = { scrollNext }
220- className = "absolute right-0 top-1/2 z-20 -translate-y-1/2 rounded-full border border-border/50 bg-background/80 p-2 backdrop-blur-xl transition-all duration-300 hover:scale-110 hover:shadow-lg md:right-4 md:p-3 lg:right-8"
220+ className = "absolute right-1 top-1/2 z-20 -translate-y-1/2 rounded-full border border-border/50 bg-background/80 p-2 backdrop-blur-xl transition-all duration-300 hover:scale-110 hover:shadow-lg md:right-4 md:p-3 lg:right-8"
221221 aria-label = "Next testimonial" >
222222 < ChevronRight className = "h-5 w-5 text-muted-foreground transition-colors hover:text-foreground md:h-6 md:w-6" />
223223 </ button >
224224
225225 { /* Gradient Overlays */ }
226- < div className = "absolute inset-y-0 left-0 z-10 w-[10%] bg-gradient-to-r from-background to-transparent pointer-events-none md:w-[15%]" />
227- < div className = "absolute inset-y-0 right-0 z-10 w-[10%] bg-gradient-to-l from-background to-transparent pointer-events-none md:w-[15%]" />
226+ < div className = "hidden md:block absolute inset-y-0 left-0 z-10 w-[10%] bg-gradient-to-r from-background to-transparent pointer-events-none md:w-[15%]" />
227+ < div className = "hidden md:block absolute inset-y-0 right-0 z-10 w-[10%] bg-gradient-to-l from-background to-transparent pointer-events-none md:w-[15%]" />
228228
229229 { /* Embla Carousel Container */ }
230230 < div className = "overflow-hidden" ref = { emblaRef } >
231231 < div className = "flex" >
232232 { testimonials . map ( ( testimonial ) => (
233233 < div
234234 key = { testimonial . name }
235- className = "relative min-w-0 flex-[0_0_85%] px-2 md:flex-[0_0_70%] md:px-4 lg:flex-[0_0_60 %]" >
235+ className = "relative min-w-0 flex-[0_0_85%] px-2 md:flex-[0_0_70%] md:px-4 lg:flex-[0_0_30 %]" >
236236 < div className = "group relative py-10 h-full" >
237237 < div className = "relative flex h-full flex-col rounded-2xl border border-border bg-background transition-all duration-500 ease-out group-hover:scale-[1.02] group-hover:border-border group-hover:bg-background/40 group-hover:shadow-xl dark:border-border/70 dark:bg-background/40 dark:group-hover:border-border dark:group-hover:bg-background/60 dark:group-hover:shadow-[0_20px_50px_rgba(59,130,246,0.15)]" >
238- < div className = "flex flex-1 flex-col p-6 md:p-8 " >
238+ < div className = "flex flex-1 flex-col p-4 md:p-6 " >
239239 < div className = "flex-1" >
240- < p className = "relative text-sm leading-relaxed text-muted-foreground transition-colors duration-300 group-hover:text-foreground/80 dark:text-foreground/70 dark:group-hover:text-foreground/90 md:text-lg " >
240+ < p className = "relative text-sm leading-relaxed text-muted-foreground transition-colors duration-300 group-hover:text-foreground/80 dark:text-foreground/70 dark:group-hover:text-foreground/90" >
241241 { testimonial . quote }
242242 </ p >
243243 </ div >
0 commit comments