style: remove dak gradient

This commit is contained in:
eshanized
2025-01-01 11:18:59 +05:30
parent a0bd7a4c0e
commit 1516f851f6

View File

@@ -1,5 +1,5 @@
import { motion } from 'framer-motion';
import { Quote } from 'lucide-react';
import { motion } from "framer-motion";
import { Quote } from "lucide-react";
interface TestimonialProps {
content: string;
@@ -13,16 +13,33 @@ export function TestimonialCard({ content, author, role, delay = 0 }: Testimonia
<motion.div
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
transition={{ delay, duration: 0.6 }}
whileHover={{ scale: 1.05, boxShadow: '0 10px 20px rgba(0, 0, 0, 0.1)' }}
className="bg-gradient-to-r from-cornflower-blue/10 to-cornflower-blue/30 p-8 rounded-lg shadow-lg relative transition-transform"
transition={{ delay, duration: 0.6, ease: "easeOut" }}
whileHover={{
scale: 1.05,
boxShadow: "0 12px 24px rgba(0, 0, 0, 0.15)",
}}
className="relative bg-white rounded-xl shadow-lg p-8 transition-transform duration-300 group"
>
<Quote className="absolute top-4 right-4 h-10 w-10 text-cornflower-blue/20 transition-transform transform hover:scale-110" />
<p className="text-gray-600 mb-6 text-lg leading-relaxed">{content}</p>
<div>
<p className="font-semibold text-gray-900 text-lg">{author}</p>
{/* Floating quote icon */}
<div className="absolute -top-4 -right-4 bg-cornflower-blue/10 p-3 rounded-full">
<Quote className="h-10 w-10 text-cornflower-blue/40 group-hover:scale-110 transition-transform duration-300" />
</div>
{/* Testimonial content */}
<p className="text-gray-600 text-lg leading-relaxed mb-6">
<span className="italic text-cornflower-blue/80 font-medium"></span>
{content}
<span className="italic text-cornflower-blue/80 font-medium"></span>
</p>
{/* Author details */}
<div className="flex flex-col items-start">
<p className="text-gray-900 font-semibold text-lg">{author}</p>
<p className="text-sm text-gray-500">{role}</p>
</div>
{/* Subtle background gradient */}
<div className="absolute inset-0 bg-gradient-to-br from-cornflower-blue/5 via-cornflower-blue/10 to-cornflower-blue/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300 blur-lg" />
</motion.div>
);
}