From d8a20e3032a0ce97b6ddc29840e135eda9b3f43c Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 8 Apr 2024 22:58:22 -0400 Subject: refactor; use plain css --- src/components/Gifs.astro | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/components/Gifs.astro (limited to 'src/components/Gifs.astro') diff --git a/src/components/Gifs.astro b/src/components/Gifs.astro new file mode 100644 index 0000000..b82230e --- /dev/null +++ b/src/components/Gifs.astro @@ -0,0 +1,20 @@ +--- +import Picture from "astro/components/Picture.astro"; +import gifs from "@assets/gifs"; +--- + +
+ { + gifs.map(({ image, alt }) => { + const img = ; + + if (image.src.includes("steam")) { + return {img}; + } else if (image.src.includes("poweredbynix")) { + return {img}; + } else { + return img; + } + }) + } +
-- cgit v1.2.3