pretty up blog section
This commit is contained in:
@@ -23,9 +23,15 @@ export default function BlogRow() {
|
|||||||
if (post) {
|
if (post) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<a href="https://blog.alexav.gg">
|
<a
|
||||||
<h1>{post?.title}</h1>
|
className="space-y-1 hover:underline"
|
||||||
<p>{post?.description}</p>
|
href={`https://blog.alexav.gg/post/${post.slug}`}
|
||||||
|
>
|
||||||
|
<h1 className="font-semibold">{post?.title}</h1>
|
||||||
|
<p className="text-sm">{post?.description}</p>
|
||||||
|
<p className="text-xs opacity-50">
|
||||||
|
Posted {new Date(post.createdAt).toLocaleDateString()}
|
||||||
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ interface BlogPost {
|
|||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
|
createdAt: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type {
|
export type {
|
||||||
|
|||||||
Reference in New Issue
Block a user