Skip to content

Commit 4da0e58

Browse files
committed
feat: not found page
1 parent 349babf commit 4da0e58

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"astro.content-intellisense": true
2+
"astro.content-intellisense": true,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
34
}

src/pages/404.astro

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
import GlobalLayout from "+/layouts/GlobalLayout.astro";
3+
import { Focus } from "+/schema";
4+
---
5+
6+
<GlobalLayout
7+
title="404: Page Not Found"
8+
focus={Focus.none}
9+
description=""
10+
image={null}
11+
>
12+
<div class="prose prose-xl mx-auto mt-40 mb-72 text-center">
13+
<h1 class="mb-4 text-5xl font-bold">404</h1>
14+
<p class="mt-8 text-2xl text-gray-500">ページが見つかりませんでした。</p>
15+
<p class="text-2xl text-gray-500">Sorry, we couldn't find that page.</p>
16+
<p>
17+
<a href="/" class="btn btn-primary">ホームに戻る</a>
18+
</p>
19+
</div>
20+
</GlobalLayout>

0 commit comments

Comments
 (0)