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

Setup ToS page

This commit is contained in:
yude 2021-05-23 16:02:08 +09:00
parent 03ebe866f9
commit 540e012a11
Signed by: yude
GPG Key ID: EB0FE5D925C4A968

21
pages/tos.js Normal file
View File

@ -0,0 +1,21 @@
import Layout from "./components/Layout"
import useTranslation from 'next-translate/useTranslation'
import { useRouter } from 'next/router'
import React from "react"
import ReactMarkdown from "react-markdown"
import gfm from 'remark-gfm';
import input from '../docs/test.md'
export default function Tos(props) {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("tos")
const tos = t('tos')
return(
<Layout title={tos}>
<div className="mx-9">
<ReactMarkdown plugins={[gfm]} children={input} />
</div>
</Layout>
)
}