From ba1be9573ef20d6424ae987257a1c727c47d4b53 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 6 Oct 2026 20:46:31 +0300 Subject: Initial setup for website rewrite --- src/pages/404.astro | 25 --- src/pages/blogs.astro | 38 ---- src/pages/blogs/[...slug].astro | 132 ------------ src/pages/index.astro | 275 ------------------------- src/pages/projects.astro | 63 ------ src/pages/shell.astro | 438 ---------------------------------------- src/pages/skills.astro | 51 ----- 7 files changed, 1022 deletions(-) delete mode 100644 src/pages/404.astro delete mode 100644 src/pages/blogs.astro delete mode 100644 src/pages/blogs/[...slug].astro delete mode 100644 src/pages/index.astro delete mode 100644 src/pages/projects.astro delete mode 100644 src/pages/shell.astro delete mode 100644 src/pages/skills.astro (limited to 'src/pages') diff --git a/src/pages/404.astro b/src/pages/404.astro deleted file mode 100644 index 9d3910e..0000000 --- a/src/pages/404.astro +++ /dev/null @@ -1,25 +0,0 @@ ---- -import TerminalBorder from "@components/TerminalBorder.astro"; -import Terminal from "@layouts/Terminal.astro"; - -const url = new URL(Astro.request.url).pathname.substring(1); ---- - - - - -

$ cd ~/{url}

-

- "{url}": No such file or directory (os error 2) -

-
-
-
- diff --git a/src/pages/blogs.astro b/src/pages/blogs.astro deleted file mode 100644 index 7e1b576..0000000 --- a/src/pages/blogs.astro +++ /dev/null @@ -1,38 +0,0 @@ ---- -import Terminal from "@layouts/Terminal.astro"; -import TerminalBorder from "@components/TerminalBorder.astro"; -import BlogItem from "@components/BlogItem.astro"; -import { getCollection } from "astro:content"; - -const blogs = (await getCollection("blogs")) - .sort((a, b) => +new Date(b.data.date) - +new Date(a.data.date)) - .map((blog) => ({ - title: blog.data.title, - description: blog.data.description, - date: blog.data.date, - href: "/blogs/" + blog.slug, - })); ---- - - - -

$ ls -lah -t --color=auto ~/blogs

