21 lines
623 B
Plaintext
21 lines
623 B
Plaintext
---
|
|
import PageLayout from "../../layouts/PageLayout.astro";
|
|
import PostList from "../../components/PostList.astro";
|
|
|
|
export const prerender = false;
|
|
|
|
const response = await fetch(`https://feed.smartsheep.studio/api/posts?offset=0&take=10&realmId=${process.env.PUBLIC_REALM_ID}`);
|
|
const posts = (await response.json())["data"];
|
|
---
|
|
|
|
<PageLayout title="记录">
|
|
<div class="max-w-[720px] mx-auto">
|
|
<div class="pt-16 pb-6 px-6">
|
|
<h1 class="text-4xl font-bold">记录</h1>
|
|
<p class="pt-2">记录生活,记录理想,记录记录……</p>
|
|
</div>
|
|
|
|
<PostList posts={posts} />
|
|
</div>
|
|
</PageLayout>
|