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:
@@ -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>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user