2021-02-08 16:43:48 +09:00
|
|
|
import Layout from "./components/Layout"
|
2021-02-08 17:40:13 +09:00
|
|
|
import useTranslation from 'next-translate/useTranslation'
|
2021-03-08 14:46:59 +09:00
|
|
|
import { faDiscord, faTwitter, faGithub, faKeybase, faInstagram, faMastodon, faSteam } from '@fortawesome/free-brands-svg-icons'
|
2021-05-28 07:24:07 +09:00
|
|
|
import { faEnvelope, faBirthdayCake, faMapPin, faSchool, faPhone, faInfo, faKey, faDownload, faEye, faUserClock } from '@fortawesome/free-solid-svg-icons'
|
2021-02-08 17:40:13 +09:00
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
2021-02-08 16:43:48 +09:00
|
|
|
import Link from 'next/link'
|
|
|
|
import Image from 'next/image'
|
2021-05-24 01:22:46 +09:00
|
|
|
import DiscordStatus from './components/DiscordStatus'
|
2021-02-08 16:43:48 +09:00
|
|
|
import { useRouter } from 'next/router'
|
2021-05-25 16:45:46 +09:00
|
|
|
import DiscordPlaying from './components/DiscordPlaying'
|
2021-02-08 16:43:48 +09:00
|
|
|
|
|
|
|
export default function About(props) {
|
|
|
|
const router = useRouter()
|
|
|
|
const { locale, locales, defaultLocale, pathname } = router
|
2021-02-08 17:40:13 +09:00
|
|
|
const { t, lang } = useTranslation("profile")
|
|
|
|
const about = t('about')
|
|
|
|
const desc = t('desc')
|
|
|
|
const school = t('school')
|
2021-02-21 16:54:51 +09:00
|
|
|
const contact = t('contact')
|
2021-02-08 17:40:13 +09:00
|
|
|
const location = t('location')
|
2021-02-21 16:54:51 +09:00
|
|
|
const belongs = t('belongs')
|
|
|
|
const hiroshima = t('hiroshima')
|
|
|
|
const birth = t('birth')
|
|
|
|
const date = t('date')
|
|
|
|
const more = t('more')
|
2021-02-21 17:22:54 +09:00
|
|
|
const grade = t('grade')
|
|
|
|
const icon_1 = t('icon_1')
|
|
|
|
const icon_2 = t('icon_2')
|
2021-03-08 14:46:59 +09:00
|
|
|
const keys = t('keys')
|
|
|
|
const download = t('download')
|
|
|
|
const fingerprint = t('fingerprint')
|
|
|
|
const view = t('view')
|
|
|
|
|
2021-02-08 16:43:48 +09:00
|
|
|
return (
|
|
|
|
|
2021-02-08 17:40:13 +09:00
|
|
|
<Layout title={about}>
|
2021-05-26 08:01:02 +09:00
|
|
|
<div className="text-center">
|
2021-02-21 16:54:51 +09:00
|
|
|
|
2021-02-08 17:40:13 +09:00
|
|
|
{
|
|
|
|
// Heading
|
|
|
|
}
|
2021-05-26 08:03:22 +09:00
|
|
|
<div className="flex justify-center">
|
2021-02-21 16:54:51 +09:00
|
|
|
<div>
|
2021-05-27 23:33:14 +09:00
|
|
|
<div className="z-50 transform translate-x-40 translate-y-48 w-5">
|
2021-05-24 01:22:46 +09:00
|
|
|
<DiscordStatus />
|
|
|
|
</div>
|
2021-02-21 16:54:51 +09:00
|
|
|
<Image
|
2021-05-24 01:22:46 +09:00
|
|
|
className = "object-contain rounded-full hover:animate-rumble z-0"
|
2021-02-21 16:54:51 +09:00
|
|
|
src = "/static/images/avatar.png"
|
|
|
|
alt = "yude's avatar"
|
|
|
|
width = {200}
|
|
|
|
height = {200}
|
|
|
|
unoptimized = {true}
|
|
|
|
/>
|
2021-05-24 01:22:46 +09:00
|
|
|
|
2021-05-26 07:53:02 +09:00
|
|
|
<p className="text-4xl subpixel-antialiased">yude</p>
|
2021-05-25 16:45:46 +09:00
|
|
|
<DiscordPlaying />
|
2021-02-21 16:54:51 +09:00
|
|
|
</div>
|
2021-02-08 17:40:13 +09:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{
|
|
|
|
// Description
|
|
|
|
}
|
2021-05-26 08:01:02 +09:00
|
|
|
<div>
|
2021-02-08 17:40:13 +09:00
|
|
|
<div className="text-left">
|
2021-02-21 16:54:51 +09:00
|
|
|
<p className="text-2xl"><FontAwesomeIcon icon={faInfo} className="w-5 h-5 inline"/> {desc}</p>
|
2021-02-08 17:40:13 +09:00
|
|
|
</div>
|
2021-02-21 16:54:51 +09:00
|
|
|
<div className="my-2 text-left grid lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-1 break-words">
|
|
|
|
<div>
|
|
|
|
<FontAwesomeIcon icon={faSchool} className="w-5 h-5 inline"/>
|
|
|
|
<p className="inline ml-4">{belongs}</p>
|
|
|
|
<p className="ml-9">{school}</p>
|
2021-02-21 17:22:54 +09:00
|
|
|
<p className="ml-9">{grade}</p>
|
2021-02-21 16:54:51 +09:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<FontAwesomeIcon icon={faBirthdayCake} className="w-5 h-5 inline"/>
|
|
|
|
<p className="inline ml-4">{birth}</p>
|
|
|
|
<p className="ml-9">{date}</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<FontAwesomeIcon icon={faMapPin} className="w-5 h-5 inline"/>
|
|
|
|
<p className="inline ml-4">{location}</p>
|
|
|
|
<p className="ml-9">{hiroshima}</p>
|
|
|
|
</div>
|
2021-02-08 17:40:13 +09:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{
|
2021-02-21 16:54:51 +09:00
|
|
|
// Contact
|
2021-02-08 17:40:13 +09:00
|
|
|
}
|
2021-02-21 16:54:51 +09:00
|
|
|
<div className="text-left my-6">
|
2021-02-21 17:22:54 +09:00
|
|
|
<p className="text-2xl"><FontAwesomeIcon icon={faPhone} className="w-5 h-5 inline"/> {contact}</p>
|
2021-02-08 17:40:13 +09:00
|
|
|
</div>
|
2021-02-21 16:54:51 +09:00
|
|
|
<div className="my-2 grid grid-cols-2 lg:grid-cols-5 md:grid-cols-3 sm:grid-cols-2 justify-items-center gap-y-6">
|
2021-02-22 14:06:44 +09:00
|
|
|
<div className="hover:underline">
|
2021-05-16 20:34:21 +09:00
|
|
|
<Link href="https://twitter.com/yude_jp">
|
2021-02-22 14:06:44 +09:00
|
|
|
<a>
|
|
|
|
<FontAwesomeIcon icon={faTwitter} className="w-7 h-7 inline lg:w-10 lg:h-10 md:w-7 md:h-7"/>
|
2021-05-16 20:34:21 +09:00
|
|
|
<p className="font-mono text-xl">@yude_jp</p>
|
2021-02-22 14:06:44 +09:00
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
2021-02-21 16:54:51 +09:00
|
|
|
<div className="hover:underline">
|
|
|
|
<a>
|
|
|
|
<FontAwesomeIcon icon={faDiscord} className="w-7 h-7 inline lg:w-10 lg:h-10 md:w-7 md:h-7"/>
|
|
|
|
<p className="font-mono text-xl">yude#3205</p>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div className="hover:underline">
|
|
|
|
<Link href="mailto:i@yude.jp">
|
|
|
|
<a>
|
|
|
|
<FontAwesomeIcon icon={faEnvelope} className="w-7 h-7 inline lg:w-10 lg:h-10 md:w-7 md:h-7"/>
|
|
|
|
<p className="font-mono text-xl">i@yude.jp</p>
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
<div className="hover:underline">
|
2021-03-31 05:26:48 +09:00
|
|
|
<Link href="https://github.com/yude">
|
2021-02-21 16:54:51 +09:00
|
|
|
<a>
|
|
|
|
<FontAwesomeIcon icon={faGithub} className="w-7 h-7 inline lg:w-10 lg:h-10 md:w-7 md:h-7"/>
|
2021-03-31 05:26:48 +09:00
|
|
|
<p className="font-mono text-xl">yude</p>
|
2021-02-21 16:54:51 +09:00
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
2021-02-22 14:06:44 +09:00
|
|
|
<div className="hover:underline">
|
2021-05-16 20:34:21 +09:00
|
|
|
<Link href="https://mstdn.yude.jp/@yude">
|
2021-02-22 14:06:44 +09:00
|
|
|
<a>
|
|
|
|
<FontAwesomeIcon icon={faMastodon} className="w-7 h-7 inline lg:w-10 lg:h-10 md:w-7 md:h-7"/>
|
2021-05-16 20:34:21 +09:00
|
|
|
<p className="font-mono text-xl">@yude@mstdn.yude.jp</p>
|
2021-02-22 14:06:44 +09:00
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
2021-02-21 16:54:51 +09:00
|
|
|
<div className="hover:underline">
|
|
|
|
<Link href="https://keybase.io/yude">
|
|
|
|
<a>
|
|
|
|
<FontAwesomeIcon icon={faKeybase} className="w-7 h-7 inline lg:w-10 lg:h-10 md:w-7 md:h-7"/>
|
|
|
|
<p className="font-mono text-xl">yude</p>
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
<div className="hover:underline">
|
|
|
|
<Link href="https://instagram.com/yude.jp">
|
|
|
|
<a>
|
|
|
|
<FontAwesomeIcon icon={faInstagram} className="w-7 h-7 inline lg:w-10 lg:h-10 md:w-7 md:h-7"/>
|
|
|
|
<p className="font-mono text-xl">yude.jp</p>
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
2021-03-08 14:46:59 +09:00
|
|
|
<div className="hover:underline">
|
|
|
|
<Link href="https://steamcommunity.com/id/yudejp">
|
|
|
|
<a>
|
|
|
|
<FontAwesomeIcon icon={faSteam} className="w-7 h-7 inline lg:w-10 lg:h-10 md:w-7 md:h-7"/>
|
|
|
|
<p className="font-mono text-xl">id/yudejp</p>
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
2021-02-21 16:54:51 +09:00
|
|
|
</div>
|
2021-03-08 14:46:59 +09:00
|
|
|
|
|
|
|
{
|
|
|
|
// Keys
|
|
|
|
}
|
|
|
|
<div className="text-left my-6">
|
|
|
|
<p className="text-2xl"><FontAwesomeIcon icon={faKey} className="w-5 h-5 inline"/> {keys}</p>
|
2021-05-26 07:53:02 +09:00
|
|
|
<ul className="list-disc my-2">
|
2021-03-08 14:46:59 +09:00
|
|
|
<li>
|
|
|
|
<span className="font-bold">GPG </span>
|
|
|
|
<Link href="/static/yudejp.gpg">
|
|
|
|
<a className="hover:underline">
|
|
|
|
<FontAwesomeIcon icon={faDownload} className="w-5 h-5 inline"/>
|
|
|
|
{download}
|
|
|
|
</a>
|
|
|
|
</Link>
|
2021-03-15 14:56:18 +09:00
|
|
|
<p>{fingerprint}:</p>
|
2021-05-26 08:01:02 +09:00
|
|
|
<div className="overflow-x-auto">
|
2021-05-26 07:53:02 +09:00
|
|
|
<div className="whitespace-nowrap">
|
2021-03-15 14:56:18 +09:00
|
|
|
3745 F270 DB4E 8975 6B07 62BE EB0F E5D9 25C4 A968
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-08 14:46:59 +09:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span className="font-bold">SSH </span>
|
2021-05-16 20:34:21 +09:00
|
|
|
<Link href="https://github.com/yude.keys">
|
2021-03-08 14:46:59 +09:00
|
|
|
<a className="hover:underline">
|
|
|
|
<FontAwesomeIcon icon={faEye} className="w-5 h-5 inline"/>
|
|
|
|
{view}
|
|
|
|
</a>
|
|
|
|
</Link>
|
2021-03-15 14:56:18 +09:00
|
|
|
<p>{fingerprint}:</p>
|
2021-05-26 08:01:02 +09:00
|
|
|
<div className="overflow-x-auto">
|
2021-05-26 07:53:02 +09:00
|
|
|
<div className="whitespace-nowrap">
|
2021-03-15 14:56:18 +09:00
|
|
|
2048 SHA256:xwSL4DORWmroWdC6P0GU1m1yZl/cXqjo9rCCWqqO+Dc
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-08 14:46:59 +09:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2021-05-28 07:24:07 +09:00
|
|
|
{
|
|
|
|
// WakaTime
|
|
|
|
}
|
|
|
|
<div className="text-left my-6">
|
|
|
|
<p className="text-2xl"><FontAwesomeIcon icon={faUserClock} className="w-5 h-5 inline"/> WakaTime</p>
|
|
|
|
<figure className="max-w-2xl"><embed src="https://wakatime.com/share/@yude/6f15075a-b9d5-464a-8b4f-545d31933dfb.svg"></embed></figure>
|
|
|
|
<figure className="max-w-2xl"><embed src="https://wakatime.com/share/@yude/a8c52934-488b-4bdd-aed1-4f3fc73eb78e.svg"></embed></figure>
|
|
|
|
</div>
|
2021-02-21 16:54:51 +09:00
|
|
|
<div>
|
2021-02-08 17:40:13 +09:00
|
|
|
</div>
|
2021-02-08 16:43:48 +09:00
|
|
|
</div>
|
2021-05-10 18:30:28 +09:00
|
|
|
<Link href="https://scrapbox.io/yude/%E3%82%A2%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88">
|
2021-05-26 08:01:02 +09:00
|
|
|
<button className="border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-800 hover:bg-indigo-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 p-3 w-60">{more}</button>
|
2021-02-21 17:22:54 +09:00
|
|
|
</Link>
|
2021-05-26 08:01:02 +09:00
|
|
|
<p className="mt-3 text-sm font-bold text-gray-900 dark:text-gray-400">{icon_1}<Link href="https://twitter.com/xmnts"><a className="hover:underline">Minkasy {icon_2}</a></Link></p>
|
2021-02-21 17:22:54 +09:00
|
|
|
</div>
|
2021-02-08 16:43:48 +09:00
|
|
|
</Layout>
|
|
|
|
)
|
|
|
|
}
|