diff --git a/src/pages/index.astro b/src/pages/index.astro index d5cbc04..86015a8 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -11,6 +11,7 @@ import logoImage from "../images/logo.svg"; import steamImage from "../images/steam.svg"; import plateImage from "../images/plate.svg"; import kofiImage from "../images/kofi.svg"; +import { getImage } from "astro:assets"; const contactMethods = [ { @@ -76,6 +77,10 @@ const wipLinks = contactMethods.filter((method) => method.status === "wip"); const disabledLinks = contactMethods.filter( (method) => method.status === "disabled", ); + +const optimizedImages = await Promise.all( + contactMethods.map(async (method) => await getImage({ src: method.icon })), +); --- @@ -90,6 +95,12 @@ const disabledLinks = contactMethods.filter(