summaryrefslogtreecommitdiff
path: root/src/layouts/Index.astro
blob: e4b3d507341d7d0f308a48c452d3f7b366e8b7d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
import gifs from "@assets/gifs";
import Base from "@layouts/Base.astro";
import Picture from "astro/components/Picture.astro";

const { title, description } = Astro.props.frontmatter;
---

<Base title={title} description={description}>
	<slot />
	<div id="gifs">
		{
			gifs.map(({ image, alt }) => {
	const img = <Picture src={image} alt={alt} formats={["gif"]} />;

	if (image.src.includes("steam")) {
		return <a href="https://dnsense.pub/">{img}</a>;
	} else if (image.src.includes("poweredbynix")) {
		return <a href="https://github.com/sakecode">{img}</a>;
	} else {
		return img;
	}
			})
		}
	</div>
</Base>