2021-02-06 02:38:26 +09:00
|
|
|
import Layout from "./components/Layout"
|
2021-02-06 10:38:30 +09:00
|
|
|
import Navbar from "./components/Navbar"
|
2021-02-06 02:31:04 +09:00
|
|
|
import Link from 'next/link'
|
2021-02-08 16:05:58 +09:00
|
|
|
import { ReactElement } from 'react'
|
2021-02-08 16:21:02 +09:00
|
|
|
import { faDiscord, faGit } from '@fortawesome/free-brands-svg-icons'
|
2021-02-08 16:43:48 +09:00
|
|
|
import { faBlog, faBook, faUser } from '@fortawesome/free-solid-svg-icons'
|
2021-02-08 16:05:58 +09:00
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
2021-02-06 02:31:04 +09:00
|
|
|
import Image from 'next/image'
|
2021-02-06 14:30:05 +09:00
|
|
|
import useTranslation from 'next-translate/useTranslation'
|
2021-02-06 14:05:36 +09:00
|
|
|
import { useRouter } from 'next/router'
|
2021-02-08 16:21:02 +09:00
|
|
|
|
2021-02-06 14:05:36 +09:00
|
|
|
export default function Index(props) {
|
2021-02-08 16:21:02 +09:00
|
|
|
|
|
|
|
// Translation
|
2021-02-06 14:05:36 +09:00
|
|
|
const router = useRouter()
|
|
|
|
const { locale, locales, defaultLocale, pathname } = router
|
2021-02-06 14:30:05 +09:00
|
|
|
const { t, lang } = useTranslation("index")
|
2021-02-07 17:40:43 +09:00
|
|
|
|
2021-02-06 14:05:36 +09:00
|
|
|
return (
|
2021-02-06 02:31:04 +09:00
|
|
|
|
|
|
|
<Layout title="ホーム">
|
2021-02-06 10:38:30 +09:00
|
|
|
<Navbar />
|
2021-02-06 09:36:00 +09:00
|
|
|
<div className="my-9">
|
2021-02-07 17:40:43 +09:00
|
|
|
<div class="m-10">
|
2021-02-08 16:05:58 +09:00
|
|
|
<Image
|
2021-02-06 02:46:15 +09:00
|
|
|
src = "/static/images/avatar.png"
|
|
|
|
alt = "yude's avatar"
|
|
|
|
width = {200}
|
|
|
|
height = {200}
|
|
|
|
unoptimized = {true}
|
2021-02-06 02:31:04 +09:00
|
|
|
/>
|
2021-02-07 17:40:43 +09:00
|
|
|
</div>
|
2021-02-08 16:43:48 +09:00
|
|
|
<span><Link href="/profile"><a><FontAwesomeIcon icon={faUser} className="w-10 h-10 inline"/></a></Link></span>
|
|
|
|
<span className="ml-4"><Link href="https://blog.yude.jp"><a><FontAwesomeIcon icon={faBlog} className="w-10 h-10 inline"/></a></Link></span>
|
2021-02-08 16:05:58 +09:00
|
|
|
<span className="ml-4"><Link href="https://wiki.yude.jp"><a><FontAwesomeIcon icon={faBook} className="w-10 h-10 inline"/></a></Link></span>
|
2021-02-08 16:21:02 +09:00
|
|
|
<span className="ml-4"><Link href="https://discord.gg/X6srY7X"><a><FontAwesomeIcon icon={faDiscord} className="w-10 h-10 inline"/></a></Link></span>
|
|
|
|
<span className="ml-4"><Link href="https://git.yude.jp"><a><FontAwesomeIcon icon={faGit} className="w-10 h-10 inline"/></a></Link></span>
|
|
|
|
|
2021-02-08 16:05:58 +09:00
|
|
|
<p></p>
|
2021-02-06 02:31:04 +09:00
|
|
|
</div>
|
2021-02-06 09:36:00 +09:00
|
|
|
|
2021-02-06 02:31:04 +09:00
|
|
|
</Layout>
|
|
|
|
)
|
2021-02-06 14:05:36 +09:00
|
|
|
}
|