mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
refactor: reduce the amount of image formats and sizes
Use the least amount of image formats and sizes: - WebP for images - Avif with JPEG fallback for pictures
This commit is contained in:
@@ -67,8 +67,8 @@ const description = 'This is a collection of AI art pieces I’ve created with S
|
||||
src={data.images[0].src}
|
||||
alt={data.title}
|
||||
class="h-full mbe-10 md:w-full md:object-cover md:!mbe-0 [&_img]:!block [&_img]:!h-full [&_img]:border-solid [&_picture]:!block [&_picture]:!h-full"
|
||||
format={['webp', 'avif']}
|
||||
breakpoints={[300, 500, 700, 1000, 1280]}
|
||||
format={['avif']}
|
||||
breakpoints={[500, 1000, 1500]}
|
||||
/>
|
||||
</Link>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user