Compare commits

2 Commits
Author SHA1 Message Date
yaemiku f85a2cc0c5 New version!
Build Full Stack / release-image (push) Failing after 2m9s
2024-12-22 01:37:41 +01:00
yaemiku 740088fa0f Initial commit from Create Next App 2024-12-21 21:35:42 +01:00
34 changed files with 3464 additions and 2636 deletions

No files matched your search

-7
View File
@@ -1,7 +0,0 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.next
.git
-3
View File
@@ -1,3 +0,0 @@
{
"extends": "next/core-web-vitals"
}
+46
View File
@@ -0,0 +1,46 @@
name: Build Full Stack
run-name: ${{ gitea.actor }} is building 🚀
on: [push]
jobs:
release-image:
runs-on: docker
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_ORG: yaemiku
DOCKER_LATEST: latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: git.yaemiku.dev
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
push: true
tags: |
git.yaemiku.dev/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
git.yaemiku.dev/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
+8 -3
View File
@@ -3,7 +3,12 @@
# dependencies # dependencies
/node_modules /node_modules
/.pnp /.pnp
.pnp.js .pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
# testing # testing
/coverage /coverage
@@ -25,8 +30,8 @@ yarn-debug.log*
yarn-error.log* yarn-error.log*
.pnpm-debug.log* .pnpm-debug.log*
# local env files # env files (can opt-in for committing if needed)
.env*.local .env*
# vercel # vercel
.vercel .vercel
-38
View File
@@ -1,38 +0,0 @@
stages:
- build
- deploy
.kube-context:
before_script:
- if [ -n "$KUBE_CONTEXT" ]; then kubectl config use-context "$KUBE_CONTEXT"; fi
build:
stage: build
image: quay.io/buildah/stable
variables:
STORAGE_DRIVER: vfs
BUILDAH_FORMAT: docker
IMAGE: "$REGISTRY/$REGISTRY_USERNAME/$CI_PROJECT_NAME"
before_script:
- buildah login -u "$REGISTRY_USERNAME" -p "$REGISTRY_PASSWORD" "$REGISTRY"
script:
- buildah images
- buildah build -t $IMAGE:latest -t $IMAGE:$CI_COMMIT_TAG
- buildah images
- buildah push --all $IMAGE
after_script:
- buildah logout "$REGISTRY"
rules:
- if: $CI_COMMIT_TAG
deploy:
stage: deploy
when: always
extends: [.kube-context]
image:
name: bitnami/kubectl:latest
entrypoint: [""]
script:
- ls
- cat $CI_PROJECT_DIR/deployment.yaml | envsubst | kubectl apply -f -
- kubectl get pods
-4
View File
@@ -1,4 +0,0 @@
{
"typescript.tsdk": "node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
+6 -8
View File
@@ -1,4 +1,4 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
## Getting Started ## Getting Started
@@ -10,17 +10,15 @@ npm run dev
yarn dev yarn dev
# or # or
pnpm dev pnpm dev
# or
bun dev
``` ```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
## Learn More ## Learn More
@@ -29,10 +27,10 @@ To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
## Deploy on Vercel ## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
+175
View File
@@ -0,0 +1,175 @@
import { Metadata, NextPage } from 'next';
import Image from 'next/image';
export const metadata: Metadata = {
title: 'Curriculum Vitae',
description: '',
}
const Page: NextPage = () => {
return (
<div className="max-w-screen-lg mx-auto mt-6 p-2 flex flex-col gap-4">
<main className="prose w-full lg:max-w-screen-lg mx-auto prose-h1:text-center prose-h1:mb-2 prose-h2:mt-0 mb-10 flex flex-col">
<div className="flex">
<div>
<h1 className="mt-2">Nikola Kubiczek</h1>
<h2>Full-stack developer</h2>
</div>
<Image
src={'/pfp_formal_comp.jpg'}
width={200}
height={200}
alt="My Picture"
className="w-40 mt-0 mb-0 mr-0 ml-auto rounded-3xl shadow-2xl"
priority
/>
</div>
<div className="grid grid-cols-2 prose-p:mt-0 prose-p:mb-0 gap-4">
<div>
<h2 className="mb-0">Contact</h2>
<div className="border-l-4 pl-2">
<p>
<b>Email:</b> me@yaemiku.dev
</p>
<p>
<b>Phone numer:</b> +48 797407620
</p>
<p>
<b>LinkedIn:</b>{' '}
<a href="https://linkedin.com/in/yaemiku">
linkedin.com/in/yaemiku
</a>
</p>
<p>
<b>Website:</b>{' '}
<a href="http://www.yaemiku.dev">www.yaemiku.dev</a>
</p>
</div>
</div>
<div>
<h2 className="mb-0">Education</h2>
<p className="border-l-4 pl-2">
<strong>Bachelor of Mathematics</strong>
<br />
University of Warsaw, Faculty of Mathematics, Informatics and
Mechanics
<br />
Since 10.2023, currently studying
</p>
</div>
<div>
<h2 className="mb-0">Skills / Technologies</h2>
<div className="flex border-l-4 px-2">
<ul className="font-semibold list-outside list-none">
<li>Analytical and creative thinking</li>
<li>Docker</li>
<li>Git</li>
<li>Proficiency in GNU/Linux</li>
<li>Django</li>
<li>TailwindCSS</li>
<li>NextJS</li>
</ul>
</div>
</div>
<div>
<h2 className="mb-0">Interests</h2>
<p className='border-l-4 pl-2 text-justify'>
Knitting, crocheting, detailed makeup, listening to music, walking,
playing with linux and many more. As for the last one, I&apos;ve been a poweruser
since 2020 and am self-hosting a few services - mainly media related ones.
</p>
</div>
</div>
<hr />
<h1>Summary</h1>
<p className="text-justify">
I am a student on my second year of studying mathematics. I have been
interested in IT since elementary school, when my father showed me how
to create a simple website. Throughout the years I have gained
practical experience regarding full-stack development with projects
listed below. Nearing the end of high school I have made a decision to
pursue mathematics, which has been my passion for a long time,
realizing it will be more beneficial to my career taking into
consideration my experience in IT. While not having a strictly
computer science based education, I am a quick learner, I can
fundamentally grasp complex ideas rather quickly, adapt to new
environments, analyse edge cases and implement previously known ideas
under new circumstances.
</p>
<hr className="print:break-before-page" />
<h1>Experience</h1>
<p>
Throughout the years I have completed a few projects, some of them listed below:
</p>
<div className="flex flex-col gap-2">
<div className="border-l-4 pl-2">
<p className="text-xl mb-0 mt-0">
<b>ikubi_pracownia</b>:{' '}
<a href="https://ikubi.pl">https://ikubi.pl</a>
</p>
My first project. A portfolio website for my mother
<br />
<i>Technologies used: Docker, Django, 11ty, BulmaCSS</i>
</div>
<div className="border-l-4 pl-2">
<p className="text-xl mb-0 mt-0">
<b>Puchar LO V w Bielsku-Białej</b>:{' '}
<a href="https://puchar.lo5.bielsko.pl">
https://puchar.lo5.bielsko.pl
</a>
</p>
A website for a mathematical contest organized by my high school
<br />
<i>Technologies used: Django, BulmaCSS</i>
</div>
<div className="border-l-4 pl-2">
<p className="text-xl mb-0 mt-0">
<b>eParafia</b>:{' '}
<a href="https://eparafia.eu">https://eparafia.eu</a>
</p>
A website which main functionality is to allow local churches to
have opt-in pastoral visits by submitting a form online
<br />
<i>Technologies used: NextJS, TailwindCSS, PocketBase</i>
</div>
<div className="border-l-4 pl-2">
<p className="text-xl mb-0 mt-0">
<b>Podlaski Związek Brydża Sportowego</b>:{' '}
<a href="https://podlzbs.pl">https://podlzbs.pl</a>
</p>
A website for Podlaskie Voivodeship&apos;s bridge association
<br />
<i>Technologies used: Docker, Django, TailwindCSS</i>
</div>
<div className="border-l-4 pl-2">
<p className="text-xl mb-0 mt-0">
<b>TechTIR App</b> (only an article in polish is available:{' '}
<a href="https://techtir.pl/relacja-i-podsumowanie-kongresu-sdcm/">
https://techtir.pl/relacja-i-podsumowanie-kongresu-sdcm/
</a>
)
</p>
A website which was crucial for TechTIR&apos;s presentation during
an automotive congress. It operated as a quiz for the participants
to revise their knowledge after the talk (think kahoot.it)
<br />
<i>Technologies used: Docker, Django, TailwindCSS</i>
</div>
{/* <div className="border-l-4 pl-2">
<p className="text-xl mb-0 mt-0">
<b>Kod Pamięci</b>:{' '}
<a href="https://kod-pamieci.pl">https://kod-pamieci.pl</a>
</p>
A website I am currently working on, it allows users to generate
unique QR codes designed to be put on gravestones in order to
preserve memories of their loved ones
<br />
<i>Technologies used: Docker, Django, TailwindCSS</i>
</div> */}
</div>
</main>
</div>
);
};
export default Page;
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

+7
View File
@@ -0,0 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
ul {
@apply flex flex-row gap-x-4 flex-wrap list-inside items-center justify-center
}
+20
View File
@@ -0,0 +1,20 @@
import type { Metadata } from 'next';
import { Geist, Geist_Mono } from 'next/font/google';
import './globals.css';
export const metadata: Metadata = {
title: 'Nikola Kubiczek',
description: 'Personal website',
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className="antialiased">{children}</body>
</html>
);
}
+174
View File
@@ -0,0 +1,174 @@
'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>
);
}
+12 -2
View File
@@ -1,4 +1,7 @@
-----BEGIN PGP PUBLIC KEY BLOCK----- import { NextRequest, NextResponse } from "next/server";
export async function GET(_request: NextRequest) {
const pk = `-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGHThigBEACa2l79D1WeKXvlJsua8s90P0p50sWaKCS6QOwG9jCvcSfSll8g mQINBGHThigBEACa2l79D1WeKXvlJsua8s90P0p50sWaKCS6QOwG9jCvcSfSll8g
aL+jyWs3MsJV7qq9grSJ1/szLWAO8OXYLaNkbk1jt29ogIgDs964x1nSUPpeQTlt aL+jyWs3MsJV7qq9grSJ1/szLWAO8OXYLaNkbk1jt29ogIgDs964x1nSUPpeQTlt
@@ -154,4 +157,11 @@ OHyQSX15R7ZwYN4aA2M4JOE/cGdmNgtYTmFEtwYgxo7tvOzHYuJmRLS3W8Sv3XIQ
77/4OSw02dpoIlbatnjLBnqjk6Bkp1GSPbD6MoYyWzLj4aTrTur2ClpZwBiONPja 77/4OSw02dpoIlbatnjLBnqjk6Bkp1GSPbD6MoYyWzLj4aTrTur2ClpZwBiONPja
826qgOE= 826qgOE=
=PoyA =PoyA
-----END PGP PUBLIC KEY BLOCK----- -----END PGP PUBLIC KEY BLOCK-----`
return new NextResponse(pk, {
headers: {
'Content-Type': 'text/plain; charset=utf-8'
}
});
}
+24 -18
View File
@@ -14,7 +14,7 @@ spec:
spec: spec:
containers: containers:
- name: hamburger - name: hamburger
image: "$REGISTRY/$REGISTRY_USERNAME/$CI_PROJECT_NAME" image: registry.yaemiku.dev/yaemiku/hamburger
ports: ports:
- name: app-port - name: app-port
containerPort: 3000 containerPort: 3000
@@ -42,24 +42,30 @@ spec:
app: hamburger app: hamburger
--- ---
apiVersion: traefik.containo.us/v1alpha1 apiVersion: networking.k8s.io/v1
kind: IngressRoute kind: Ingress
metadata: metadata:
name: hamburger name: hamburger
spec: spec:
entryPoints: ingressClassName: traefik
- websecure rules:
routes: - host: yaemiku.dev
- kind: Rule http:
match: Host(`yaemiku.dev`) paths:
services: - path: /
- kind: Service pathType: Prefix
backend:
service:
name: hamburger name: hamburger
port: app-svc-port port:
tls: number: 80
secretName: hamburger-tls - host: www.yaemiku.dev
certResolver: letsencrypt-prod http:
domains: paths:
- main: yaemiku.dev - path: /
sans: pathType: Prefix
- www.yaemiku.dev backend:
service:
name: hamburger
port:
number: 80
+16
View File
@@ -0,0 +1,16 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
});
const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
];
export default eslintConfig;
-9
View File
@@ -1,9 +0,0 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true,
},
output: 'standalone'
}
module.exports = nextConfig
+7
View File
@@ -0,0 +1,7 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
};
export default nextConfig;
+16 -20
View File
@@ -1,33 +1,29 @@
{ {
"name": "hamburger", "name": "hamburger",
"version": "1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev --turbopack",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@fontsource/jetbrains-mono": "^4.5.12", "next": "15.1.2",
"@tailwindcss/typography": "^0.5.9", "react": "^19.0.0",
"@types/crypto-js": "^4.1.1", "react-dom": "^19.0.0"
"@types/node": "18.15.3",
"@types/react": "18.0.28",
"@types/react-dom": "18.0.11",
"crypto-js": "^4.1.1",
"eslint": "8.36.0",
"eslint-config-next": "13.2.4",
"framer-motion": "^10.3.2",
"next": "13.2.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"sharp": "^0.32.5",
"typescript": "4.9.5"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^10.4.14", "@eslint/eslintrc": "^3",
"postcss": "^8.4.21", "@tailwindcss/typography": "^0.5.15",
"tailwindcss": "^3.2.7" "@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.1.2",
"postcss": "^8",
"swr": "^2.2.5",
"tailwindcss": "^3.4.1",
"typescript": "^5"
} }
} }
+2921 -2157
View File
File diff suppressed because it is too large Load diff
-6
View File
@@ -1,6 +0,0 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
+8
View File
@@ -0,0 +1,8 @@
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
tailwindcss: {},
},
};
export default config;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

