From c08eda148640956eb32e45c0a12eb60dea0094e0 Mon Sep 17 00:00:00 2001 From: Kuldeep Singh Date: Sat, 13 Dec 2025 18:05:02 +0530 Subject: [PATCH] Refactor BlogCard component for improved styling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Your original BlogCard had these issues: Hover scale & translate on mobile Causes layout jump / overflow Title becomes invisible on hover text-transparent + dark/gradient background Desktop-only spacing & typography Too large for small screens Hover effects applied on mobile Mobile has no hover → inconsistent behavior --- components/blog-card.tsx | 66 ++++++++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 19 deletions(-) diff --git a/components/blog-card.tsx b/components/blog-card.tsx index 47d6438..aed4eba 100644 --- a/components/blog-card.tsx +++ b/components/blog-card.tsx @@ -19,42 +19,70 @@ interface BlogCardProps { export default function BlogCard({ post }: BlogCardProps) { return ( -
- +
{post.featured && ( -
- +
+
)} + {/* Image */}
{post.title}
-
+
-
-

+ {/* Content */} +
+

{post.title}

-

{post.excerpt}

+

+ {post.excerpt} +

-
-
- - {post.author} -
+
+ + {post.author}