feat: updated blog content and blog detail component

This commit is contained in:
poyrazavsever
2026-03-11 13:16:24 +03:00
parent eea179c96a
commit 0a02432a54
9 changed files with 347 additions and 493 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ export function BlogContent({ data }: BlogContentProps) {
date={post.date}
readTime={post.readTime}
href={post.href}
className="rounded-sm border-border"
className="rounded-sm border-border [&_h3]:line-clamp-2 [&_h3]:min-h-[2.5rem]"
author={{ name: post.author, avatar: "/logo/logo.jpeg" }}
/>
))}
+1 -2
View File
@@ -123,10 +123,9 @@ export function BlogDetailContent({ post }: BlogDetailContentProps) {
</header>
<Card className="relative aspect-[16/8] overflow-hidden rounded-sm border-border">
<Image
<img
src={post.coverImage}
alt={post.title}
fill
sizes="(max-width: 768px) 100vw, 50vw"
className="object-cover"
/>