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:
@@ -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>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 4.2 KiB |
Reference in New Issue
Block a user