Compare commits
1 Commits
additional
...
blog-scrol
| Author | SHA1 | Date | |
|---|---|---|---|
| d85cc205de |
@@ -32,7 +32,7 @@ export default async function BlogPostPage({ params }: Props) {
|
|||||||
const date = typeof parsed.data.date === "string" ? parsed.data.date : post.date;
|
const date = typeof parsed.data.date === "string" ? parsed.data.date : post.date;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="mx-auto max-w-2xl px-4 py-12">
|
<main className="mx-auto h-full max-w-2xl overflow-y-auto px-4 py-12">
|
||||||
<header className="mb-8">
|
<header className="mb-8">
|
||||||
<h1 className="text-3xl font-bold">{title}</h1>
|
<h1 className="text-3xl font-bold">{title}</h1>
|
||||||
{date && (
|
{date && (
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export default async function BlogPage() {
|
|||||||
const posts = await servTrpc.blog.list();
|
const posts = await servTrpc.blog.list();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="mx-auto max-w-2xl px-4 py-12">
|
<main className="mx-auto h-full max-w-2xl overflow-y-auto px-4 py-12">
|
||||||
<h1 className="mb-8 text-3xl font-bold">Blog</h1>
|
<h1 className="mb-8 text-3xl font-bold">Blog</h1>
|
||||||
{posts.length === 0 ? (
|
{posts.length === 0 ? (
|
||||||
<p className="text-muted-foreground">No posts yet.</p>
|
<p className="text-muted-foreground">No posts yet.</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user