foundation for posts

This commit is contained in:
2026-09-06 22:05:10 -04:00
parent 41e5316443
commit 04e66527ca
6 changed files with 116 additions and 14 deletions
+14 -7
View File
@@ -1,10 +1,17 @@
export default function PostRow() {
import type { Post } from "../utils/types";
export default function PostRow({ post }: { post: Post }) {
return (
<a href="" className="hover:underline">
<div>
<h1>This is a test post</h1>
<p>This is a test post description to show how cool it is</p>
</div>
</a>
<div className="block">
<a href={`/post/${post.slug}`} className="hover:underline">
<div>
<h1>{post.title}</h1>
<p>{post.description}</p>
<p className="text-xs opacity-50">
Posted on {new Date(post.createdAt).toLocaleString()}
</p>
</div>
</a>
</div>
);
}