hamburger/app/page.tsx
yaemiku f85a2cc0c5
Some checks failed
Build Full Stack / release-image (push) Failing after 2m9s
New version!
2024-12-22 01:37:41 +01:00

175 lines
5.8 KiB
TypeScript

'use client';
import Image from 'next/image';
import useSWR, { Fetcher } from 'swr';
type ListenBrainz = {
payload: {
listens: {
track_metadata: {
track_name: string;
artist_name: string;
release_name: string;
};
}[];
};
};
const fetcher: Fetcher<ListenBrainz, string> = (...args) =>
fetch(...args).then((res) => res.json());
export default function Home() {
const { data, isLoading } = useSWR(
'https://api.listenbrainz.org/1/user/yaemiku/listens?count=1',
fetcher
);
return (
<div className="prose prose-stone mx-auto mt-6 p-4">
<header className="text-center">
<Image
src={'/pfp_fb_cropped.jpg'}
width={200}
height={200}
alt="My Picture"
priority
className="mx-auto rounded-full m-2 shadow-md"
/>
<h1>Nikola Kubiczek</h1>
{isLoading ? (
<></>
) : (
<samp className="lead">
<em>Last song I have listened to:</em> <br />
<b>{data?.payload.listens[0].track_metadata.track_name}</b>
<br />- {data?.payload.listens[0].track_metadata.artist_name} <br />
</samp>
)}
</header>
<main>
<div>
<h2>About me</h2>
<p>
Currently studying pure mathematics at the University of Warsaw and
doing commissions on the side. I had been considering studying
computer science but decided not to - mathematics is the love of my
life and an absolute passion.
</p>
<p>
In my free time I love listening to music - be it on headphones,
speakers or by going to a local concert. I'm very into various
brews, almost anything apart from alcohol could be my cup of tea.
Green and white teas, matcha, yerba mate, etc. You name it. I quite
like to knit/crochet, but find myself always not having enough time.
I also tinker with my servers a lot - I have a few services set up
and I love to play with configuring them or adding new ones.
</p>
<p>
I think self-expression and emotional maturity are really important.
I live to love. To experience life with the ones I love.
</p>
</div>
<div>
<h2>Contact</h2>
<ul>
<li>
<a href="public.asc" target="_blank">
me<span>@</span>yaemiku.dev
</a>
</li>
<li>
<span>
nikola.kubiczek<span>@</span>proton.me
</span>
</li>
</ul>
<div>
Feel free to message me. Here are a few links, that might prove
useful sometimes
<ul>
<li>
<a
href="https://listenbrainz.org/user/yaemiku/"
target="_blank"
>
listenbrainz
</a>
</li>
<li>
<a
href="https://www.instagram.com/kicia_kocia_core/"
target={'_blank'}
>
instagram
</a>
</li>
<li>
<a
href="https://stats.foldingathome.org/donor/id/711660268"
target={'_blank'}
>
folding@home
</a>
</li>
<li>
<a href="/cv/" target={'_blank'}>
cv
</a>
</li>
<li>
<a href="https://git.yaemiku.dev/yaemiku" target={'_blank'}>
git
</a>
</li>
</ul>
And if you&apos;d want to send me any crypto
<ul className='block list-outside'>
<li>cosmos1gy6tg8jaf4qwmpug8jp8kqnyy9en3lmjxq0twf</li>
<li className='break-all'>46MiubQK8psbDWys429WvTQ71DyDiLkKmSLznoDYYFQbA6MfTvuVRJzSAbCCA17n8RGjCojx5GcpKH3q1DbpKJaQPCVcabi</li>
</ul>
</div>
</div>
</main>
<footer>
<hr />
<em>
Nikola Kubiczek &copy; <span id="year">2024</span>
</em>
<br />
<em>
Made with{' '}
<a href="https://nextjs.org" target="_blank">
NextJS
</a>
, and{' '}
<a href="https://tailwindcss.com" target="_blank">
TailwindCSS
</a>{' '}
</em>
<figure>
<blockquote className="text-justify">
Oh, wretched memory that compels us to remember the paths we took to
arrive at the present state of affairs! Further: as I lay awake but
still half dreaming, I felt that my body was not homogeneous, that
some parts were still those of a boy, and that my head was laughing
at my leg and ridiculing it, that my leg was laughing at my head,
that my finger was poking fun at my heart, my heart at my brain,
that my nose was thumbing itself at my eye, my eye chuckling and
bellowing at my nose and all my parts were wildly raping each
other in an all-encompassing and piercing state of pan-mockery. Nor
did my fear lessen one iota when I reached full consciousness and
began reflecting on my life. On the contrary, it intensified even as
it was interrupted (or accentuated) by a giggle my mouth could not
hold back. I was halfway down the path of my life when I found
myself in a dark forest.
</blockquote>
<figcaption> Witold Gombrowicz, Ferdydurke</figcaption>
</figure>
</footer>
</div>
);
}