0
0
Fork 0

ようこそページの大改修

This commit is contained in:
xeltica 2021-10-08 01:01:16 +09:00
parent 4ca11b55b8
commit 0c971c3dc8
2 changed files with 48 additions and 22 deletions

View file

@ -1,7 +1,7 @@
{ {
"title": "Misskey Tools", "title": "Misskey Tools",
"description1": "Misskeyは楽しいものです。気がついたら1日中入り浸っていることも多いでしょう。", "description1": "Misskeyをもっと効果的に。様々な機能を持ったオールインワンツール。",
"description2": "さあ、今すぐMisskey Toolsをインストールして、あなたの活動を把握しよう。", "description2": "お使いのインスタンスURLを入力して、今すぐMisskey Toolsを使おう",
"notes": "ノート", "notes": "ノート",
"following": "フォロー", "following": "フォロー",
"followers": "フォロワー", "followers": "フォロワー",
@ -48,6 +48,15 @@
"pattern5": "息するように Misskey、そんなあなたへ。", "pattern5": "息するように Misskey、そんなあなたへ。",
"pattern6": "あなたは真の Misskey 廃人ですか?" "pattern6": "あなたは真の Misskey 廃人ですか?"
}, },
"_welcome": {
"title": "プロ仕様のツールキット",
"description": "Misskey Toolsでは、Misskeyのために設計された、Misskeyをより楽しめるツールを取り揃えています。",
"misshaiAlertTitle": "ミス廃アラート",
"misshaiAlertDescription": "Misskeyにのめり込んでいませんかミス廃アラートを使えば、毎日のMisskeyでの活動量を以下のように定期投稿できます。",
"misshaiRankingDescription": "ミス廃ランキングでは、Misskeyでの活動を数値化し、ランキング表示します。",
"nextFeaturesTitle": "今後も追加予定。",
"nextFeaturesDescription": "これだけではありません。今後もアップデートで様々な機能を追加します!"
},
"_nav": { "_nav": {
"data": "データ", "data": "データ",
"ranking": "ランキング", "ranking": "ランキング",
@ -62,7 +71,8 @@
"dataScore": "スコア", "dataScore": "スコア",
"dataDelta": "前日比", "dataDelta": "前日比",
"rating": "レート", "rating": "レート",
"order": "順位" "order": "順位",
"showRanking": "ランキングを見る"
}, },
"_developerInfo": { "_developerInfo": {
"title": "開発者", "title": "開発者",

View file

@ -1,16 +1,23 @@
import React from 'react'; import React, { useMemo } from 'react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { Ranking } from '../components/Ranking';
import { LoginForm } from '../components/LoginForm'; import { LoginForm } from '../components/LoginForm';
import { DeveloperInfo } from '../components/DeveloperInfo';
import { HashtagTimeline } from '../components/HashtagTimeline';
import { Header } from '../components/Header'; import { Header } from '../components/Header';
export const IndexWelcomePage: React.VFC = () => { export const IndexWelcomePage: React.VFC = () => {
const {t} = useTranslation(); 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 ( return (
<> <>
<Header> <Header>
@ -20,20 +27,29 @@ export const IndexWelcomePage: React.VFC = () => {
</article> </article>
<LoginForm /> <LoginForm />
</Header> </Header>
<article className="xarticle card ghost"> <article className="xarticle vstack pa-2">
<div className="body"> <header>
<h1 className="mb-1">{t('_missHai.ranking')}</h1> <h2>{t('_welcome.title')}</h2>
<Ranking limit={10} /> <p>{t('_welcome.description')}</p>
<Link to="/ranking">{t('_missHai.showAll')}</Link> </header>
</div> <article>
</article> <h3>{t('_welcome.misshaiAlertTitle')}</h3>
<article className="xarticle mt-4 row"> <p>{t('_welcome.misshaiAlertDescription')}</p>
<div className="col-12 pc-6 card ghost"> <div className="card ma-2 shadow-2" style={{maxWidth: 320}}>
<div className="body"><DeveloperInfo/></div> <div className="body">
</div> <pre>{example}</pre>
<div className="col-12 pc-6 card ghost"> </div>
<div className="body"><HashtagTimeline hashtag="misshaialert"/></div> </div>
</div> </article>
<article>
<h3 className="mb-1">{t('_missHai.ranking')}</h3>
<p>{t('_welcome.misshaiRankingDescription')}</p>
<Link to="/ranking">{t('_missHai.showRanking')}</Link>
</article>
<article>
<h3>{t('_welcome.nextFeaturesTitle')}</h3>
<p>{t('_welcome.nextFeaturesDescription')}</p>
</article>
</article> </article>
</> </>
); );