From aa037e07ca602c7be0d2e44e53ed95e2516be4b3 Mon Sep 17 00:00:00 2001 From: Aman Varshney Date: Tue, 20 May 2025 13:52:03 +0530 Subject: [PATCH] fix feature card --- .../app/(home)/_components/FeatureCard.tsx | 74 ++++++++----------- 1 file changed, 30 insertions(+), 44 deletions(-) diff --git a/apps/web/src/app/(home)/_components/FeatureCard.tsx b/apps/web/src/app/(home)/_components/FeatureCard.tsx index f6daf37..cf6ec0c 100644 --- a/apps/web/src/app/(home)/_components/FeatureCard.tsx +++ b/apps/web/src/app/(home)/_components/FeatureCard.tsx @@ -2,9 +2,8 @@ import { ScrollArea } from "@/components/ui/scroll-area"; import { cn } from "@/lib/utils"; -import { AnimatePresence, motion } from "framer-motion"; +import { motion } from "motion/react"; import Image from "next/image"; -import { useState } from "react"; interface TechOption { id: string; @@ -24,59 +23,46 @@ const FeatureCard: React.FC = ({ options, className, }) => { - const [isHovered, setIsHovered] = useState(false); - return ( setIsHovered(true)} - onHoverEnd={() => setIsHovered(false)} layout >
-

+

{title}

- - - {isHovered && ( - - -
    - {options.map((option) => ( -
  • - {option.icon.startsWith("/") ? ( - {option.name} - ) : ( - {option.icon} - )} -
  • - ))} -
-
-
- )} -
+
+ +
    + {options.map((option) => ( +
  • + {option.icon.startsWith("/") ? ( + {option.name} + ) : ( + + {option.icon} + + )} +
  • + ))} +
+
+
); };