No files matched your search
+154
-108
@@ -1,18 +1,20 @@
|
||||
'use client';
|
||||
"use client";
|
||||
|
||||
import Image from 'next/image';
|
||||
import useSWR, { Fetcher } from 'swr';
|
||||
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 }];
|
||||
artist: { "#text": string };
|
||||
image: [{ size: string; "#text": string }];
|
||||
mbid: string;
|
||||
album: {
|
||||
mbid: string;
|
||||
'#text': string;
|
||||
"#text": string;
|
||||
};
|
||||
name: string;
|
||||
'@attr': { nowplaying: string };
|
||||
"@attr": { nowplaying: string };
|
||||
url: string;
|
||||
};
|
||||
|
||||
@@ -20,15 +22,17 @@ const fetcher: Fetcher<LastFM, string> = (...args) =>
|
||||
fetch(...args).then((res) => res.json());
|
||||
|
||||
export default function Home() {
|
||||
const { data, isLoading } = useSWR('/api/lastfm', fetcher, {
|
||||
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/',
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
name: "Nikola Kubiczek",
|
||||
url: "https://yaemiku.dev/",
|
||||
};
|
||||
|
||||
return (
|
||||
@@ -36,12 +40,12 @@ export default function Home() {
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: JSON.stringify(jsonLd).replace(/</g, '\\u003c'),
|
||||
__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'}
|
||||
src={"/pfp_pic.webp"}
|
||||
width={200}
|
||||
height={200}
|
||||
alt="My Picture"
|
||||
@@ -56,7 +60,7 @@ export default function Home() {
|
||||
<em className="break flex mx-auto items-center gap-2">
|
||||
<span>🎶</span>
|
||||
<span>
|
||||
{data?.['@attr'] ? 'Currently listening to' : 'Last song'}
|
||||
{data?.["@attr"] ? "Currently listening to" : "Last song"}
|
||||
</span>
|
||||
<span>🎶</span>
|
||||
</em>
|
||||
@@ -66,36 +70,87 @@ export default function Home() {
|
||||
</a>
|
||||
</b>
|
||||
<i className=" text-sm">
|
||||
{data?.album['#text']}, {data?.artist['#text']}
|
||||
{data?.album["#text"]}, {data?.artist["#text"]}
|
||||
</i>
|
||||
</samp>
|
||||
)}
|
||||
</header>
|
||||
<main>
|
||||
<div data-nosnippet="true">
|
||||
<h2 className="mb-2">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>
|
||||
{!!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 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"
|
||||
) : (
|
||||
<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"
|
||||
>
|
||||
Curriculum Vitae
|
||||
</a>
|
||||
Log in
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="text-justify">
|
||||
<h2 className="mb-2" data-nosnippet="true">
|
||||
About me
|
||||
@@ -104,92 +159,83 @@ export default function Home() {
|
||||
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.
|
||||
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. 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.
|
||||
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 data-nosnippet="true">
|
||||
<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 }) => (
|
||||
<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={url}
|
||||
key={url}
|
||||
href="public.asc"
|
||||
target="_blank"
|
||||
className="font-semibold p-2 backdrop-blur-sm border-gray-700 border-2 no-underline rounded-md shadow-md"
|
||||
>
|
||||
{title}
|
||||
me<span>@</span>yaemiku.dev
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<div data-nosnippet="true">
|
||||
<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"
|
||||
/> */}
|
||||
<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>
|
||||
</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://gonic.yaemiku.dev/', title: 'Gonic' },
|
||||
{ url: 'https://feishin.yaemiku.dev/', title: 'Feishin' },
|
||||
{ url: 'https://resume.yaemiku.dev/', title: 'Reactive Resumes' },
|
||||
{ url: 'https://overleaf.yaemiku.dev/', title: 'Overleaf' },
|
||||
{ url: 'https://library.yaemiku.dev/', title: 'Library' },
|
||||
{ url: 'https://photos.yaemiku.dev/', title: 'Photos' },
|
||||
].map(({ url, title }) => (
|
||||
<div className="flex p-4 pt-0 justify-center">
|
||||
<a
|
||||
href={url}
|
||||
key={url}
|
||||
target="_blank"
|
||||
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"
|
||||
>
|
||||
{title}
|
||||
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>
|
||||
@@ -197,19 +243,19 @@ export default function Home() {
|
||||
<hr />
|
||||
|
||||
<em>
|
||||
Nikola Kubiczek © <span id="year">2025</span>
|
||||
Nikola Kubiczek © <span id="year">2026</span>
|
||||
</em>
|
||||
<br />
|
||||
|
||||
<em>
|
||||
Made with{' '}
|
||||
Made with{" "}
|
||||
<a href="https://nextjs.org" target="_blank">
|
||||
NextJS
|
||||
</a>
|
||||
, and{' '}
|
||||
, and{" "}
|
||||
<a href="https://tailwindcss.com" target="_blank">
|
||||
TailwindCSS
|
||||
</a>{' '}
|
||||
</a>{" "}
|
||||
</em>
|
||||
<figure>
|
||||
<blockquote className="text-justify">
|
||||
|
||||
Reference in New Issue
Block a user