67 lines
3.1 KiB
Text
67 lines
3.1 KiB
Text
---
|
|
|
|
import { compareDesc, format } from 'date-fns'
|
|
import { toZonedTime } from 'date-fns-tz'
|
|
|
|
import BaseLayout from '../layouts/BaseLayout.astro';
|
|
import cri from "./chills_going_waaaaah.png"
|
|
import { Picture } from 'astro:assets';
|
|
|
|
import MDXCallout from "../components/mdx/MDXCallout.astro"
|
|
|
|
import { getCollection } from 'astro:content';
|
|
|
|
const posts = await getCollection('posts')
|
|
|
|
import { timeZone } from "../lib/utils";
|
|
|
|
---
|
|
|
|
<BaseLayout title="home">
|
|
<h2 class="font-serif text-3xl my-2">Hey. Welcome to City 23.</h2>
|
|
<Picture
|
|
src={cri}
|
|
alt="A scrunkly drawing of my sona crying"
|
|
class="w-20 mr-4 inline-flex float-left"
|
|
/>
|
|
<p class="mb-2">
|
|
This is my personal website, containing blog posts, a mini journal, and a whole bunch of other nicknacks and projects that I'm working on.
|
|
Essentially, this is my fullstack webdev playground where everything is possible and nothing makes sense... the dark side of the sauce.
|
|
</p>
|
|
<p class="mb-2">Expect posts once or twice a week, I guess.</p>
|
|
|
|
<p class="mb-2"><b>Last journal update:</b>
|
|
<a href="/journal" class="font-serif text-subtitle text-sm hover:underline">November 14, 2024</a>
|
|
</p>
|
|
|
|
<MDXCallout preset="info">
|
|
whoops i forgor to pay my hosting provider so my website went poof. i fixed it. website back now. yey
|
|
<br/><br/>
|
|
Expect an editing pass to my last blog post (f i n a l l y) sometime soon-ish.
|
|
</MDXCallout>
|
|
|
|
<h2 class="font-serif text-2xl mb-2">recent posts</h2>
|
|
<ul class="space-y-2">
|
|
{posts.sort((a, b) => compareDesc(new Date(a.data.date), new Date(b.data.date))).map((post, idx) => {
|
|
if (idx >= 3 || post.data.draft) return;
|
|
console.log(toZonedTime(post.data.date, timeZone));
|
|
return (
|
|
<li >
|
|
<a href={'/posts/' + post.slug} class="font-serif text-lg text-crusta-400 dark:text-night-300 hover:underline">{post.data.title}</a>
|
|
 <span class="font-mono text-md">{format(toZonedTime(post.data.date, timeZone), 'LLL d, yyyy')}</span>
|
|
<p>{post.data.summary}</p>
|
|
</li>
|
|
);
|
|
})}
|
|
</ul>
|
|
<h2 class="font-serif text-2xl mb-2">webrings</h2>
|
|
<div class="flex items-baseline">
|
|
<a class="text-subtitle hover:text-current" href="https://fediring.net/previous?host=eleboog.com">← </a>
|
|
<a class="text-subtitle hover:text-current" href="https://fediring.net/">Fediring</a>
|
|
<a class="text-subtitle hover:text-current" href="https://fediring.net/next?host=eleboog.com"> →</a>
|
|
<div class="flex w-4 self-baseline h-1 border-t border-crusta-200 dark:border-night-800 mx-2"></div>
|
|
<a class="text-subtitle hover:text-current" href="https://webring.bucketfish.me/redirect.html?to=prev&name=kebokyo">← </a>
|
|
<a class="text-subtitle hover:text-current" href="https://webring.bucketfish.me">bucket webring</a>
|
|
<a class="text-subtitle hover:text-current" href="https://webring.bucketfish.me/redirect.html?to=next&name=kebokyo"> →</a>
|
|
</div>
|
|
</BaseLayout>
|