From 6d366712c96679c520c4831a61f258acf48cde9c Mon Sep 17 00:00:00 2001 From: batora9 Date: Mon, 15 Apr 2024 01:47:44 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E9=81=A9=E5=BD=93=E3=81=AB=E3=83=87?= =?UTF-8?q?=E3=82=B6=E3=82=A4=E3=83=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/not-found.module.scss | 28 ++++++++++++++++++++++++++++ src/app/not-found.tsx | 14 ++++++++++++-- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 src/app/not-found.module.scss diff --git a/src/app/not-found.module.scss b/src/app/not-found.module.scss new file mode 100644 index 0000000..2ad4dc0 --- /dev/null +++ b/src/app/not-found.module.scss @@ -0,0 +1,28 @@ +@use 'src/app/variables'; + +.main { + padding-top: 72px; + background-color: variables.$background-color; +} + +.container { + display: flex; + flex-direction: column; + height: calc(100vh - 400px); + background-color: variables.$background-color; +} + +.box { + margin: 64px; + text-align: center; +} + +.text { + font-size: 24px; + font-weight: bold; +} + +.link { + font-size: 16px; + color: variables.$span-color; +} \ No newline at end of file diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 0af9ff8..f07adff 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -1,4 +1,6 @@ import type { Metadata } from 'next'; +import style from './not-found.module.scss'; +import Link from 'next/link'; export const metadata: Metadata = { title: '404 Not Found', @@ -6,8 +8,16 @@ export const metadata: Metadata = { export default function Custom404() { return ( -
-

404 - Page Not Found

+
+
+
+

404 - Page Not Found

+

お探しのページは見つかりませんでした

+ + トップページに戻る + +
+
); } From 57b8ff53a29faf7105808fac5973d1e05621a372 Mon Sep 17 00:00:00 2001 From: batora9 Date: Mon, 15 Apr 2024 01:47:58 +0900 Subject: [PATCH 2/2] format --- src/app/not-found.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index f07adff..b2aebbe 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -1,6 +1,6 @@ import type { Metadata } from 'next'; -import style from './not-found.module.scss'; import Link from 'next/link'; +import style from './not-found.module.scss'; export const metadata: Metadata = { title: '404 Not Found',