// Base layout import Layout from "./components/Layout" // React Router etc. import React, { useState, useEffect } from 'react'; import { useRouter } from 'next/router' // i18n import { useTranslation, useLanguageQuery, LanguageSwitcher } from 'next-export-i18n'; // Next.js import Link from 'next/link' // Custom pages import Minecraft from './components/Minecraft' // Font Awesome import { faMap, faCopy } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' // React Markdown import ReactMarkdown from "react-markdown" import gfm from 'remark-gfm'; import ja from '../docs/minecraft/ja.md' import en from '../docs/minecraft/en.md' // next-seo import { NextSeo } from 'next-seo'; export default function About(props) { const { t } = useTranslation(); const [query] = useLanguageQuery(); // Copy server address to clipboard const copyText = () => { navigator.clipboard.writeText("yude.jp"); }; if (!query) { return

Loading...

} else { return ( <>

{t('title')}

Minecraft brief world map generated by Dynmap

{t('address')}: yude.jp

{t('version')}: 1.17

{/* Load markdown contents */} {query["lang"] === 'ja' ? ( {ja} ) : ( {en} )}
) } }