212 lines
7.6 KiB
TypeScript
212 lines
7.6 KiB
TypeScript
'use client';
|
|
|
|
import Image from 'next/image';
|
|
import useSWR, { Fetcher } from 'swr';
|
|
|
|
type LastFM = {
|
|
artist: { '#text': string };
|
|
image: [{ size: string; '#text': string }];
|
|
mbid: string;
|
|
album: {
|
|
mbid: string;
|
|
'#text': string;
|
|
};
|
|
name: string;
|
|
'@attr': { nowplaying: string };
|
|
url: string;
|
|
};
|
|
|
|
const fetcher: Fetcher<LastFM, string> = (...args) =>
|
|
fetch(...args).then((res) => res.json());
|
|
|
|
export default function Home() {
|
|
const { data, isLoading } = useSWR('/api/lastfm', fetcher, {
|
|
refreshInterval: 5000,
|
|
});
|
|
|
|
return (
|
|
<div className="prose prose-invert prose-headings:text-center mx-auto pt-6 pb-4 px-6 shadow-sm">
|
|
<header className="text-center backdrop-blur-sm p-2 border-2 border-gray-700 rounded-md">
|
|
<Image
|
|
src={'/pfp_pic.webp'}
|
|
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 flex flex-col text-center">
|
|
<em className="break flex mx-auto items-center gap-2">
|
|
<span>🎶</span>
|
|
<span>
|
|
{data?.['@attr'] ? 'Currently listening to' : 'Last song'}
|
|
</span>
|
|
<span>🎶</span>
|
|
</em>
|
|
<b className="">
|
|
<a href={data?.url} target="_blank">
|
|
{data?.name}
|
|
</a>
|
|
</b>
|
|
<i className=" text-sm">
|
|
{data?.album['#text']}, {data?.artist['#text']}
|
|
</i>
|
|
</samp>
|
|
)}
|
|
</header>
|
|
<main>
|
|
<div>
|
|
<h2 className="mb-2">Contact</h2>
|
|
<div className="flex p-4 flex-wrap gap-2 justify-center">
|
|
<a
|
|
href="public.asc"
|
|
target="_blank"
|
|
className="font-semibold p-2 backdrop-blur-sm border-gray-700 border-2 no-underline rounded-md shadow-md"
|
|
>
|
|
me<span>@</span>yaemiku.dev
|
|
</a>
|
|
<span className="font-semibold p-2 backdrop-blur-sm border-gray-700 border-2 no-underline rounded-md shadow-md">
|
|
nikola.kubiczek<span>@</span>proton.me
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div className="text-justify">
|
|
<h2 className="mb-2">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, an absolute passion. My favorite area is algebraic topology.
|
|
</p>
|
|
<p>
|
|
In my free time I love listening to music - be it on headphones,
|
|
speakers or by going to a local gig. Spotify-free. I'm very into
|
|
various brews. Green and white teas, coffee, yerba mate, etc. You
|
|
name it. I love to eat spicy food, but I might cry. I quite like to
|
|
knit/crochet, but find myself always not having enough time. Started
|
|
caring for orchids some time ago. I absolutely adore cats and
|
|
rabbits. I also tinker with my servers a lot - I have a few services
|
|
set up for me and my friends and I love to play with configuring
|
|
them or adding new ones. Exclusively using linux on my devices since
|
|
2020.
|
|
</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 className="mb-2">
|
|
<div>Socials</div>
|
|
</h2>
|
|
<div className="flex p-4 flex-wrap gap-2 justify-center">
|
|
{[
|
|
{
|
|
url: 'https://www.linkedin.com/in/yaemiku/',
|
|
title: 'LinkedIn',
|
|
},
|
|
{
|
|
url: 'https://www.instagram.com/kicia_kocia_core/',
|
|
title: 'Instagram',
|
|
},
|
|
{ url: 'https://www.last.fm/user/yae_miku', title: 'last.fm' },
|
|
].map(({ url, title }) => (
|
|
<a
|
|
href={url}
|
|
key={url}
|
|
target="_blank"
|
|
className="font-semibold p-2 backdrop-blur-sm border-gray-700 border-2 no-underline rounded-md shadow-md"
|
|
>
|
|
{title}
|
|
</a>
|
|
))}
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<h2 className="mb-2">
|
|
<div>
|
|
Links{' '}
|
|
<img
|
|
id="oooo_img"
|
|
src="https://status.yaemiku.dev/badge/_/dot?animate=ping"
|
|
alt="Uptime badge"
|
|
className="inline-block my-0"
|
|
/>
|
|
</div>
|
|
</h2>
|
|
<div className="flex p-4 flex-wrap gap-2 justify-center">
|
|
{[
|
|
{ url: 'https://status.yaemiku.dev/', title: 'Status Page' },
|
|
{
|
|
url: 'https://jellyfin.yaemiku.dev/',
|
|
title: 'Jellyfin',
|
|
},
|
|
{
|
|
url: 'https://jellyseerr.yaemiku.dev/',
|
|
title: 'Jellyseerr',
|
|
},
|
|
{ url: 'https://navidrome.yaemiku.dev/', title: 'Navidrome' },
|
|
{ url: 'https://feishin.yaemiku.dev/', title: 'Feishin' },
|
|
{ url: 'https://overleaf.yaemiku.dev/', title: 'Overleaf' },
|
|
{ url: 'https://library.yaemiku.dev/', title: 'Library' },
|
|
{ url: 'https://photos.yaemiku.dev/', title: 'Photos' },
|
|
].map(({ url, title }) => (
|
|
<a
|
|
href={url}
|
|
key={url}
|
|
target="_blank"
|
|
className="font-semibold p-2 backdrop-blur-sm border-gray-700 border-2 no-underline rounded-md shadow-md"
|
|
>
|
|
{title}
|
|
</a>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<footer>
|
|
<hr />
|
|
|
|
<em>
|
|
Nikola Kubiczek © <span id="year">2025</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>
|
|
);
|
|
}
|