diff --git a/pages/minecraft.js b/pages/minecraft.js index 217e01a..7654bdc 100644 --- a/pages/minecraft.js +++ b/pages/minecraft.js @@ -1,12 +1,25 @@ -import React, { useState, useEffect } from 'react'; +// Base layout import Layout from "./components/Layout" -import useTranslation from 'next-translate/useTranslation' + +// React Router etc. +import React, { useState, useEffect } from 'react'; import { useRouter } from 'next/router' -import Minecraft from './components/Minecraft' + +// i18n +import useTranslation from 'next-translate/useTranslation' + +// Next.js import Image from 'next/image' +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' -import Link from 'next/link' + +// React Markdown import ReactMarkdown from "react-markdown" import gfm from 'remark-gfm'; import ja from '../docs/minecraft/ja.md' @@ -14,14 +27,19 @@ import en from '../docs/minecraft/en.md' export default function About(props) { const router = useRouter() + + // i18n const { locale, locales, defaultLocale, pathname } = router const { t, lang } = useTranslation("minecraft") + + // Copy server address to clipboard const copyText = () => { navigator.clipboard.writeText("yude.jp"); }; return ( +

{t('title')}

@@ -33,6 +51,7 @@ export default function About(props) { height = {619} />
+

@@ -45,19 +64,21 @@ export default function About(props) {

+

{t('version')}: 1.17

+ - - - - + + + +
+ {/* Load markdown contents */} {lang === 'ja' ? ( ) : (