From 2cac0cfe1a46c789eea5761aa9e5f202a3f0b0c8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 13 Aug 2023 12:06:52 +0900 Subject: [PATCH] wip --- locales/index.d.ts | 1 + locales/ja-JP.yml | 1 + packages/frontend/src/pages/announcements.vue | 52 ++++++++++--------- .../src/ui/_common_/announcements.vue | 5 +- 4 files changed, 34 insertions(+), 25 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index ad380c0ce7..b7d670836f 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -1103,6 +1103,7 @@ export interface Locale { "forYou": string; "currentAnnouncements": string; "pastAnnouncements": string; + "youHaveUnreadAnnouncements": string; "_announcement": { "forExistingUsers": string; "forExistingUsersDescription": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 1a7731e483..dba4b4247a 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1100,6 +1100,7 @@ icon: "アイコン" forYou: "あなたへ" currentAnnouncements: "現在のお知らせ" pastAnnouncements: "過去のお知らせ" +youHaveUnreadAnnouncements: "未読のお知らせがあります。" _announcement: forExistingUsers: "既存ユーザーのみ" diff --git a/packages/frontend/src/pages/announcements.vue b/packages/frontend/src/pages/announcements.vue index 1f7c28d2bf..7b61e66ddd 100644 --- a/packages/frontend/src/pages/announcements.vue +++ b/packages/frontend/src/pages/announcements.vue @@ -7,31 +7,34 @@ SPDX-License-Identifier: AGPL-3.0-only - -
-
{{ i18n.ts.forYou }}
-
- 🆕 - - - - - - - {{ announcement.title }} -
-
- - -
- +
+ {{ i18n.ts.youHaveUnreadAnnouncements }} + +
+
{{ i18n.ts.forYou }}
+
+ 🆕 + + + + + + + {{ announcement.title }}
-
-
- {{ i18n.ts.gotIt }} -
-
-
+
+ + +
+ +
+
+
+ {{ i18n.ts.gotIt }} +
+ + +
@@ -40,6 +43,7 @@ SPDX-License-Identifier: AGPL-3.0-only import { ref } from 'vue'; import MkPagination from '@/components/MkPagination.vue'; import MkButton from '@/components/MkButton.vue'; +import MkInfo from '@/components/MkInfo.vue'; import * as os from '@/os'; import { i18n } from '@/i18n'; import { definePageMetadata } from '@/scripts/page-metadata'; diff --git a/packages/frontend/src/ui/_common_/announcements.vue b/packages/frontend/src/ui/_common_/announcements.vue index 61e5f48029..cd8b4e5275 100644 --- a/packages/frontend/src/ui/_common_/announcements.vue +++ b/packages/frontend/src/ui/_common_/announcements.vue @@ -6,7 +6,10 @@ SPDX-License-Identifier: AGPL-3.0-only