diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index 38119f4..8644260 100644 --- a/src/routes/+page.server.ts +++ b/src/routes/+page.server.ts @@ -4,5 +4,10 @@ import { steamGetNowPlaying } from "$lib/steam" export const load = async ({}) => { const lastTrack = await lastFmGetNowPlaying() const lastGame = await steamGetNowPlaying() - return {lastTrack, lastGame} -} \ No newline at end of file + const banners = [getBannerNo(), getBannerNo(), getBannerNo()] + return {banners, lastTrack, lastGame} +} + +const getBannerNo = () => { + return Math.floor(Math.random() * 18) + 1; +}; \ No newline at end of file diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 054eeb0..113ccc4 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -11,6 +11,11 @@
+
+ {#each data.banners as bannerNo} + banner + {/each} +
character from q.u.q. (good vn go read it NOW) diff --git a/static/banners/1.gif b/static/banners/1.gif new file mode 100644 index 0000000..28c96a7 Binary files /dev/null and b/static/banners/1.gif differ diff --git a/static/banners/10.gif b/static/banners/10.gif new file mode 100644 index 0000000..0ae26e9 Binary files /dev/null and b/static/banners/10.gif differ diff --git a/static/banners/11.gif b/static/banners/11.gif new file mode 100644 index 0000000..a0e486b Binary files /dev/null and b/static/banners/11.gif differ diff --git a/static/banners/12.gif b/static/banners/12.gif new file mode 100644 index 0000000..66725ce Binary files /dev/null and b/static/banners/12.gif differ diff --git a/static/banners/13.gif b/static/banners/13.gif new file mode 100644 index 0000000..e05fd75 Binary files /dev/null and b/static/banners/13.gif differ diff --git a/static/banners/14.gif b/static/banners/14.gif new file mode 100644 index 0000000..c7a174b Binary files /dev/null and b/static/banners/14.gif differ diff --git a/static/banners/15.gif b/static/banners/15.gif new file mode 100644 index 0000000..0cab9b6 Binary files /dev/null and b/static/banners/15.gif differ diff --git a/static/banners/16.gif b/static/banners/16.gif new file mode 100644 index 0000000..8a86201 Binary files /dev/null and b/static/banners/16.gif differ diff --git a/static/banners/17.gif b/static/banners/17.gif new file mode 100644 index 0000000..332399f Binary files /dev/null and b/static/banners/17.gif differ diff --git a/static/banners/18.gif b/static/banners/18.gif new file mode 100644 index 0000000..f30e585 Binary files /dev/null and b/static/banners/18.gif differ diff --git a/static/banners/2.gif b/static/banners/2.gif new file mode 100644 index 0000000..53f935d Binary files /dev/null and b/static/banners/2.gif differ diff --git a/static/banners/3.gif b/static/banners/3.gif new file mode 100644 index 0000000..f3131b9 Binary files /dev/null and b/static/banners/3.gif differ diff --git a/static/banners/4.gif b/static/banners/4.gif new file mode 100644 index 0000000..4bfb83b Binary files /dev/null and b/static/banners/4.gif differ diff --git a/static/banners/5.gif b/static/banners/5.gif new file mode 100644 index 0000000..39ec1c1 Binary files /dev/null and b/static/banners/5.gif differ diff --git a/static/banners/6.gif b/static/banners/6.gif new file mode 100644 index 0000000..56b8e23 Binary files /dev/null and b/static/banners/6.gif differ diff --git a/static/banners/7.gif b/static/banners/7.gif new file mode 100644 index 0000000..91553c7 Binary files /dev/null and b/static/banners/7.gif differ diff --git a/static/banners/8.gif b/static/banners/8.gif new file mode 100644 index 0000000..83ae935 Binary files /dev/null and b/static/banners/8.gif differ diff --git a/static/banners/9.gif b/static/banners/9.gif new file mode 100644 index 0000000..06e0c83 Binary files /dev/null and b/static/banners/9.gif differ