From 0c971c3dc84939514c894e69f5ece3e5191f0917 Mon Sep 17 00:00:00 2001 From: xeltica Date: Fri, 8 Oct 2021 01:01:16 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=93=E3=81=9D=E3=83=9A?= =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=81=AE=E5=A4=A7=E6=94=B9=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/langs/ja-JP.json | 16 +++++++-- src/frontend/pages/index.welcome.tsx | 54 ++++++++++++++++++---------- 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/src/frontend/langs/ja-JP.json b/src/frontend/langs/ja-JP.json index 8f203f7..bc82fd6 100644 --- a/src/frontend/langs/ja-JP.json +++ b/src/frontend/langs/ja-JP.json @@ -1,7 +1,7 @@ { "title": "Misskey Tools", - "description1": "Misskeyは楽しいものです。気がついたら1日中入り浸っていることも多いでしょう。", - "description2": "さあ、今すぐMisskey Toolsをインストールして、あなたの活動を把握しよう。", + "description1": "Misskeyをもっと効果的に。様々な機能を持ったオールインワンツール。", + "description2": "お使いのインスタンスURLを入力して、今すぐMisskey Toolsを使おう!", "notes": "ノート", "following": "フォロー", "followers": "フォロワー", @@ -48,6 +48,15 @@ "pattern5": "息するように Misskey、そんなあなたへ。", "pattern6": "あなたは真の Misskey 廃人ですか?" }, + "_welcome": { + "title": "プロ仕様のツールキット", + "description": "Misskey Toolsでは、Misskeyのために設計された、Misskeyをより楽しめるツールを取り揃えています。", + "misshaiAlertTitle": "ミス廃アラート", + "misshaiAlertDescription": "Misskeyにのめり込んでいませんか?ミス廃アラートを使えば、毎日のMisskeyでの活動量を以下のように定期投稿できます。", + "misshaiRankingDescription": "ミス廃ランキングでは、Misskeyでの活動を数値化し、ランキング表示します。", + "nextFeaturesTitle": "今後も追加予定。", + "nextFeaturesDescription": "これだけではありません。今後もアップデートで様々な機能を追加します!" + }, "_nav": { "data": "データ", "ranking": "ランキング", @@ -62,7 +71,8 @@ "dataScore": "スコア", "dataDelta": "前日比", "rating": "レート", - "order": "順位" + "order": "順位", + "showRanking": "ランキングを見る" }, "_developerInfo": { "title": "開発者", diff --git a/src/frontend/pages/index.welcome.tsx b/src/frontend/pages/index.welcome.tsx index f9a61b3..aa0a739 100644 --- a/src/frontend/pages/index.welcome.tsx +++ b/src/frontend/pages/index.welcome.tsx @@ -1,16 +1,23 @@ -import React from 'react'; +import React, { useMemo } from 'react'; import { Link } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { Ranking } from '../components/Ranking'; import { LoginForm } from '../components/LoginForm'; -import { DeveloperInfo } from '../components/DeveloperInfo'; -import { HashtagTimeline } from '../components/HashtagTimeline'; import { Header } from '../components/Header'; - export const IndexWelcomePage: React.VFC = () => { const {t} = useTranslation(); + const example = useMemo(() => ( + t('_template.default') + .replace('{notesCount}', '32000') + .replace('{notesDelta}', '+190') + .replace('{followingCount}', '510') + .replace('{followingDelta}', '+3') + .replace('{followersCount}', '1020') + .replace('{followersDelta}', '-1') + .replace('{url}', 'https://misskey.tools') + ), []); + return ( <>
@@ -20,20 +27,29 @@ export const IndexWelcomePage: React.VFC = () => {
-
-
-

{t('_missHai.ranking')}

- - {t('_missHai.showAll')} -
-
-
-
-
-
-
-
-
+
+
+

{t('_welcome.title')}

+

{t('_welcome.description')}

+
+
+

{t('_welcome.misshaiAlertTitle')}

+

{t('_welcome.misshaiAlertDescription')}

+
+
+
{example}
+
+
+
+
+

{t('_missHai.ranking')}

+

{t('_welcome.misshaiRankingDescription')}

+ {t('_missHai.showRanking')} +
+
+

{t('_welcome.nextFeaturesTitle')}

+

{t('_welcome.nextFeaturesDescription')}

+
);