mirror of
https://github.com/yude-jp/yude.jp
synced 2025-01-10 05:20:10 +09:00
Add comments, icons
This commit is contained in:
parent
dc6a7cb1dd
commit
921a584397
@ -2,17 +2,20 @@ import Layout from "./components/Layout"
|
||||
import Navbar from "./components/Navbar"
|
||||
import Link from 'next/link'
|
||||
import { ReactElement } from 'react'
|
||||
import { faCoffee } from '@fortawesome/free-brands-svg-icons'
|
||||
import { faDiscord, faGit } from '@fortawesome/free-brands-svg-icons'
|
||||
import { faBlog, faBook } from '@fortawesome/free-solid-svg-icons'
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import Image from 'next/image'
|
||||
import useTranslation from 'next-translate/useTranslation'
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
export default function Index(props) {
|
||||
|
||||
// Translation
|
||||
const router = useRouter()
|
||||
const { locale, locales, defaultLocale, pathname } = router
|
||||
|
||||
const { t, lang } = useTranslation("index")
|
||||
// Define translation objects
|
||||
const welcome = t('welcome')
|
||||
const instead_1 = t('instead_1')
|
||||
const instead_2 = t('instead_2')
|
||||
@ -33,6 +36,8 @@ export default function Index(props) {
|
||||
</div>
|
||||
<span><Link href="https://blog.yude.jp"><a><FontAwesomeIcon icon={faBlog} className="w-10 h-10 inline"/></a></Link></span>
|
||||
<span className="ml-4"><Link href="https://wiki.yude.jp"><a><FontAwesomeIcon icon={faBook} className="w-10 h-10 inline"/></a></Link></span>
|
||||
<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>
|
||||
|
||||
<p></p>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user