From 4f00680312acf3eb8045c4f1d740e99fb4a09508 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Sun, 24 Sep 2023 19:43:14 +0900 Subject: [PATCH] (add) announcement --- README.md | 4 ++++ app.config.ts | 8 +++++++ components/index/hero/Left.vue | 21 +++++++++++++++++ types/misc.d.ts | 41 +++++++++++++++++++++++++++++++++- 4 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 app.config.ts diff --git a/README.md b/README.md index f006a5fb..ef637d92 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ Misskey website. Built with [Nuxt](https://nuxt.com/). +## お知らせの文言のいじり方 + +`app.config.ts` から指定できます。詳しい書き方はTypescriptの型補完に書いてあります + ## Setup Make sure to install the dependencies: diff --git a/app.config.ts b/app.config.ts new file mode 100644 index 00000000..9a9ad753 --- /dev/null +++ b/app.config.ts @@ -0,0 +1,8 @@ +export default defineAppConfig({ + notice: { + title: { + ja: "v2023.9.0 をリリースしました!", + }, + to: "/docs/releases/" + }, +}); \ No newline at end of file diff --git a/components/index/hero/Left.vue b/components/index/hero/Left.vue index 537c2e26..663dc70e 100644 --- a/components/index/hero/Left.vue +++ b/components/index/hero/Left.vue @@ -7,6 +7,16 @@
platform.🚀
{{ $t('_landing._hero.description') }}
+
+ +
+
+ +
+
{{ notice.title[locale] ?? notice.title.ja }}
+
+
+
{{ $t('_landing._hero.gettingStarted') }} {{ $t('learnMore') }} @@ -21,8 +31,15 @@