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
+2 -2
View File
@@ -69,13 +69,13 @@ export default async function BlogPostPage({ params }: BlogPostPageProps) {
{/* تصویر شاخص تمام‌عرض بالای صفحه */}
{thumbnailUrl && (
<div className="pt-13 md:pt-24">
<div className="relative container mx-auto max-w-6xl md:rounded-xl overflow-hidden shadow-sm w-full aspect-[5/2] min-h-[10rem] md:min-h-[10rem] bg-muted">
<div className="relative container mx-auto max-w-5xl md:rounded-xl overflow-hidden shadow-sm w-full aspect-[5/2] min-h-[10rem] md:min-h-[10rem] bg-muted">
<Image
src={thumbnailUrl}
alt={altText}
fill
className="object-cover"
sizes="100vw"
quality={100}
priority
/>
</div>
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB