From d90e9cf0c44ad539b2fa371e10820ddbf793ca56 Mon Sep 17 00:00:00 2001
From: yudejp
Date: Tue, 18 May 2021 22:42:47 +0900
Subject: [PATCH] Add house
---
i18n.json | 3 ++-
locales/en/house.json | 3 +++
locales/ja/house.json | 3 +++
pages/house.js | 28 ++++++++++++++++++++++++++++
pages/index.js | 3 ++-
5 files changed, 38 insertions(+), 2 deletions(-)
create mode 100644 locales/en/house.json
create mode 100644 locales/ja/house.json
create mode 100644 pages/house.js
diff --git a/i18n.json b/i18n.json
index e825306..cef77d0 100644
--- a/i18n.json
+++ b/i18n.json
@@ -4,6 +4,7 @@
"pages": {
"/": ["index", "common"],
"/profile": ["profile", "common"],
- "/status": ["status", "common"]
+ "/status": ["status", "common"],
+ "/house": ["house", "common"]
}
}
\ No newline at end of file
diff --git a/locales/en/house.json b/locales/en/house.json
new file mode 100644
index 0000000..e9e0959
--- /dev/null
+++ b/locales/en/house.json
@@ -0,0 +1,3 @@
+{
+ "house": "yude's house"
+}
\ No newline at end of file
diff --git a/locales/ja/house.json b/locales/ja/house.json
new file mode 100644
index 0000000..65fbbc9
--- /dev/null
+++ b/locales/ja/house.json
@@ -0,0 +1,3 @@
+{
+ "house": "ゆでハウス"
+}
\ No newline at end of file
diff --git a/pages/house.js b/pages/house.js
new file mode 100644
index 0000000..0fd643f
--- /dev/null
+++ b/pages/house.js
@@ -0,0 +1,28 @@
+import Layout from "./components/Layout"
+import Navbar from "./components/Navbar"
+import useTranslation from 'next-translate/useTranslation'
+import { faDiscord, faTwitter, faGithub, faKeybase, faInstagram, faMastodon, faSteam } from '@fortawesome/free-brands-svg-icons'
+import { faEnvelope, faBirthdayCake, faMapPin, faSchool, faPhone, faInfo, faKey, faDownload, faEye } from '@fortawesome/free-solid-svg-icons'
+import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
+import Link from 'next/link'
+import Image from 'next/image'
+
+import { useRouter } from 'next/router'
+
+export default function About(props) {
+ const router = useRouter()
+ const { locale, locales, defaultLocale, pathname } = router
+ const { t, lang } = useTranslation("house")
+ const house = t('house')
+
+ return (
+
+ {house}