mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-09 22:25:03 +02:00
✨ style: remove dak gradient
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { motion } from 'framer-motion';
|
import { motion } from "framer-motion";
|
||||||
import { Quote } from 'lucide-react';
|
import { Quote } from "lucide-react";
|
||||||
|
|
||||||
interface TestimonialProps {
|
interface TestimonialProps {
|
||||||
content: string;
|
content: string;
|
||||||
@@ -13,16 +13,33 @@ export function TestimonialCard({ content, author, role, delay = 0 }: Testimonia
|
|||||||
<motion.div
|
<motion.div
|
||||||
initial={{ opacity: 0, y: 20 }}
|
initial={{ opacity: 0, y: 20 }}
|
||||||
whileInView={{ opacity: 1, y: 0 }}
|
whileInView={{ opacity: 1, y: 0 }}
|
||||||
transition={{ delay, duration: 0.6 }}
|
transition={{ delay, duration: 0.6, ease: "easeOut" }}
|
||||||
whileHover={{ scale: 1.05, boxShadow: '0 10px 20px rgba(0, 0, 0, 0.1)' }}
|
whileHover={{
|
||||||
className="bg-gradient-to-r from-cornflower-blue/10 to-cornflower-blue/30 p-8 rounded-lg shadow-lg relative transition-transform"
|
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" />
|
{/* Floating quote icon */}
|
||||||
<p className="text-gray-600 mb-6 text-lg leading-relaxed">{content}</p>
|
<div className="absolute -top-4 -right-4 bg-cornflower-blue/10 p-3 rounded-full">
|
||||||
<div>
|
<Quote className="h-10 w-10 text-cornflower-blue/40 group-hover:scale-110 transition-transform duration-300" />
|
||||||
<p className="font-semibold text-gray-900 text-lg">{author}</p>
|
</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>
|
<p className="text-sm text-gray-500">{role}</p>
|
||||||
</div>
|
</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>
|
</motion.div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user