ui redesign, markdown fix + metadata and auth header
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user