mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-04-02 01:54:50 +00:00
add 404 page
This commit is contained in:
parent
357b283ef6
commit
9d56874c4b
1 changed files with 38 additions and 0 deletions
38
src/pages/404.astro
Normal file
38
src/pages/404.astro
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
---
|
||||||
|
import BaseLayout from "@/layouts/BaseLayout.astro";
|
||||||
|
import "@/styles/global.css";
|
||||||
|
---
|
||||||
|
|
||||||
|
<BaseLayout
|
||||||
|
pageTitle="404 Not Found"
|
||||||
|
description="Sorry, the page doesn't exists"
|
||||||
|
>
|
||||||
|
<div class="not-found">
|
||||||
|
<img src="/images/marisa.png" alt="Marisa" class="marisa-404" />
|
||||||
|
<div class="hint">
|
||||||
|
<h3>对不起,您请求的页面不存在哦。</h3>
|
||||||
|
<h3>Sorry, the page you are requesting for doesn't exists.</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</BaseLayout>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.not-found {
|
||||||
|
min-height: 70vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.marisa-404 {
|
||||||
|
width: 30%;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hint {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Loading…
Reference in a new issue