diff options
| -rw-r--r-- | layouts/404.html | 29 | ||||
| -rw-r--r-- | static/vercel.json | 4 |
2 files changed, 29 insertions, 4 deletions
diff --git a/layouts/404.html b/layouts/404.html index 9ebac53..76d46d9 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,4 +1,29 @@ {{ define "title" }}404{{ end }} {{ define "main" }} -<h1>404</h1> -<p>你似乎来到了无人的岛屿。</p> +<style> +footer{display:none} +.not-found { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 100vh; +} + +.not-found * { + margin: 2rem; + line-height: 0; + } + + h1 { + padding-bottom: 0.45em; + font-size: 5rem; + } + +</style> +<div class="not-found"> + <h1>🏝️</h1> + <h3>OHHHHH~ + </h3> + <h3>Who lives in a pineapple under the sea?</h3> +</div> {{ end }} diff --git a/static/vercel.json b/static/vercel.json index bbbd8a0..6bcf614 100644 --- a/static/vercel.json +++ b/static/vercel.json @@ -123,8 +123,8 @@ { "source": "/(.*)", - "destination": "/index.html", - "statusCode": 200 + "destination": "/404.html", + "statusCode": 404 }, { |
