summaryrefslogtreecommitdiff
path: root/src/layouts/Index.astro
blob: cd7be22268d5399012d4d5f63db2e988f31bd4e1 (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 Base from "@layouts/Base.astro";
import Picture from "astro/components/Picture.astro";
import gifs from "@assets/gifs";

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>