🔥 Implement sizes with Image component and webp loading with source
This commit is contained in:
@@ -253,7 +253,16 @@
|
||||
{#each photos as { image, slug, location }}
|
||||
<div class="photo shadow-photo">
|
||||
<a href="/{location.country.slug}/{location.slug}/{slug}">
|
||||
<Image id={image.id} width={1200} height={800} alt={image.title} />
|
||||
<Image
|
||||
id={image.id}
|
||||
sizes={{
|
||||
small: { width: 500 },
|
||||
medium: { width: 900 },
|
||||
large: { width: 1440 },
|
||||
}}
|
||||
ratio={1.5}
|
||||
alt={image.title}
|
||||
/>
|
||||
<PostCard />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user