-
-
- { - blogs.map((blog) => ( - <> - - - )) - } -
-
diff --git a/src/pages/blogs/[...slug].astro b/src/pages/blogs/[...slug].astro deleted file mode 100644 index a7394ca..0000000 --- a/src/pages/blogs/[...slug].astro +++ /dev/null @@ -1,132 +0,0 @@ ---- -import { getCollection } from "astro:content"; -import Terminal from "@layouts/Terminal.astro"; -import BlogItem from "@components/BlogItem.astro"; -import Link from "@components/Link.astro"; -import TerminalBorder from "@components/TerminalBorder.astro"; - -export async function getStaticPaths() { - const blogEntries = await getCollection("blogs"); - return blogEntries.map((blog) => ({ - params: { slug: blog.slug }, - props: { entry: blog }, - })); -} - -const { entry } = Astro.props; -const { Content } = await entry.render(); - -const blogs = await getCollection("blogs"); -const sortedBlogs = blogs.sort((a, b) => +b.data.date - +a.data.date); -const currentIndex = sortedBlogs.findIndex((blog) => blog.slug === entry.slug); -const previousBlog = sortedBlogs[currentIndex + 1] || undefined; -const nextBlog = sortedBlogs[currentIndex - 1] || undefined; ---- - - -
-
-
- -
-
- -
-
- { - previousBlog ? ( - - - - vim ~/blogs/{previousBlog.slug}.md - - - - ) : ( - -
- - - - - diff --git a/src/pages/index.astro b/src/pages/index.astro deleted file mode 100644 index e286117..0000000 --- a/src/pages/index.astro +++ /dev/null @@ -1,275 +0,0 @@ ---- -import { getCollection } from "astro:content"; -import Terminal from "@layouts/Terminal.astro"; -import TerminalBorder from "@components/TerminalBorder.astro"; -import Link from "@components/Link.astro"; -import BlogItem from "@components/BlogItem.astro"; - -const latestBlog = (await getCollection("blogs")).reduce((latest, blog) => { - const blogDate = new Date(blog.data.date); - return blogDate > new Date(latest.data.date) ? blog : latest; -}); - -const sshKey = `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7P9K9D5RkBk+JCRRS6AtHuTAc6cRpXfRfRMg/Kyren`; -const fingerprint = ` -+--[ED25519 256]--+ -| +. .. +.B| -| + o..o . BB| -| ..o oo.o =+E| -| ... oo. + o.| -| . S . = | -| . . + o | -| o o o . | -| oo .o+ + | -| ++ooo+= | -+----[SHA256]-----+`.trimStart(); - -const aboutMe = ` -Hi! I'm Kyren, a software engineer and Game developer freelancer. -I love working with low level languages and learning things deeply. -I am also a terminal nerd and Linux enthusiast who uses NVIM btw. -And when I am not coding I am most likely playing video games, -watching Anime or solving Rubik's cubes fast.`.trimStart(); - -const utcOffset = 3; - -const email = "contact at kyren.codes"; - ---- - - - - - - - - - - -
-
- -

- Working on EKO - | Learning Langdev & Compiler Design | Available for hire -

-
- -

{aboutMe}

-
- -
- - {email} - - -
- - - github.com/Kyren223 - - - - - Kyren223 - - - -
- UTC+{utcOffset} - Loading... -
-
- -
- {sshKey} -
-
-
-
-
- - - - diff --git a/src/pages/projects.astro b/src/pages/projects.astro deleted file mode 100644 index 9174b0e..0000000 --- a/src/pages/projects.astro +++ /dev/null @@ -1,63 +0,0 @@ ---- -import Terminal from "@layouts/Terminal.astro"; -import Project from "@components/Project.astro"; ---- - - -
-
- - A tower defense game where an AI chip on your motherboard - generates bugs! Place CPUs to destroy the bugs! - Don't let them corrupt your RAM! - - - A complete "batteries included" framework streamlining the - process of Minecraft plugin development. Enabling developers to - make impressive plugins with ease! - -
- - A terminal-native alternative to Discord for Terminal nerds! - - - A blazingly fast way to navigate to your most used files. - minimize keystrokes and maximize productivity! - - - My linux configuration, includes Neovim, tmux and others. - -
-
-
-
diff --git a/src/pages/shell.astro b/src/pages/shell.astro deleted file mode 100644 index c1ae14e..0000000 --- a/src/pages/shell.astro +++ /dev/null @@ -1,438 +0,0 @@ ---- -import Terminal from "@layouts/Terminal.astro"; -import TerminalBorder from "@components/TerminalBorder.astro"; ---- - - - -
-
- -
$ 
-

- npm run buildafter -

- -
-
- diff --git a/src/pages/skills.astro b/src/pages/skills.astro deleted file mode 100644 index 6d6f4b1..0000000 --- a/src/pages/skills.astro +++ /dev/null @@ -1,51 +0,0 @@ ---- -import Terminal from "@layouts/Terminal.astro"; -import RadarChart from "@components/RadarChart.astro"; -import TerminalBorder from "@components/TerminalBorder.astro"; - -const max = 100; -const data = [ - { name: "Tooling", weight: 75 }, - { name: "Backend", weight: 80 }, - { name: "Gamedev", weight: 99 }, - { name: "Low-Level", weight: 95 }, - { name: "Frontend", weight: 15 }, -]; - -const langs = [ - "C/C++", "Golang", "Java", "SQL", "Python", - "Zig", "Rust", "Kotlin", "C#" ,"Lua" -]; -const tools = [ - "Git & GitHub & Gitea", - "SQLite and Firebase", - "Linux", - "Neovim and Tmux", -]; -const frameworks = ["Raylib", "Spigot API", "Bubbletea", "Astro"]; ---- - - -
-
- -
- {langs.map((lang) =>

{lang}

)} -
-
- -
- {frameworks.map((framework) =>

{framework}

)} -
-
- -
- {tools.map((tool) =>

{tool}

)} -
-
-
-
- -
-
-
-- cgit v1.3.1