0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-22 20:20:09 +09:00

Update profile page

This commit is contained in:
yude 2021-02-08 17:40:13 +09:00
parent 11a925b0cc
commit b6d2174ea2
5 changed files with 70 additions and 6 deletions

View File

@ -1,3 +1,3 @@
{
"home": "Home"
}

View File

@ -1,3 +1,11 @@
{
"about": "About yude",
"desc": "Description",
"school": "Faculty of Information Science, Hiroshima City University. (1st grade)",
"location": "Hiroshima, Japan",
"link": "Links",
"link_all": "To see all of yude's account, please visit ",
"link_all_late": ".",
"here": "here",
"mail": "E-mail"
}

View File

@ -1,3 +1,3 @@
{
"home": "ホーム"
}

View File

@ -1,3 +1,11 @@
{
"about": "yude について",
"desc": "概要",
"school": "広島市立大学 情報科学部 1年",
"location": "日本, 広島県",
"link": "リンク",
"link_all": "yude が所持しているすべてのアカウントの一覧は、",
"link_all_late": "にあります。",
"here": "こちら",
"mail": "メール"
}

View File

@ -1,5 +1,9 @@
import Layout from "./components/Layout"
import Navbar from "./components/Navbar"
import useTranslation from 'next-translate/useTranslation'
import { faDiscord, faTwitter, faGithub, faKeybase, faInstagram } from '@fortawesome/free-brands-svg-icons'
import { faEnvelope, faBirthdayCake, faMapPin, faSchool } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import Link from 'next/link'
import Image from 'next/image'
@ -8,13 +12,57 @@ import { useRouter } from 'next/router'
export default function About(props) {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("profile")
const about = t('about')
const desc = t('desc')
const school = t('school')
const link = t('link')
const link_all = t('link_all')
const link_all_late = t('link_all_late')
const location = t('location')
const here = t('here')
const mail = t('mail')
return (
<Layout title="ホーム">
<Layout title={about}>
<Navbar />
<div className="my-9 mx-8">
<h1 className="text-left">yude について</h1>
{
// Heading
}
<div className="mb-5">
<p className="text-left text-4xl">{about}</p>
</div>
{
// Description
}
<div className="divide-y-2 divide-dashed">
<div><p className="text-left text-2xl">{desc}</p></div>
<div className="text-left">
<p><FontAwesomeIcon icon={faSchool} className="w-5 h-5 inline"/> {school}</p>
<p><FontAwesomeIcon icon={faMapPin} className="w-5 h-5 inline"/> {location}</p>
</div>
</div>
{
// Links
}
<div className="divide-y-2 divide-dashed">
<div><p className="text-left text-2xl">{link}</p></div>
<div className="text-left">
<p><FontAwesomeIcon icon={faTwitter} className="w-5 h-5 inline"/> Twitter: <Link href="https://twitter.com/yudejp"><a className="hover:underline">@yudejp</a></Link></p>
<p><FontAwesomeIcon icon={faDiscord} className="w-5 h-5 inline"/> Discord: <a className="hover:underline">yude#3205</a></p>
<p><FontAwesomeIcon icon={faEnvelope} className="w-5 h-5 inline"/> {mail}: <Link href="mailto:i@yude.jp"><a className="hover:underline">i@yude.jp</a></Link></p>
<p><FontAwesomeIcon icon={faGithub} className="w-5 h-5 inline"/> GitHub: <Link href="https://github.com/yudejp"><a className="hover:underline">yudejp</a></Link></p>
<p><FontAwesomeIcon icon={faKeybase} className="w-5 h-5 inline"/> Keybase: <Link href="https://keybase.io/yude"><a className="hover:underline">yude</a></Link></p>
<p><FontAwesomeIcon icon={faInstagram} className="w-5 h-5 inline"/> Instagram: <Link href="https://instagram.com/yude.jp"><a className="hover:underline">yude.jp</a></Link></p>
<p>{link_all}<Link href="https://wiki.yude.jp/links"><a className="hover:underline">{here}</a></Link>{link_all_late}</p>
</div>
</div>
</div>
</Layout>