|
1 | 1 | "use client"; |
2 | 2 | import * as React from "react"; |
3 | | -import { useState } from "react"; |
4 | | -import { motion } from "framer-motion"; |
5 | 3 | import Link from "@docusaurus/Link"; |
6 | 4 | import { Card, CardContent } from "../ui/card"; |
7 | 5 | import { getAuthorNames } from "../../utils/authors"; |
8 | 6 |
|
9 | 7 | const BlogCard = ({ type, date, title, content, imageUrl, id, authors }) => { |
10 | | - const [isHovered, setIsHovered] = useState(false); |
11 | | - |
12 | 8 | if (!id || !type) { |
13 | 9 | return <div>data not fetched properly, imageId and entryId not found</div>; |
14 | 10 | } |
@@ -36,19 +32,7 @@ const BlogCard = ({ type, date, title, content, imageUrl, id, authors }) => { |
36 | 32 | const category = getCategory(title); |
37 | 33 |
|
38 | 34 | return ( |
39 | | - <motion.div |
40 | | - initial={{ opacity: 0, y: 40, scale: 0.95 }} |
41 | | - animate={{ opacity: 1, y: 0, scale: 1 }} |
42 | | - transition={{ duration: 0.6, ease: "easeOut" }} |
43 | | - whileHover={{ |
44 | | - y: -8, |
45 | | - scale: 1.02, |
46 | | - transition: { duration: 0.4, ease: "easeOut" }, |
47 | | - }} |
48 | | - onMouseEnter={() => setIsHovered(true)} |
49 | | - onMouseLeave={() => setIsHovered(false)} |
50 | | - className="relative h-full overflow-hidden transition-all duration-300" |
51 | | - > |
| 35 | + <div className="relative h-full overflow-hidden"> |
52 | 36 | <Link |
53 | 37 | to={`/blog/${id}`} |
54 | 38 | className="text-decoration-none block h-full" |
@@ -87,7 +71,7 @@ const BlogCard = ({ type, date, title, content, imageUrl, id, authors }) => { |
87 | 71 | </div> |
88 | 72 | </div> |
89 | 73 | </Link> |
90 | | - </motion.div> |
| 74 | + </div> |
91 | 75 | ); |
92 | 76 | }; |
93 | 77 |
|
|
0 commit comments