0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-22 20:20:09 +09:00

Preferable language switch on ToS page

This commit is contained in:
yude 2021-05-27 10:26:11 +09:00
parent 12408fbc52
commit 2e4456cb91
Signed by: yude
GPG Key ID: EB0FE5D925C4A968
5 changed files with 30 additions and 24 deletions

19
docs/tos/en.md Normal file
View File

@ -0,0 +1,19 @@
# yude.jp Terms of Service
The following ToS apply to services running under the yude.jp domain.
## About service operation
Our services are run by yude for experimental purposes and there's no guarantee on them.\
Those may be suspended temporarily or permanently (e.g. for server maintenance) without any announcement.
## Prohibited actions
The actions listed below are prohibited on the service running under the yude.jp domain (especially on Mastodon instance).\
Our administrator or moderator may take some action against the violating user's account.
* Post images or movies for adults, or grotesque
* Violent language that deviates from common sense
* Chat spamming
* Cracking our server(s)
* Actions that the administrator or moderator deems inappropriate
In addition, the laws of Japan, where the server is running, apply.
## Misc
These ToS may be updated by the administrator without any announcement, but we will always notify you with in the Mastodon instance ([mstdn.yude.jp](https://mstdn.yude.jp)) or on our Twitter account ([@yudejp](https://twitter.com/yudejp) or [@yude_jp](https://twitter.com/yude_jp)).

View File

@ -16,23 +16,3 @@ yude が実験的に運用しており、完全に無保証で提供されるも
## その他 ## その他
この利用規約は管理者が利用者に対して了承を得ず更新することができますが、その際には必ず通知を Mastodon インスタンス内、または Twitter 上 ([@yudejp](https://twitter.com/yudejp) または [@yude_jp](https://twitter.com/yude_jp)) において行うものとします。 この利用規約は管理者が利用者に対して了承を得ず更新することができますが、その際には必ず通知を Mastodon インスタンス内、または Twitter 上 ([@yudejp](https://twitter.com/yudejp) または [@yude_jp](https://twitter.com/yude_jp)) において行うものとします。
# yude.jp Terms of Service
The following ToS apply to services running under the yude.jp domain.
## About service operation
Our services are run by yude for experimental purposes and there's no guarantee on them.\
Those may be suspended temporarily or permanently (e.g. for server maintenance) without any announcement.
## Prohibited actions
The actions listed below are prohibited on the service running under the yude.jp domain (especially on Mastodon instance).\
Our administrator or moderator may take some action against the violating user's account.
* Post images or movies for adults, or grotesque
* Violent language that deviates from common sense
* Chat spamming
* Cracking our server(s)
* Actions that the administrator or moderator deems inappropriate
In addition, the laws of Japan, where the server is running, apply.
## Misc
These ToS may be updated by the administrator without any announcement, but we will always notify you with in the Mastodon instance ([mstdn.yude.jp](https://mstdn.yude.jp)) or on our Twitter account ([@yudejp](https://twitter.com/yudejp) or [@yude_jp](https://twitter.com/yude_jp)).

View File

@ -1,3 +1,4 @@
{ {
"tos": "yude.jp Terms of Service" "tos": "yude.jp Terms of Service",
"input": "en"
} }

View File

@ -1,3 +1,4 @@
{ {
"tos": "yude.jp サービス利用規約" "tos": "yude.jp サービス利用規約",
"input": "ja"
} }

View File

@ -4,7 +4,8 @@ import { useRouter } from 'next/router'
import React from "react" import React from "react"
import ReactMarkdown from "react-markdown" import ReactMarkdown from "react-markdown"
import gfm from 'remark-gfm'; import gfm from 'remark-gfm';
import input from '../docs/tos.md' import ja from '../docs/tos/ja.md'
import en from '../docs/tos/en.md'
export default function Tos(props) { export default function Tos(props) {
const router = useRouter() const router = useRouter()
@ -14,7 +15,11 @@ export default function Tos(props) {
return( return(
<Layout title={tos}> <Layout title={tos}>
<div> <div>
<ReactMarkdown plugins={[gfm]} children={input} /> {lang === 'ja' ? (
<ReactMarkdown plugins={[gfm]} children={ja} />
) : (
<ReactMarkdown plugins={[gfm]} children={en} />
)}
</div> </div>
</Layout> </Layout>
) )