ui redesign, markdown fix + metadata and auth header

This commit is contained in:
2026-05-09 05:09:07 +02:00
parent 7f8a66f360
commit bc6a34cf1f
42 changed files with 3093 additions and 517 deletions
+13 -5
View File
@@ -6,7 +6,11 @@ const API_URL = process.env.PUBLIC_API_URL || 'http://localhost:3000';
interface Post {
slug: string;
date: string;
excerpt?: string;
tags: string[];
draft: boolean;
reading_time: number;
}
let posts: Post[] = [];
@@ -46,7 +50,7 @@ function formatSlug(slug: string) {
}
---
<Layout title="Home">
<Layout title="Home" description={siteConfig.welcome_subtitle}>
<div class="space-y-6 md:space-y-8">
<section class="text-center py-6 md:py-12">
<h1 class="text-3xl md:text-5xl font-extrabold mb-3 md:mb-4 pb-2 md:pb-4 leading-tight bg-clip-text text-transparent bg-gradient-to-r from-mauve via-blue to-teal">
@@ -71,10 +75,14 @@ function formatSlug(slug: string) {
)}
{posts.map((post) => (
<PostCard
slug={post.slug}
excerpt={post.excerpt}
formatSlug={formatSlug}
<PostCard
slug={post.slug}
date={post.date}
excerpt={post.excerpt}
tags={post.tags}
draft={post.draft}
readingTime={post.reading_time}
formatSlug={formatSlug}
/>
))}
</div>