feat: 404 page

This commit is contained in:
2026-07-09 16:23:45 +08:00
parent 26ce6ed4ef
commit 540168d30f
3 changed files with 40 additions and 5 deletions

30
src/pages/404.astro Normal file
View File

@@ -0,0 +1,30 @@
---
import Layout from "@/layouts/Layout.astro";
---
<Layout title="404">
<div class="not-found">
<h1>404 Not Found</h1>
<a class="back-home" href="/">返回首页</a>
</div>
</Layout>
<style>
.not-found{
flex: 1;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 20px;
margin-top: -100px;
}
.back-home{
background: black;
color: white;
padding: 10px 20px;
border-radius: 12px;
}
</style>