Compare commits
2 Commits
6acc9005d2
...
b7071e4c92
Author | SHA1 | Date | |
---|---|---|---|
b7071e4c92 | |||
f2a028707d |
@ -4,5 +4,10 @@ import { steamGetNowPlaying } from "$lib/steam"
|
|||||||
export const load = async ({}) => {
|
export const load = async ({}) => {
|
||||||
const lastTrack = await lastFmGetNowPlaying()
|
const lastTrack = await lastFmGetNowPlaying()
|
||||||
const lastGame = await steamGetNowPlaying()
|
const lastGame = await steamGetNowPlaying()
|
||||||
return {lastTrack, lastGame}
|
const banners = [getBannerNo(), getBannerNo(), getBannerNo()]
|
||||||
|
return {banners, lastTrack, lastGame}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const getBannerNo = () => {
|
||||||
|
return Math.floor(Math.random() * 18) + 1;
|
||||||
|
};
|
@ -11,20 +11,28 @@
|
|||||||
<div class="flex flex-col gap-y-2 lg:gap-y-0">
|
<div class="flex flex-col gap-y-2 lg:gap-y-0">
|
||||||
<Window title="readme?" iconUri="/icons/question.png">
|
<Window title="readme?" iconUri="/icons/question.png">
|
||||||
<div class="flex flex-col prose prose-ralsei prose-img:m-0 leading-none">
|
<div class="flex flex-col prose prose-ralsei prose-img:m-0 leading-none">
|
||||||
|
<div class="flex flex-row gap-2 mb-2 mx-auto overflow-hidden">
|
||||||
|
{#each data.banners as bannerNo, index}
|
||||||
|
{@const hideIfMobile = index === data.banners.length - 1}
|
||||||
|
<img width=150 height=20 alt="banner" class="{hideIfMobile ? "hidden" : ""} sm:inline w-[150px] [height:20px] [image-rendering:pixelated_!important]" src="/banners/{bannerNo}.gif">
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
<div class="flex flex-grow">
|
<div class="flex flex-grow">
|
||||||
<Tooltip x="-translate-x-[40%]" targetX="group-hover:-translate-x-[10%]">
|
<div class="w-36 [height:9rem] bg-ralsei-black bg-opacity-40 place-content-center">
|
||||||
<svelte:fragment slot="tooltipContent">character from q.u.q. (good vn go read it NOW)</svelte:fragment>
|
<Tooltip x="-translate-x-[40%]" targetX="group-hover:-translate-x-[10%]">
|
||||||
<img
|
<svelte:fragment slot="tooltipContent">character from q.u.q. (good vn go read it NOW)</svelte:fragment>
|
||||||
class="mt-1 ml-1 w-36 [height:9rem] u-photo"
|
<img
|
||||||
src="/pfp.png"
|
class="w-36 u-photo"
|
||||||
alt="character from q.u.q."
|
src="/pfp.png"
|
||||||
/>
|
alt="character from q.u.q."
|
||||||
</Tooltip>
|
/>
|
||||||
|
</Tooltip>
|
||||||
|
</div>
|
||||||
<ul
|
<ul
|
||||||
class="place-self-center m-0 leading-none marker:[content:'->'] [list-style-type:'->']"
|
class="place-self-center m-0 leading-none marker:[content:'->'] [list-style-type:'->']"
|
||||||
>
|
>
|
||||||
<li class="[list-style-type:'->'] p-note">trying to do stuff</li>
|
<li class="[list-style-type:'->'] p-note">trying to do stuff</li>
|
||||||
<li class="[list-style-type:'->'] p-note">is a thing</li>
|
<li class="[list-style-type:'->'] p-note">is a thing that exists</li>
|
||||||
<li class="[list-style-type:'->']">
|
<li class="[list-style-type:'->']">
|
||||||
<span class="p-category">software engineer</span>,
|
<span class="p-category">software engineer</span>,
|
||||||
<span class="p-category">indie game dev</span>
|
<span class="p-category">indie game dev</span>
|
||||||
|
BIN
static/banners/1.gif
Normal file
After Width: | Height: | Size: 942 B |
BIN
static/banners/10.gif
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
static/banners/11.gif
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
static/banners/12.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
static/banners/13.gif
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
static/banners/14.gif
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
static/banners/15.gif
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
static/banners/16.gif
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
static/banners/17.gif
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
static/banners/18.gif
Normal file
After Width: | Height: | Size: 816 B |
BIN
static/banners/2.gif
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
static/banners/3.gif
Normal file
After Width: | Height: | Size: 832 B |
BIN
static/banners/4.gif
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
static/banners/5.gif
Normal file
After Width: | Height: | Size: 913 B |
BIN
static/banners/6.gif
Normal file
After Width: | Height: | Size: 790 B |
BIN
static/banners/7.gif
Normal file
After Width: | Height: | Size: 974 B |
BIN
static/banners/8.gif
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
static/banners/9.gif
Normal file
After Width: | Height: | Size: 1.1 KiB |