2024-03-09 22:41:35 +00:00
|
|
|
---
|
|
|
|
import BaseHead from "../components/BaseHead.astro";
|
|
|
|
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
|
|
|
|
import Link from "../components/Link.astro";
|
|
|
|
import FormattedDate from "../components/FormattedDate.astro";
|
2024-06-18 21:12:25 +01:00
|
|
|
import LuaLine from "../components/LuaLine.astro";
|
2024-03-09 22:41:35 +00:00
|
|
|
import { getBlogs } from "../content/blog";
|
|
|
|
|
|
|
|
const posts = (await getBlogs()).sort(
|
2024-03-12 18:15:50 +00:00
|
|
|
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(),
|
2024-03-09 22:41:35 +00:00
|
|
|
);
|
2024-07-14 23:27:56 +01:00
|
|
|
const current = new Date();
|
|
|
|
const currentMonth = current.getMonth();
|
|
|
|
const currentYear = `${current.getUTCFullYear() - 1}`.substring(2);
|
2024-03-09 22:41:35 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
<!doctype html>
|
2024-05-14 00:01:06 +01:00
|
|
|
<html lang="en" class="latte dark:mocha">
|
2024-06-18 21:12:25 +01:00
|
|
|
<head>
|
|
|
|
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
|
|
|
|
</head>
|
|
|
|
<body
|
2024-07-14 23:27:56 +01:00
|
|
|
class="tilde-background bg-base text-text h-screen m-auto p-8 flex items-center justify-center overflow-hidden"
|
2024-06-18 21:12:25 +01:00
|
|
|
>
|
|
|
|
<main
|
|
|
|
class="py-8 max-w-2xl flex flex-col items-center space-y-0 leading-tight"
|
|
|
|
>
|
2024-07-14 23:27:56 +01:00
|
|
|
<p>KENNETHNYM v{currentYear}.{currentMonth + 3}</p>
|
2024-06-18 21:12:25 +01:00
|
|
|
<p class="leading-none"> </p>
|
|
|
|
<p>software engineer. unpaid hhkb salesman.</p>
|
|
|
|
<p> </p>
|
|
|
|
<p> </p>
|
|
|
|
<ul class="w-full">
|
|
|
|
{
|
|
|
|
posts.map((post) => (
|
|
|
|
<li class="flex flex-row justify-between hover:bg-opacity-10 hover:bg-text -mx-2 px-2 rounded space-x-8">
|
|
|
|
<Link href={`/blog/${post.slug}`}>{post.data.title}</Link>
|
|
|
|
<FormattedDate date={post.data.pubDate} />
|
|
|
|
</li>
|
|
|
|
))
|
|
|
|
}
|
|
|
|
</ul>
|
|
|
|
</main>
|
|
|
|
<LuaLine />
|
2024-07-14 23:27:56 +01:00
|
|
|
|
|
|
|
<style>
|
|
|
|
.tilde-background {
|
|
|
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='10' height='20'><text x='0' y='16' fill='%23C6D1F1' font-family='CommitMono'>~</text></svg>");
|
|
|
|
background-repeat: repeat-y;
|
|
|
|
}
|
|
|
|
</style>
|
2024-06-18 21:12:25 +01:00
|
|
|
</body>
|
2024-03-09 22:41:35 +00:00
|
|
|
</html>
|