fix: update blog post thumbnail and hero section layout

- Adjusted the maximum width of the blog post thumbnail container.
- Changed the thumbnail image size to 'full' for better quality.
- Enhanced the hero section layout by modifying padding and aspect ratio for improved responsiveness.
- Updated image properties to ensure consistent quality and priority loading.
This commit is contained in:
2026-02-07 19:19:24 +03:30
parent 03bf7b2a67
commit aba27e78fb
4 changed files with 13 additions and 12 deletions
+4 -2
View File
@@ -21,7 +21,7 @@ export function BlogPostCard({
const excerpt = stripHtml(post.excerpt.rendered) || stripHtml(post.content.rendered).slice(0, 160);
const modifiedDate = post.modified ? formatDateShamsi(post.modified) : null;
const authorName = post._embedded?.author?.[0]?.name ?? null;
const thumbnailUrl = getFeaturedImageUrl(post, "medium");
const thumbnailUrl = getFeaturedImageUrl(post, "full");
if (variant === "tiny") {
return (
@@ -80,7 +80,9 @@ export function BlogPostCard({
alt=""
fill
className="object-cover"
sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"
quality={100}
priority
sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 350px"
/>
</div>
) : (