feat: optimize performance and fix CLS issues

This commit is contained in:
Lorenzo Iovino 2026-01-09 16:40:37 +01:00
parent 5f95673d2f
commit 719aaeaa4d
7 changed files with 88 additions and 17 deletions

View file

@ -82,10 +82,12 @@ const heroImageSrc = entry.data.heroImage?.src || mePhoto.src;
src={entry.data.heroImage}
alt={entry.data.title}
class="w-full h-full object-cover"
width={1200}
height={630}
quality={70}
width={824}
height={618}
quality={80}
format="webp"
loading="eager"
fetchpriority="high"
/>
</div>
</div>