283 lines
10 KiB
TypeScript
283 lines
10 KiB
TypeScript
"use client";
|
|
|
|
import { authClient } from "@/lib/auth-client";
|
|
import websites from "@/lib/websites";
|
|
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: session, isPending, error } = authClient.useSession();
|
|
|
|
const { data, isLoading } = useSWR("/api/lastfm", fetcher, {
|
|
refreshInterval: 5000,
|
|
});
|
|
|
|
const jsonLd = {
|
|
"@context": "https://schema.org",
|
|
"@type": "WebSite",
|
|
name: "Nikola Kubiczek",
|
|
url: "https://yaemiku.dev/",
|
|
};
|
|
|
|
return (
|
|
<div className="prose prose-invert prose-headings:text-center mx-auto pt-6 pb-4 px-6 shadow-sm">
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{
|
|
__html: JSON.stringify(jsonLd).replace(/</g, "\\u003c"),
|
|
}}
|
|
/>
|
|
<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>
|
|
{!!session ? (
|
|
<div
|
|
data-nosnippet="true"
|
|
className="backdrop-blur-lg p-2 border-2 border-gray-700 rounded-md mt-4"
|
|
>
|
|
<h3 className="mb-2 mt-2">
|
|
<p>Hejka {session.user.name}!</p>
|
|
</h3>
|
|
<p>Linki</p>
|
|
<ul className="">
|
|
<li>
|
|
<a
|
|
href="https://ldap.yaemiku.dev"
|
|
target="_blank"
|
|
className="no-underline"
|
|
>
|
|
<samp>
|
|
<b>
|
|
<u>LDAP</u>
|
|
</b>{" "}
|
|
- <i className="text-sm">zarządzanie kontem</i>
|
|
</samp>
|
|
</a>
|
|
</li>
|
|
{websites
|
|
.sort((a, b) => a.title.localeCompare(b.title))
|
|
.map(({ url, title, description }) => (
|
|
<li key={url}>
|
|
<a href={url} target="_blank" className="no-underline">
|
|
<samp>
|
|
<b>
|
|
<u>{title}</u>
|
|
</b>{" "}
|
|
- <i className="text-sm">{description}</i>
|
|
</samp>
|
|
</a>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
<p>Dodatkowo serwery minecraft:</p>
|
|
<ul>
|
|
<li>
|
|
<samp>
|
|
<b>yaemiku.dev</b>
|
|
</samp>
|
|
</li>
|
|
<li>
|
|
<samp>
|
|
<b>modded.yaemiku.dev</b>
|
|
</samp>
|
|
</li>
|
|
</ul>
|
|
<p>Potrzebny jest wpis na whitelistę - jest w LDAP</p>
|
|
<p className="text-center">
|
|
<button
|
|
onClick={() => authClient.signOut()}
|
|
className="font-semibold p-2 backdrop-blur-sm border-gray-700 border-2 no-underline rounded-md shadow-md"
|
|
>
|
|
Wyloguj się
|
|
</button>
|
|
</p>
|
|
</div>
|
|
) : (
|
|
<div className="flex justify-center mb-0 mt-4">
|
|
<button
|
|
onClick={() =>
|
|
authClient.signIn.oauth2({ providerId: "authentik" })
|
|
}
|
|
className="font-semibold p-2 px-6 backdrop-blur-sm border-gray-700 border-2 no-underline rounded-md shadow-md"
|
|
>
|
|
Log in
|
|
</button>
|
|
</div>
|
|
)}
|
|
|
|
<div className="text-justify">
|
|
<h2 className="mb-2" data-nosnippet="true">
|
|
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 areas are algebraic topology,
|
|
homological algebra, module theory, sheaf theory and higher category
|
|
theory. I want to get into algebraic geometry and learn more about
|
|
logic. I'm in the middle of writing my Bachelor's thesis.
|
|
</p>
|
|
<p>
|
|
In my free time I love listening to music - be it on headphones,
|
|
speakers or by going to a local gig. Very into various brews - green
|
|
and oolong teas, coffee, yerba mate, rooibos, etc. - you name it. I
|
|
eat lots of spicy foods, but I might cry. I quite like to
|
|
knit/crochet, but find myself always not having enough time. Good
|
|
plant mom, especially for orchids. I love it when there's a little
|
|
bunny one on my screen. 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>
|
|
<p>
|
|
To try to love despite all. To try to be kind despite all. To try to
|
|
live despite all.
|
|
</p>
|
|
</div>
|
|
<div className="flex mt-10">
|
|
<div data-nosnippet="true" className="basis-1/2">
|
|
<h2 className="mb-2 mt-0">Contact</h2>
|
|
<div className="flex p-4 pb-2 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 className="flex p-4 pt-0 justify-center">
|
|
<a
|
|
href="https://resume.yaemiku.dev/yaemiku/cv"
|
|
className="font-semibold p-2 backdrop-blur-sm border-gray-700 border-2 no-underline rounded-md shadow-md"
|
|
target="_blank"
|
|
>
|
|
Curriculum Vitae
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div data-nosnippet="true" className="basis-1/2">
|
|
<h2 className="mb-2 mt-0">
|
|
<div>Socials</div>
|
|
</h2>
|
|
<div className="flex p-4 flex-wrap gap-2 justify-center text-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>
|
|
</main>
|
|
<footer data-nosnippet="true">
|
|
<hr />
|
|
|
|
<em>
|
|
Nikola Kubiczek © <span id="year">2026</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>
|
|
);
|
|
}
|