2021-08-14 10:12:22 +09:00
|
|
|
// Base layout
|
2021-06-15 07:15:32 +09:00
|
|
|
import Layout from "./components/Layout"
|
2021-08-14 10:12:22 +09:00
|
|
|
|
|
|
|
// i18n
|
2021-12-11 18:07:22 +09:00
|
|
|
import { useTranslation, useLanguageQuery, LanguageSwitcher } from 'next-export-i18n';
|
2021-08-14 10:12:22 +09:00
|
|
|
|
|
|
|
// React Router etc.
|
2021-06-15 07:15:32 +09:00
|
|
|
import { useRouter } from 'next/router'
|
|
|
|
import React from "react"
|
2021-08-14 10:12:22 +09:00
|
|
|
|
|
|
|
// React Markdown
|
2021-06-15 07:15:32 +09:00
|
|
|
import ReactMarkdown from "react-markdown"
|
|
|
|
import gfm from 'remark-gfm';
|
|
|
|
import ja from '../docs/mutual/ja.md'
|
|
|
|
import en from '../docs/mutual/en.md'
|
|
|
|
|
2021-08-14 10:12:22 +09:00
|
|
|
// next-seo
|
|
|
|
import { NextSeo } from 'next-seo';
|
|
|
|
|
2021-06-15 07:15:32 +09:00
|
|
|
export default function Tos(props) {
|
2021-12-11 18:55:57 +09:00
|
|
|
const { t } = useTranslation();
|
|
|
|
const [query] = useLanguageQuery();
|
|
|
|
|
|
|
|
if (!query) {
|
|
|
|
return <p>Loading...</p>
|
|
|
|
} else {
|
2021-06-15 07:15:32 +09:00
|
|
|
return(
|
2021-08-14 10:12:22 +09:00
|
|
|
<>
|
|
|
|
<NextSeo
|
|
|
|
title="相互リンク"
|
|
|
|
description="yude.jp と相互にリンクを貼っている Web サイトの一覧"
|
|
|
|
/>
|
|
|
|
<Layout title={t('common:mutual')}>
|
|
|
|
<div>
|
2021-12-11 18:55:57 +09:00
|
|
|
{query["lang"] === 'ja' ? (
|
2021-09-22 07:43:10 +09:00
|
|
|
<ReactMarkdown plugins={[gfm]}>
|
|
|
|
{ja}
|
|
|
|
</ReactMarkdown>
|
2021-08-14 10:12:22 +09:00
|
|
|
) : (
|
2021-09-22 07:43:10 +09:00
|
|
|
<ReactMarkdown plugins={[gfm]}>
|
|
|
|
{en}
|
|
|
|
</ReactMarkdown>
|
2021-08-14 10:12:22 +09:00
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</Layout>
|
|
|
|
</>
|
2021-06-15 07:15:32 +09:00
|
|
|
)
|
2021-12-11 18:55:57 +09:00
|
|
|
}
|
2021-06-15 07:15:32 +09:00
|
|
|
}
|