feat: 404界面、微调ui

This commit is contained in:
2026-08-16 11:14:34 +08:00
parent fef7f239c9
commit 7eb0ae75fb
3 changed files with 18 additions and 1 deletions

View File

@@ -3,5 +3,16 @@ import Layout from "@/layouts/Layout.astro";
--- ---
<Layout title="404" description="这里什么也没有发现~"> <Layout title="404" description="这里什么也没有发现~">
<div class="not-found">
<h1>404 NOT FOUND</h1>
</div>
</Layout> </Layout>
<style>
.not-found{
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
</style>

View File

@@ -123,5 +123,10 @@ const {data} = await http.get<ApiResponse<Archive>>("posts/archives");
.year-title{ .year-title{
font-size: 24px; font-size: 24px;
} }
.post-title{
font-size: 15px;
} }
}
</style> </style>

View File

@@ -102,6 +102,7 @@ const published_at = formatDatetime(data.published_at, "YYYY.MM.DD");
font-size: 14px; font-size: 14px;
margin-bottom: 20px; margin-bottom: 20px;
color: var(--text-meta); color: var(--text-meta);
line-height: 1.4;
} }
.divider { .divider {