fix: use full image url for cloudinary
All checks were successful
create archive with lfs / tag (push) Successful in 5s

This commit is contained in:
dusk 2025-02-21 17:08:22 +03:00
parent 6ee2862bf8
commit 980e07b29e
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
2 changed files with 2 additions and 5 deletions

View File

@ -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>

View File

@ -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,
}
}) })
}; };
} }