diff --git a/README.md b/README.md index ef3ba6a..b6de5e1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Next JS TailwindCSS\ Source code of [yude.jp](https://yude.jp).\ -Built with [Next.js](https://nextjs.org/) and [Tailwind CSS](https://tailwindcss.com/) and deployed on [Vercel](https://vercel.com). +Built with [Next.js](https://nextjs.org/) and [Tailwind CSS](https://tailwindcss.com/) and deployed to [Cloudflare Pages](https://pages.cloudflare.com/). ## Development 1. Run `yarn` to install dependencies. diff --git a/docs/services/en.md b/docs/services/en.md new file mode 100644 index 0000000..733dabf --- /dev/null +++ b/docs/services/en.md @@ -0,0 +1,23 @@ +# Available services on yude.jp + +## Softwares +* [AutoMuteUs](https://github.com/denverquane/automuteus)\ +Among Us helper; API: [`galactus.yude.jp`](https://galactus.yude.jp) +* [Nextcloud](https://nc.yude.jp) +* [Mastodon](https://mstdn.yude.jp) +* [Misskey](https://misskey.yude.jp) +* [Pleroma](https//pleroma.yude.jp) +* TeamSpeak 3: `yude.jp` +* [Gitea](https://git.yude.jp) +* [h5ai](https://files.yude.jp) +* [JMusicBot (forked)](https://discord.com/oauth2/authorize?client_id=429638220456656896&scope=bot&permissions=338963472) +* [Owncast](https://live.yude.jp) +* [Minecraft Server](https://yude.jp/minecraft) + +## Anonymous communication +### Tor +* Relay: [yudejp] +* Hidden Service: [yude3mzscyufx5u3zup72ium7tgecy3bd67p7t6vqhaywvr7e2gqpcqd.onion](yude3mzscyufx5u3zup72ium7tgecy3bd67p7t6vqhaywvr7e2gqpcqd.onion) + +### I2P +* Hidden Service: [yudejp.i2p/?i2paddresshelper=55ivoba6mo3mqlwvw5lqz7lchxqew2kh77kwkn5shefrj2dp3coq.b32.i2p](yudejp.i2p/?i2paddresshelper=55ivoba6mo3mqlwvw5lqz7lchxqew2kh77kwkn5shefrj2dp3coq.b32.i2p) \ No newline at end of file diff --git a/docs/services/ja.md b/docs/services/ja.md new file mode 100644 index 0000000..31af7e2 --- /dev/null +++ b/docs/services/ja.md @@ -0,0 +1,23 @@ +# yude.jp で運用中のサービス + +## ソフトウェア +* [AutoMuteUs](https://github.com/denverquane/automuteus)\ +Among Us の自動ミュートボット; API: [`galactus.yude.jp`](https://galactus.yude.jp) +* [Nextcloud](https://nc.yude.jp) +* [Mastodon](https://mstdn.yude.jp) +* [Misskey](https://misskey.yude.jp) +* [Pleroma](https//pleroma.yude.jp) +* TeamSpeak 3: `yude.jp` +* [Gitea](https://git.yude.jp) +* [h5ai](https://files.yude.jp) +* [JMusicBot (フォーク)](https://discord.com/oauth2/authorize?client_id=429638220456656896&scope=bot&permissions=338963472) +* [Owncast](https://live.yude.jp) +* [Minecraft サーバー](https://yude.jp/minecraft) + +## 秘匿化ネットワーク +### Tor +* リレー: [yudejp] +* Hidden Service: [yude3mzscyufx5u3zup72ium7tgecy3bd67p7t6vqhaywvr7e2gqpcqd.onion](yude3mzscyufx5u3zup72ium7tgecy3bd67p7t6vqhaywvr7e2gqpcqd.onion) + +### I2P +* Hidden Service: [yudejp.i2p/?i2paddresshelper=55ivoba6mo3mqlwvw5lqz7lchxqew2kh77kwkn5shefrj2dp3coq.b32.i2p](yudejp.i2p/?i2paddresshelper=55ivoba6mo3mqlwvw5lqz7lchxqew2kh77kwkn5shefrj2dp3coq.b32.i2p) \ No newline at end of file diff --git a/i18n/translations.en.json b/i18n/translations.en.json index 147d8ef..f324c7b 100644 --- a/i18n/translations.en.json +++ b/i18n/translations.en.json @@ -60,5 +60,8 @@ "service": "Service", "shape": "Shape", "tos": "yude.jp Terms of Service", - "input": "en" + "input": "en", + "services": "Services", + "contents": "Contents", + "Blog": "Weblog" } \ No newline at end of file diff --git a/i18n/translations.ja.json b/i18n/translations.ja.json index 08ac0dc..7d258bd 100644 --- a/i18n/translations.ja.json +++ b/i18n/translations.ja.json @@ -60,5 +60,8 @@ "service": "サービス", "shape": "シェイプ", "tos": "yude.jp サービス利用規約", - "input": "ja" + "input": "ja", + "services": "サービス", + "contents": "コンテンツ", + "blog": "ブログ" } \ No newline at end of file diff --git a/pages/components/Footer/Footer.js b/pages/components/Footer/Footer.js index b20ab5c..63124a6 100644 --- a/pages/components/Footer/Footer.js +++ b/pages/components/Footer/Footer.js @@ -18,17 +18,6 @@ export default function Footer(props) {

{t('footer')} / {t('source')}

-

- - Tor - - -  ⚫  - - - I2P - -

diff --git a/pages/index.js b/pages/index.js index 12a3785..a486d19 100644 --- a/pages/index.js +++ b/pages/index.js @@ -18,7 +18,7 @@ import MinecraftMenu from "./components/Menu/MinecraftMenu" // Font Awesome import { faDiscord, faGit, faGithub } from '@fortawesome/free-brands-svg-icons' -import { faBook, faUser, faServer, faHouseUser, faHeart } from '@fortawesome/free-solid-svg-icons' +import { faBook, faUser, faServer, faScrewdriver, faHeart } from '@fortawesome/free-solid-svg-icons' export default function Index(props) { const { t } = useTranslation(); @@ -45,11 +45,10 @@ export default function Index(props) {
- - - - - + + + +
diff --git a/pages/minecraft.js b/pages/minecraft.js index c877d98..f3daf27 100644 --- a/pages/minecraft.js +++ b/pages/minecraft.js @@ -71,7 +71,7 @@ export default function About(props) {

-

{t('version')}: 1.17

+

{t('version')}: 1.18.1

diff --git a/pages/mutual.js b/pages/mutual.js index 8bb4916..9fe6085 100644 --- a/pages/mutual.js +++ b/pages/mutual.js @@ -30,7 +30,7 @@ export default function Tos(props) { title="相互リンク" description="yude.jp と相互にリンクを貼っている Web サイトの一覧" /> - +
{query["lang"] === 'ja' ? ( diff --git a/pages/profile.js b/pages/profile.js index e435a64..cca6acf 100644 --- a/pages/profile.js +++ b/pages/profile.js @@ -6,7 +6,7 @@ import { useTranslation, useLanguageQuery } from 'next-export-i18n'; // Font Awesome import { faDiscord, faTwitter, faGithub, faKeybase, faInstagram, faMastodon, faSteam, faAmazon } from '@fortawesome/free-brands-svg-icons' -import { faEnvelope, faBirthdayCake, faMapPin, faSchool, faPhone, faInfo, faLink, faMobile } from '@fortawesome/free-solid-svg-icons' +import { faEnvelope, faBirthdayCake, faMapPin, faSchool, faPhone, faBlog, faBookDead, faInfo, faBookmark, faLink, faMobile } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' // Next.js, React @@ -86,6 +86,19 @@ export default function Profile(props) {

{t('hiroshima')}

+ + { + // Contents + } +
+
+

{t('contents')}

+
+
+ + +
+
{ // Contact diff --git a/pages/services.js b/pages/services.js new file mode 100644 index 0000000..100264c --- /dev/null +++ b/pages/services.js @@ -0,0 +1,49 @@ +// Base layout +import Layout from "./components/Layout" + +// i18n +import { useTranslation, useLanguageQuery, LanguageSwitcher } from 'next-export-i18n'; + +// React Router etc. +import { useRouter } from 'next/router' +import React from "react" + +// React Markdown +import ReactMarkdown from "react-markdown" +import gfm from 'remark-gfm'; +import ja from '../docs/services/ja.md' +import en from '../docs/services/en.md' + +// next-seo +import { NextSeo } from 'next-seo'; + +export default function Tos(props) { + const { t } = useTranslation(); + const [query] = useLanguageQuery(); + + if (!query) { + return

Loading...

+ } else { + return( + <> + + +
+ {query["lang"] === 'ja' ? ( + + {ja} + + ) : ( + + {en} + + )} +
+
+ + ) + } + } \ No newline at end of file