fix: use full image url for cloudinary
All checks were successful
create archive with lfs / tag (push) Successful in 5s
All checks were successful
create archive with lfs / tag (push) Successful in 5s
This commit is contained in:
parent
6ee2862bf8
commit
980e07b29e
@ -28,6 +28,6 @@ fixed!!!! i also added a few images because im dumb and forgot
|
|||||||
|
|
||||||
<div class="grid gap-0.5 auto-rows-min md:grid-cols-4">
|
<div class="grid gap-0.5 auto-rows-min md:grid-cols-4">
|
||||||
{#each data.images as image}
|
{#each data.images as image}
|
||||||
<a class="!animate-none" href={image.og}><CldImage width={480} height={480} src={image.id} class="w-full h-full object-cover [image-rendering:high-quality_!important]"/></a>
|
<a class="!animate-none" href={image}><CldImage width={480} height={480} src={image} class="w-full h-full object-cover [image-rendering:high-quality_!important]"/></a>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
@ -3,10 +3,7 @@ import images from './images.json'
|
|||||||
export async function load({}) {
|
export async function load({}) {
|
||||||
return {
|
return {
|
||||||
images: images.map((id) => {
|
images: images.map((id) => {
|
||||||
return {
|
return `https://res.cloudinary.com/dgtwf7mar/image/upload/v1/${id}`
|
||||||
og: `https://res.cloudinary.com/dgtwf7mar/image/upload/${id}`,
|
|
||||||
id,
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user