172 lines
5.5 KiB
Svelte
172 lines
5.5 KiB
Svelte
<script lang="ts">
|
|
import type { PageData } from './$types';
|
|
|
|
import Content from './Content.svelte';
|
|
|
|
let { data }: { data: PageData } = $props();
|
|
import voidarcIcon from '../../static/voidarc-hollow.svg?raw';
|
|
</script>
|
|
|
|
<div class="fira-mono-bold mt-5 flex h-40 w-full items-center justify-center text-center text-6xl">
|
|
<div class="absolute aspect-[2/1.732] h-40 text-ctp-surface0">
|
|
{@html voidarcIcon}
|
|
</div>
|
|
<span class="absolute">[VOIDARC INCORPORATED]</span>
|
|
</div>
|
|
<div class="m-6 mx-auto grid max-w-6xl grid-cols-1 grid-rows-3 gap-5">
|
|
<div
|
|
class="main-container grid grid-cols-[2fr_1fr] py-7 pl-10"
|
|
style="--container-color:var(--ctp-mauve);"
|
|
>
|
|
<div class="ml-6 py-4">
|
|
<div class="flex">
|
|
<img src="/adumh00man.png" class="mt-[13px] mr-2 ml-[-15px] h-12" alt="" />
|
|
<p class="title-font text-bold text-[50px]">Adumh00man</p>
|
|
</div>
|
|
<p id="description-block" class="pr-10 pl-4 text-justify">
|
|
Adumh00man is a mysterious all-powerful being pretending to be a cat pretending to be a nix
|
|
youtuber. Currently maintaining an awesome nix config, and using nixos fulltime, his
|
|
programming languages of choice are rust and svelte (if you can count svelte as a language).
|
|
He is also an avid homelabber, running all of his services on-prem so that the evil
|
|
corporations that be can't control him when the world is eventually owned by them. This
|
|
includes his
|
|
<a class="text-link" href="https://git.voidarc.co.uk/voidarc">git server</a>, his
|
|
<a class="text-link" href="https://blog.voidarc.co.uk">blog</a>, and some other services he
|
|
uses to "legally aqquire media" (yarr me hearties).
|
|
</p>
|
|
</div>
|
|
<div class="my-4 mr-4 grid min-w-100 flex-col gap-2 pr-3">
|
|
<div
|
|
class="sub-container flex items-center gap-3 overflow-hidden pr-3"
|
|
style="--container-color:var(--ctp-green);"
|
|
>
|
|
{#await data.streamed.latestSong}
|
|
<p>Loading latest song...</p>
|
|
{:then song}
|
|
<img src={song.coverArt} class="h-full w-auto shrink-0 object-contain" alt="" />
|
|
<div class="flex min-w-0 flex-col justify-center">
|
|
<p class="fira-mono-medium">Currently Listening to…</p>
|
|
<div
|
|
id="music-title-block"
|
|
onclick={() =>
|
|
window.open(
|
|
`https://soundcloud.com/search?q=${song.name} ${song.artist}`,
|
|
'_blank'
|
|
)}
|
|
style="cursor: pointer;"
|
|
role="link"
|
|
onkeydown={(e) => {
|
|
if (e.key === 'Enter') {
|
|
}
|
|
}}
|
|
tabindex="0"
|
|
title="{song.name} - {song.artist}"
|
|
class="pl-2"
|
|
>
|
|
<p class="fira-mono-bold w-full truncate text-2xl">
|
|
{song.name}
|
|
</p>
|
|
<p class="fira-mono-medium w-full truncate text-xl">
|
|
{song.artist} - {song.album}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{:catch error}
|
|
<p>{error}</p>
|
|
{/await}
|
|
</div>
|
|
<div
|
|
class="sub-container flex items-center gap-3 overflow-hidden pr-3"
|
|
style="--container-color:var(--ctp-peach);"
|
|
>
|
|
{#await data.streamed.latestSeries}
|
|
<p>Loading Latest Watched Series...</p>
|
|
{:then series}
|
|
<img
|
|
src={series.poster}
|
|
class="aspect-1/1 h-full w-auto shrink-0 object-contain"
|
|
alt=""
|
|
/>
|
|
<div class="flex min-w-0 flex-col justify-center">
|
|
<p class="fira-mono-medium">Currently Watching…</p>
|
|
<div
|
|
id="music-title-block"
|
|
onclick={() =>
|
|
window.open(`https://thetvdb.com/search?query=${series.name}`, '_blank')}
|
|
style="cursor: pointer;"
|
|
role="link"
|
|
onkeydown={(e) => {
|
|
if (e.key === 'Enter') {
|
|
}
|
|
}}
|
|
tabindex="0"
|
|
title="{series.name} S{series.episode.seasonNumber}E{series.episode
|
|
.episodeNumber} - {series.episode.name}"
|
|
class="pl-2"
|
|
>
|
|
<p class="fira-mono-bold w-full truncate text-2xl">
|
|
{series.name}
|
|
</p>
|
|
<p class="fira-mono-medium w-full truncate text-xl">
|
|
S{series.episode.seasonNumber}E{series.episode.episodeNumber} - {series.episode
|
|
.name}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{:catch error}
|
|
<p>{error}</p>
|
|
{/await}
|
|
</div>
|
|
<div
|
|
class="sub-container flex items-center gap-3 overflow-hidden pr-3"
|
|
style="--container-color:var(--ctp-red);"
|
|
>
|
|
{#await data.streamed.latestBook}
|
|
<p>Loading Latest Book...</p>
|
|
{:then book}
|
|
<img
|
|
src={book.coverArt}
|
|
class="aspect-1/1 h-full w-auto shrink-0 object-contain"
|
|
alt=""
|
|
/>
|
|
<div class="flex min-w-0 flex-col justify-center">
|
|
<p class="fira-mono-medium">Currently Reading…</p>
|
|
<div
|
|
id="music-title-block"
|
|
onclick={() =>
|
|
window.open(
|
|
`https://bookbrainz.org/search?q=${book.series} ${book.number}`,
|
|
'_blank'
|
|
)}
|
|
style="cursor: pointer;"
|
|
role="link"
|
|
onkeydown={(e) => {
|
|
if (e.key === 'Enter') {
|
|
}
|
|
}}
|
|
tabindex="0"
|
|
class="pl-2"
|
|
>
|
|
<p class="fira-mono-bold w-full truncate text-2xl">
|
|
{book.series}
|
|
</p>
|
|
<p class="fira-mono-medium w-full truncate text-xl">
|
|
v{book.number} p{book.currentPage}/{book.totalPages}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{/await}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="grid grid-cols-[4fr_3fr] grid-rows-1 gap-4">
|
|
<div class="main-container" style="--container-color:var(--ctp-blue);">
|
|
<div class="section-title fira-mono-bold mr-3 py-2 text-4xl">Content</div>
|
|
<Content items={['some']} />
|
|
</div>
|
|
<div class="main-container" style="--container-color:var(--ctp-green);">
|
|
<div class="section-title fira-mono-bold mr-3 py-2 text-4xl">Commits</div>
|
|
</div>
|
|
</div>
|
|
</div>
|