4 Commits

Author SHA1 Message Date
kudinDmitriyUp
399795763a feat: enhance glassmorphic effect on testimonials 2026-05-07 21:27:02 +00:00
96ffe62070 Merge version_6_1778187926617 into main
Merge version_6_1778187926617 into main
2026-05-07 21:08:22 +00:00
kudinDmitriyUp
e883f31726 feat: apply glassmorphic effect to testimonials 2026-05-07 21:07:59 +00:00
6f79233d49 Merge version_5_1778187565320 into main
Merge version_5_1778187565320 into main
2026-05-07 21:01:07 +00:00

View File

@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import { Star } from "lucide-react";
import { motion, AnimatePresence } from "motion/react";
import { cls } from "@/lib/utils";
import Button from "@/components/ui/Button";
import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
@@ -92,14 +92,10 @@ const HeroOverlayTestimonial = ({
</div>
</div>
<AnimatePresence mode="wait">
<motion.div
<div
key={currentIndex}
initial={{ opacity: 0, y: 10 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: -10 }}
transition={{ duration: 0.3 }}
className="absolute z-10 bottom-3 left-3 right-3 p-3 xl:p-4 2xl:p-5 card rounded flex flex-col gap-3 xl:gap-4 2xl:gap-5 md:left-auto md:bottom-8 md:right-8 md:max-w-25/100 2xl:max-w-2/10"
className="absolute z-10 bottom-3 left-3 right-3 p-3 xl:p-4 2xl:p-5 card rounded flex flex-col gap-3 xl:gap-4 2xl:gap-5 md:left-auto md:bottom-8 md:right-8 md:max-w-25/100 2xl:max-w-2/10 bg-white/20 backdrop-blur-lg border border-white/30"
>
<div className="flex gap-1">
{Array.from({ length: 5 }).map((_, index) => (
@@ -124,8 +120,8 @@ const HeroOverlayTestimonial = ({
<span className="text-sm text-foreground/60">{testimonial.handle}</span>
</div>
</div>
</motion.div>
</AnimatePresence>
</div>
</section>
);
};