mirror of
https://github.com/yude-jp/yude.jp
synced 2024-12-22 20:20:09 +09:00
63 lines
2.1 KiB
JavaScript
63 lines
2.1 KiB
JavaScript
// Load base layout
|
|
import Layout from "./components/Layout"
|
|
// Menu
|
|
import FontAwesomeMenu from "./components/Menu/FontAwesomeMenu"
|
|
// Banner
|
|
import BlueRibbon from "./components/Footer/BlueRibbon"
|
|
import HappyBusy from "./components/Footer/HappyBusy"
|
|
// Next.js
|
|
import Link from 'next/link'
|
|
import Image from 'next/image'
|
|
// i18n
|
|
import useTranslation from 'next-translate/useTranslation'
|
|
// React Router
|
|
import { useRouter } from 'next/router'
|
|
import MinecraftMenu from "./components/Menu/MinecraftMenu"
|
|
// Font Awesome
|
|
import { faDiscord, faGit, faMastodon, faGithub } from '@fortawesome/free-brands-svg-icons'
|
|
import { faBlog, faBook, faUser, faServer, faHouseUser, faHeart, faHome } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
|
|
export default function Index(props) {
|
|
const router = useRouter()
|
|
const { locale, locales, defaultLocale, pathname } = router
|
|
const { t, lang } = useTranslation("index")
|
|
|
|
return (
|
|
<Layout title={t('home')}>
|
|
<div className="my-9 text-center">
|
|
<div className="m-10">
|
|
<Image
|
|
src = "/images/avatar.png"
|
|
alt = "yude's avatar"
|
|
width = {200}
|
|
height = {200}
|
|
unoptimized = {true}
|
|
/>
|
|
</div>
|
|
|
|
{/* Index menu */}
|
|
<div className="grid grid-cols-4 gap-10">
|
|
<FontAwesomeMenu dest="/profile" icon={faUser} />
|
|
<FontAwesomeMenu dest="/server" icon={faServer} />
|
|
<FontAwesomeMenu dest="/house" icon={faHouseUser} />
|
|
<FontAwesomeMenu dest="https://scrapbox.io/yude" icon={faBook} />
|
|
<FontAwesomeMenu dest="https://discord.gg/X6srY7X" icon={faDiscord} />
|
|
<FontAwesomeMenu dest="https://github.com/yudejp" icon={faGithub} />
|
|
<FontAwesomeMenu dest="https://git.yude.jp" icon={faGit} />
|
|
<FontAwesomeMenu dest="https://mstdn.yude.jp" icon={faMastodon} />
|
|
<MinecraftMenu />
|
|
<FontAwesomeMenu dest="/mutual" icon={faHeart} />
|
|
</div>
|
|
|
|
{/* Banner */}
|
|
<div className="mx-auto mt-10">
|
|
<BlueRibbon />
|
|
<HappyBusy />
|
|
</div>
|
|
|
|
</div>
|
|
</Layout>
|
|
)
|
|
}
|