-1
View File
@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><rect width="512" height="512" rx="15%" fill="#30353e"/><path fill="#e24329" d="M84 215l43-133c2-7 12-7 14 0l115 353L371 82c2-7 12-7 14 0l43 133"/><path fill="#fc6d26" d="M256 435L84 215h100.4zm71.7-220H428L256 435l71.6-220z"/><path fill="#fca326" d="M84 215l-22 67c-2 6 0 13 6 16l188 137zm344 0l22 67c2 6 0 13-6 16L256 435z"/></svg>

Before

Width:  |  Height:  |  Size: 395 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

-3
View File
@@ -1,3 +0,0 @@
export async function GET(request: Request) {
return new Response('Hello, Next.js!')
}
-15
View File
@@ -1,15 +0,0 @@
@import "node_modules/@fontsource/jetbrains-mono/index.css";
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
a {
@apply underline;
}
a:hover {
@apply saturate-50;
}
}
-22
View File
@@ -1,22 +0,0 @@
import './globals.css';
export const metadata = {
title: 'storbies my beloved',
authors: { name: 'Nikola Kubiczek' },
description: 'my things',
colorScheme: 'dark',
viewport: 'width=device-width,initial-scale=1.0',
icons: ['icon.png'],
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html className="dark" lang="en" dir="ltr">
<body className="bg-zinc-900 text-zinc-100 bg-gothic-pattern">{children}</body>
</html>
);
}
-275
View File
@@ -1,275 +0,0 @@
'use client';
import { useState } from 'react';
import Image from 'next/image';
import { motion } from 'framer-motion';
import MD5 from 'crypto-js/md5'
import blahaj from '../../public/blahaj.webp';
import gitlab from '../../public/gitlab.svg';
import picrew from '../../public/picrew.png';
export default function Home() {
const [COTD, setCOTD] = useState(false);
const date = new Date();
const [day, month, year] = [
date.getDate(),
date.getMonth() + 1,
date.getFullYear(),
];
const hash = MD5(`${day}.${month}.${year}`)
const [C, M, Y, K] = hash.words.map(x => (x + 2 ** 31) / (2 ** 32));
const R = Math.round(255 * (1 - C) * (1 - K));
const G = Math.round(255 * (1 - M) * (1 - K));
const B = Math.round(255 * (1 - Y) * (1 - K));
const RGB = R.toString(16).padStart(2, '0') + G.toString(16).padStart(2, '0') + B.toString(16).padStart(2, '0');
const items = [
{
name: 'eParafia',
class_: 'hover:border-[#466e83] hover:bg-[#365e70]',
link: 'https://eparafia.eu',
},
{
name: 'Podlaski ZBS',
class_: 'hover:border-[#7c626c] hover:bg-[#6f6f71]',
link: 'https://podlaskizbs.pl',
},
{
name: 'Ikubi',
class_: 'hover:border-[#7c626c] hover:bg-[#6f6f71]',
link: 'https://ikubi.pl',
},
{
name: 'nyaa',
class_: 'hover:border-[#466e83] hover:bg-[#365e70]',
git: 'https://gitlab.com/yaemiku/nyaa',
desc: `it's a script, dummy!`,
},
{
name: 'Puchar LO V',
class_: 'hover:border-[#7f7f84] hover:bg-[#6f6f71]',
link: 'https://puchar.lo5.bielsko.pl',
git: 'https://gitlab.com/yaemiku/puchar',
full: true,
},
];
return (
<div className="max-w-screen-md mx-auto prose mt-big p-small prose-zinc prose-invert">
<header className="flex flex-col items-center justify-around px-base">
<div>
<motion.div
animate={{
left: 0,
right: 0,
}}
className="absolute z-10 flex flex-col h-16 shadow-2xl max-w-vw my-28"
>
<div className="z-0 grow bg-trans-blue"></div>
<div className="z-0 grow bg-trans-pink"></div>
<div className="z-0 bg-white grow"></div>
<div className="z-0 grow bg-trans-pink"></div>
<div className="z-0 grow bg-trans-blue"></div>
</motion.div>
<div className="relative z-20 mx-auto w-72">
<Image
src={picrew}
alt="My Picrew"
className="rounded-full shadow-2xl pointer-events-none select-none"
priority
/>
</div>
</div>
<div className="flex flex-col items-center w-full my-base gap-small mt-big">
<h1 className="flex text-3xl select-none mb-none gap-small">
<span className="my-auto">
<a
href="https://www.youtube.com/watch?v=WzZPPXfYSvE"
className="no-underline"
target="_blank"
>
🐀&nbsp;
</a>
</span>
<div className="flex flex-col text-center">
<span className=''>Nikola Kubiczek</span>
<span className="text-xs font-semibold text-zinc-500">
(she/her)
</span>
</div>
<span className="my-auto">
<a
href="https://www.youtube.com/watch?v=JsV8EI3c48M"
className="no-underline"
target="_blank"
>
&nbsp;🦈
</a>
</span>
</h1>
<b className="font-jetbrains">
<p className="flex flex-col items-center font-light my-none text-lime-50">
<span>me<span className='mx-xs'>@</span>yaemiku.dev</span>
<a href="public.asc" target="_blank">
pgp key
</a>
<span className="text-xs mt-small">click on the emojis !!</span>
</p>
</b>
</div>
</header>
<main className="flex flex-col items-center justify-around px-4">
<figure className="flex flex-col max-w-screen-sm my-big gap-big">
<blockquote className="text-2xl text-center text-transparent bg-clip-text bg-gradient-to-br from-trans-blue via-trans-pink to-white">
Why be serious when you can just be silly ???
</blockquote>
<div className="grid text-sm gap-base md:grid-cols-2 font-jetbrains">
<div className="text-center transition ease-in-out border rounded-md transform-gpu col-span-full p-small border-zinc-700 bg-gradient-to-r from-bi-red via-bi-violet to-bi-blue">
<h1 className="font-semibold">My blog !!</h1>
<a href="https://blog.yaemiku.dev" target="_blank">
https://blog.yaemiku.dev
</a>
</div>
{items.map(({ name, class_, link, git, full, desc }, i) => (
<div
className={`${git ? 'flex' : ''
} transition transform-gpu ease-in-out p-small rounded-md ${!!full ? 'col-span-full' : ''
} border border-zinc-700 bg-zinc-800 ${class_}`}
key={i}
>
{git ? (
<>
<div>
<h1 className="font-semibold">{name}</h1>
{link ? (
<a href={link} target="_blank">
{link}
</a>
) : (
<span>{desc}</span>
)}
</div>
<a href={git} className="my-auto ml-auto" target="_blank">
<Image src={gitlab} alt="gitlab" className="w-8 h-8" />
</a>
</>
) : (
<>
<h1 className="font-semibold">{name}</h1>
<a href={link} target="_blank">
{link}
</a>
</>
)}
</div>
))}
<div
style={{ backgroundColor: `#${RGB}` }}
onClick={() => setCOTD(!COTD)}
title='How does it work?'
className="flex flex-col items-center col-span-full p-small rounded-md border border-zinc-700 hover:border-[#7f7f84] cursor-pointer"
>
<motion.a className="font-semibold">Color of the day!</motion.a>
<motion.div
animate={COTD ? "open" : "closed"}
initial="closed"
variants={{
open: { opacity: 1, display: "block", margin: "0.5rem 0" },
closed: { opacity: 0, display: "none" }
}}
>
<div className='flex flex-col items-center gap-small'>
<span>Take the current date:</span>
<span className='font-semibold'>{day}.{month}.{year}</span>
<span>Apply MD5:</span>
<span className='font-semibold'>{hash.toString()}</span>
<span className='max-w-xs text-center'>Finally, separate this hash into 4 uint32 words, divide them by 2^32 and you&apos;re good to go :{')'}</span>
</div>
</motion.div>
<span>
C: <span className="font-semibold">{Math.round(C * 100)}%</span>{' '}
M: <span className="font-semibold">{Math.round(M * 100)}%</span>{' '}
Y: <span className="font-semibold">{Math.round(Y * 100)}%</span>{' '}
K: <span className="font-semibold">{Math.round(K * 100)}%</span>
</span>
<span>
R: <span className="font-semibold">{R}</span> G:{' '}
<span className="font-semibold">{G}</span> B:{' '}
<span className="font-semibold">{B}</span>
</span>
</div>
</div>
<Image
src={blahaj}
alt="blahaj"
className="mx-auto rounded-md mt-big"
/>
<figcaption className="mt-[-1.25em] text-xs text-center text-zinc-400">
u/markyminkk on r/BLAHAJ
</figcaption>
</figure>
</main>
<footer className="text-center my-small">
<em>
<a href="https://gitlab.com/yaemiku" target="_blank">
yaemiku
</a>{' '}
&copy; <span id="year">2023</span>
</em>
<br />
<em>
Made with{' '}
<a href="https://nextjs.org" target="_blank">
NextJS
</a>
,{' '}
<a href="https://framer.com" target="_blank">
Framer Motion
</a>{' '}
and{' '}
<a href="https://tailwindcss.com" target="_blank">
TailwindCSS
</a>{' '}
</em>
<br />
<em>
Link to{' '}
<a href="https://picrew.me/image_maker/599056" target="_blank">
picrew
</a>
</em>
<figure className="max-w-screen-md select-none my-big">
<blockquote className="text-xs text-justify text-zinc-400">
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 className="text-xs text-right mt-small text-zinc-700">
——— Witold Gombrowicz, Ferdydurke
</figcaption>
</figure>
</footer>
</div>
);
}
-38
View File
@@ -1,38 +0,0 @@
module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
darkMode: "class",
theme: {
extend: {
backgroundImage: {
"gothic-pattern":
"linear-gradient(to right, rgba(24, 24, 27, 0.8) 0 100%), url('/pattern.png')",
},
colors: {
'trans-blue': '#55cdfc',
'trans-pink': '#f7a8b8',
'bi-red': '#d60270',
'bi-violet': '#9b4f96',
'bi-blue': '#0038a8'
},
fontFamily: {
jetbrains: ["JetBrains Mono", "sans-serif"],
},
maxWidth: {
'vw': '100vw'
},
spacing: {
none: '0',
xs: '0.25em',
sm: '0.5em',
small: '0.5em',
md: '0.75em',
lg: '1em',
base: '1em',
big: '1.5em',
xl: '1.25em',
},
},
},
plugins: [],
};
+18
View File
@@ -0,0 +1,18 @@
import type { Config } from "tailwindcss";
export default {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
},
},
},
plugins: [require('@tailwindcss/typography')],
} satisfies Config;
+3 -4
View File
@@ -1,15 +1,14 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es5", "target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"], "lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true, "noEmit": true,
"esModuleInterop": true, "esModuleInterop": true,
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "preserve",
@@ -20,7 +19,7 @@
} }
], ],
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./*"]
} }
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],