Skip to content

Commit aee52ad

Browse files
Add 404 page
1 parent b3e16b8 commit aee52ad

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/components/Common/OKTechLogo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface OKTechLogoProps {
99
}
1010

1111
// TODO use colors picked from wintle's image
12-
const colors = {
12+
export const colors = {
1313
RED: "#fd4d69",
1414
GREEN: "#49d773",
1515
BLUE: "#459bc9",

src/pages/404.astro

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
import PageLayout from "@/layouts/PageLayout.astro";
3+
import { colors } from "@/components/Common/OKTechLogo";
4+
---
5+
6+
<PageLayout className="flex flex-col">
7+
<div class="flex flex-grow flex-col items-center justify-center py-32">
8+
<h1 class="text-[20vw] tracking-[-0.15em] xl:text-[16em]">
9+
<span style={{ color: colors.RED }}>4</span>
10+
<span style={{ color: colors.GREEN }}>0</span>
11+
<span style={{ color: colors.BLUE }}>4</span>
12+
</h1>
13+
<p class="mt-4 text-[4vw] xl:text-[3em]">Sorry, page not found.</p>
14+
<p class="mt-4 text-[3vw] xl:text-[2em]">申し訳ありませんが、ページが見つかりません.</p>
15+
</div>
16+
</PageLayout>

0 commit comments

Comments
 (0)