@@ -746,10 +750,11 @@ function HeroShowcase() {
function TiltCard({ icon: Icon, title, desc }: TiltCardProps) {
const x = useMotionValue(0)
const y = useMotionValue(0)
- const rx = useTransform(y, [-50, 50], [8, -8])
- const ry = useTransform(x, [-50, 50], [-8, 8])
- const springX = useSpring(rx, { stiffness: 200, damping: 20 })
- const springY = useSpring(ry, { stiffness: 200, damping: 20 })
+ const rx = useTransform(y, [-50, 50], [12, -12])
+ const ry = useTransform(x, [-50, 50], [-12, 12])
+ const springX = useSpring(rx, { stiffness: 150, damping: 15 })
+ const springY = useSpring(ry, { stiffness: 150, damping: 15 })
+ const scale = useSpring(1, { stiffness: 300, damping: 25 })
return (
{
x.set(0)
y.set(0)
+ scale.set(1)
}}
- style={{ rotateX: springX, rotateY: springY, transformStyle: "preserve-3d" }}
- className="group card card-hover will-change-transform"
+ style={{
+ rotateX: springX,
+ rotateY: springY,
+ scale: scale,
+ transformStyle: "preserve-3d",
+ boxShadow: useTransform(scale, [1, 1.05], [
+ "0 4px 6px -1px rgba(0, 0, 0, 0.1)",
+ "0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"
+ ])
+ }}
+ className="group card card-hover will-change-transform cursor-pointer"
+ whileHover={{
+ z: 20
+ }}
+ transition={{ duration: 0.2 }}
>
@@ -855,19 +875,53 @@ function Programs() {
function FeatureCard({ icon: Icon, title, body }: FeatureCardProps) {
return (
-
+
+ Explore
+
+
+
+
+
)
}