From 7e3384b85f00b5eb90039bf388afd38aaa34dcf3 Mon Sep 17 00:00:00 2001 From: HidemaruOwO Date: Tue, 28 Jan 2025 14:47:07 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20to=20be=20treated=20as=20a=20generi?= =?UTF-8?q?c=20web=20page=20(src/consts.ts,=20src/layouts/Layout.astro,=20?= =?UTF-8?q?src/pages...)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/consts.ts | 10 +++++++++- src/layouts/Layout.astro | 2 +- src/pages/index.astro | 25 +++++++++++++++++-------- 3 files changed, 27 insertions(+), 10 deletions(-) diff --git a/src/consts.ts b/src/consts.ts index da51087..9a0e38f 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -1,2 +1,10 @@ -export const DOMAIN = "mi.v-sli.me"; +export const DOMAIN = "ap.example.tld"; +export const TITLE = "インスタンスの墓標"; export const DESCRIPTION = `このインスタンスは閉鎖しました。"${DOMAIN}"を支えていただきありがとうございました。`; +export const MAIN_MESSAGE_LINE: string[] = [ + `このインスタンスは滅んでしまったようです。`, + `ここにあるのは、`, + `インスタンスの墓標です。`, +]; +export const NEXT_INSTANCE_URL = "https://new.example.tld"; +export const NEXT_INSTANCE_MESSAGE = "新しいインスタンスに進む"; diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7190152..e56114d 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,6 +1,6 @@ --- -const { title = "My Site" } = Astro.props; +const { title = "410 GONE", description = "410 GONE" } = Astro.props; import "../styles/globals.css"; --- diff --git a/src/pages/index.astro b/src/pages/index.astro index 9144e3b..bb4b264 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,12 +2,22 @@ import Layout from "../layouts/Layout.astro"; import { Icon } from "astro-icon/components"; import { Image } from "astro:assets"; -import { DESCRIPTION } from "../consts"; +import { + TITLE, + MAIN_MESSAGE_LINE, + DESCRIPTION, + NEXT_INSTANCE_MESSAGE, + NEXT_INSTANCE_URL, +} from "../consts"; + +const mainMessage: string = MAIN_MESSAGE_LINE.map((m, i) => + i < MAIN_MESSAGE_LINE.length - 1 ? `${m}
` : m, +).join(""); --- - + - ぷよすきーの墓標 + {TITLE}
@@ -26,9 +36,8 @@ import { DESCRIPTION } from "../consts"; >
- ぷよすきーは滅んでしまったようです。
ここにあるのは、
- ぷよすきーの墓標です。 + > +