0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-06-09 23:36:01 +09:00

Add hcunews

This commit is contained in:
yude 2021-05-27 10:03:44 +09:00
parent cd574f0cc9
commit 12408fbc52
Signed by: yude
GPG Key ID: EB0FE5D925C4A968
5 changed files with 47 additions and 1 deletions

17
docs/hcunews.md Normal file
View File

@ -0,0 +1,17 @@
このアカウントは**非公式**アカウントです。また、内容を保証するものではありません。
# 管理者
広島市立大学 情報科学部 2年の [yude](https://yude.jp/profile) が管理しています。このアカウントについての連絡は下記までお願いします。
## 連絡先
* 電子メール: [admin@yude.jp](mailto:admin@yude.jp)
* Twitter: [@yude_jp](https://twitter.com/yude_jp)
# 稼働方法
Microsoft Power Automate によって広島市立大学WebページのRSSフィードを取得し、新しい記事が投稿されている場合にツイートします。\
次の URL を監視しています。
* [お知らせ|広島市立大学](https://www.hiroshima-cu.ac.jp/news/)
* [お知らせ(在学生・保護者の方へ)|広島市立大学](https://www.hiroshima-cu.ac.jp/news_student/)
* [在学生・保護者の方へ|広島市立大学](https://www.hiroshima-cu.ac.jp/student/)
# 関連リンク
* [広島市立大学](https://www.hiroshima-cu.ac.jp/)

View File

@ -7,6 +7,7 @@
"/profile": ["profile", "common"],
"/status": ["status", "common"],
"/house": ["house", "common"],
"/tos": ["tos", "common"]
"/tos": ["tos", "common"],
"/hcunews": ["hcunews", "common"]
}
}

3
locales/en/hcunews.json Normal file
View File

@ -0,0 +1,3 @@
{
"hcunews": "About @hcunews"
}

3
locales/ja/hcunews.json Normal file
View File

@ -0,0 +1,3 @@
{
"hcunews": "@hcunews について"
}

22
pages/hcunews.js Normal file
View File

@ -0,0 +1,22 @@
import Layout from "./components/Layout"
import useTranslation from 'next-translate/useTranslation'
import { useRouter } from 'next/router'
import React from "react"
import ReactMarkdown from "react-markdown"
import gfm from 'remark-gfm';
import input from '../docs/hcunews.md'
export default function Tos(props) {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("hcunews")
const hcunews = t('hcunews')
return(
<Layout title={hcunews}>
<div>
<h1>{hcunews}</h1>
<ReactMarkdown plugins={[gfm]} children={input} />
</div>
</Layout>
)
}