Skip to content

Commit d6b7da0

Browse files
authored
Revert blog cards to simpler design
2 parents e1ba2f2 + 1421eed commit d6b7da0

File tree

2 files changed

+52
-294
lines changed

2 files changed

+52
-294
lines changed

src/components/blogCarousel/blogCard.tsx

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
"use client";
22
import * as React from "react";
3-
import { useState } from "react";
4-
import { motion } from "framer-motion";
53
import Link from "@docusaurus/Link";
64
import { Card, CardContent } from "../ui/card";
75
import { getAuthorNames } from "../../utils/authors";
86

97
const BlogCard = ({ type, date, title, content, imageUrl, id, authors }) => {
10-
const [isHovered, setIsHovered] = useState(false);
11-
128
if (!id || !type) {
139
return <div>data not fetched properly, imageId and entryId not found</div>;
1410
}
@@ -36,19 +32,7 @@ const BlogCard = ({ type, date, title, content, imageUrl, id, authors }) => {
3632
const category = getCategory(title);
3733

3834
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">
5236
<Link
5337
to={`/blog/${id}`}
5438
className="text-decoration-none block h-full"
@@ -87,7 +71,7 @@ const BlogCard = ({ type, date, title, content, imageUrl, id, authors }) => {
8771
</div>
8872
</div>
8973
</Link>
90-
</motion.div>
74+
</div>
9175
);
9276
};
9377

0 commit comments

Comments
 (0)