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

Compare commits

...

28 Commits

Author SHA1 Message Date
c147a60690
Update yarn.lock 2021-05-23 17:05:25 +09:00
64c8bfdcaa
Merge branch 'master' of https://github.com/yudejp/yude.jp
# Conflicts:
#	package-lock.json
#	package.json
#	yarn.lock
2021-05-23 17:03:01 +09:00
993918b617
Fix styling (centering) 2021-05-23 16:55:21 +09:00
55645aabbd
Update / cleanup packages, Cleanup repository 2021-05-23 16:53:55 +09:00
8443002ca3
Merge pull request #3 from yudejp/dependabot/npm_and_yarn/postcss-8.2.10
Bump postcss from 8.2.4 to 8.2.10
2021-05-23 16:37:51 +09:00
dependabot[bot]
a5cd66a6fa
Bump postcss from 8.2.4 to 8.2.10
Bumps [postcss](https://github.com/postcss/postcss) from 8.2.4 to 8.2.10.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.2.4...8.2.10)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-23 07:36:43 +00:00
d02e2857ae
Add en_US translations 2021-05-23 16:28:08 +09:00
21d696a391
Update link for ToS, GitHub Orgs 2021-05-23 16:27:51 +09:00
4887277013
Update global styling 2021-05-23 16:09:40 +09:00
5cee3eef6c
Update filename for source .md 2021-05-23 16:09:35 +09:00
97c751feac
Add tos.md 2021-05-23 16:09:24 +09:00
540e012a11
Setup ToS page 2021-05-23 16:02:08 +09:00
03ebe866f9
Load globals.css 2021-05-23 16:01:37 +09:00
0fa245e3b8
Update heading styling 2021-05-23 16:01:29 +09:00
49a957cba1
Add packages 2021-05-23 16:01:17 +09:00
e3a8ea3e5f
Change style applying position 2021-05-23 15:48:06 +09:00
9e8429eb6f
Load package for styling 2021-05-23 15:46:22 +09:00
3668206bd5
Add packages for styling, markdown rendering 2021-05-23 15:46:11 +09:00
396e7a0af0
Update configuration for raw-loader 2021-05-23 15:45:54 +09:00
b5bde482d7
Update base styling 2021-05-23 15:45:42 +09:00
68386bd8c2
Update translation 2021-05-23 15:45:24 +09:00
56b552cac3
Cleanup 2021-05-23 14:54:22 +09:00
7ff35ba2f9
Setup ToS page 2021-05-23 14:05:48 +09:00
4a7973fbf6
Integrate footer component 2021-05-23 14:02:27 +09:00
9130e072df
Remove scrolling bar, Fix comments 2021-05-23 10:49:00 +09:00
bd4e059023
Cleanup 2021-05-23 10:46:33 +09:00
20582570fb
Update next.config.js 2021-05-23 10:38:58 +09:00
a1cf438b97
Change component name 2021-05-23 10:37:23 +09:00
22 changed files with 1666 additions and 15596 deletions

38
docs/tos.md Normal file
View File

@ -0,0 +1,38 @@
# yude.jp サービス利用規約
yude.jp ドメイン以下に設置されているサービスについて、以下の利用規約が適用されます。
## サービス運用について
yude が実験的に運用しており、完全に無保証で提供されるものです。
事前の予告なくサーバーのメンテナンスを行う場合など、予告なくサービスの提供が一時停止、または永久に停止されることがあります。
## 禁止行為
以下の行為を、yude.jp で提供されるサービス、特に Mastodon インスタンス上において行うことを禁止します。 違反が見受けられた場合、管理者またはモデレーターによってアカウントに対し何らかの処分が下される可能性があります。
* 成人向け、またはグロテスクな画像・動画の投稿
* 常識を逸脱した暴言
* スパム行為
* サーバーへのクラック行為
* 管理者が不適切であると判断した行為
その他、サーバーの設置拠点である日本国の法律が適用されます。
## その他
この利用規約は管理者が利用者に対して了承を得ず更新することができますが、その際には必ず通知を Mastodon インスタンス内、または Twitter 上 ([@yudejp](https://twitter.com/yudejp) または [@yude_jp](https://twitter.com/yude_jp)) において行うものとします。
# yude.jp Terms of Service
The following ToS apply to services running under the yude.jp domain.
## About service operation
Our services are run by yude for experimental purposes and there's no guarantee on them.\
Those may be suspended temporarily or permanently (e.g. for server maintenance) without any announcement.
## Prohibited actions
The actions listed below are prohibited on the service running under the yude.jp domain (especially on Mastodon instance).\
Our administrator or moderator may take some action against the violating user's account.
* Post images or movies for adults, or grotesque
* Violent language that deviates from common sense
* Chat spamming
* Cracking our server(s)
* Actions that the administrator or moderator deems inappropriate
In addition, the laws of Japan, where the server is running, apply.
## Misc
These ToS may be updated by the administrator without any announcement, but we will always notify you with in the Mastodon instance ([mstdn.yude.jp](https://mstdn.yude.jp)) or on our Twitter account ([@yudejp](https://twitter.com/yudejp) or [@yude_jp](https://twitter.com/yude_jp)).

View File

@ -2,9 +2,11 @@
"locales": ["en", "ja"],
"defaultLocale": "ja",
"pages": {
"*": ["common"],
"/": ["index", "common"],
"/profile": ["profile", "common"],
"/status": ["status", "common"],
"/house": ["house", "common"]
"/house": ["house", "common"],
"/tos": ["tos", "common"]
}
}

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

@ -0,0 +1,3 @@
{
"tos": "yude.jp Terms of Service"
}

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

@ -0,0 +1,3 @@
{
"tos": "yude.jp サービス利用規約"
}

2
next-env.d.ts vendored
View File

@ -1,2 +0,0 @@
/// <reference types="next" />
/// <reference types="next/types/global" />

View File

@ -1,18 +1,18 @@
const nextTranslate = require('next-translate')
module.exports = nextTranslate({
experimental: {
darkModeVariant: true
},
i18n: {
// These are all the locales you want to support in
// your application
locales: ['ja', 'en'],
// This is the default locale you want to be used when visiting
// a non-locale prefixed path e.g. `/hello`
defaultLocale: 'ja',
},
images: {
domains: ['mackerel.io'],
},
webpack: function (config) {
config.module.rules.push({
test: /\.md$/,
use: 'raw-loader',
})
return config
},
})

14255
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -21,29 +21,31 @@
},
"homepage": "https://github.com/yudemoe/yude.jp#readme",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.34",
"@fortawesome/free-brands-svg-icons": "^5.15.2",
"@fortawesome/free-solid-svg-icons": "^5.15.2",
"@fortawesome/fontawesome-svg-core": "^1.2.35",
"@fortawesome/free-brands-svg-icons": "^5.15.3",
"@fortawesome/free-solid-svg-icons": "^5.15.3",
"@fortawesome/react-fontawesome": "^0.1.14",
"@zeit/next-css": "^1.0.1",
"autoprefixer": "^10.2.4",
"next": "^10.0.6",
"@tailwindcss/typography": "^0.4.0",
"autoprefixer": "^10.2.5",
"next": "^10.2.2",
"next-themes": "^0.0.14",
"next-translate": "^1.0.2",
"nightwind": "^1.1.6",
"next-translate": "^1.0.7",
"popper.js": "^1.16.1",
"postcss": "^8.2.4",
"postcss": "^8.3.0",
"raw-loader": "^4.0.2",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-markdown": "^6.0.2",
"react-switch": "^6.0.0",
"tailwindcss": "^2.0.2",
"remark-gfm": "^1.0.0",
"tailwindcss": "^2.1.2",
"tailwindcss-filters": "^3.0.0",
"tailwindcss-responsive-embed": "^1.0.0",
"use-dark-mode": "^2.3.1"
"webpack": "^5.37.1"
},
"devDependencies": {
"@types/node": "^14.14.25",
"@types/react": "^17.0.1",
"typescript": "^4.1.3"
"@types/node": "^15.6.0",
"@types/react": "^17.0.6",
"typescript": "^4.2.4"
}
}

View File

@ -1,5 +1,6 @@
import 'tailwindcss/tailwind.css';
import { ThemeProvider } from "next-themes";
import "../styles/globals.css"
function MyApp({ Component, pageProps }) {
return (

View File

@ -0,0 +1,29 @@
import "tailwindcss/tailwind.css";
import Link from 'next/link';
import useTranslation from 'next-translate/useTranslation'
import { useRouter } from 'next/router'
export default function Footer(props) {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("common")
const footer = t('footer')
const source = t('source')
const tos = t('tos')
return (
<>
<div className="container mx-auto px-6">
<div className="mt-16 flex flex-col items-center">
<div className="sm:w-full text-center py-6">
<p className="text-sm font-bold mb-2">
{footer} / <Link href="https://github.com/yudejp/yude.jp"><a className="hover:underline">{source}</a></Link>
</p>
<p className="text-sm font-bold mb-2">
<Link href="/tos"><a className="hover:underline">{tos}</a></Link>
</p>
</div>
</div>
</div>
</>
);
}

View File

@ -1,10 +1,10 @@
import Head from "next/head"
import Link from "next/link"
import "tailwindcss/tailwind.css";
import useTranslation from 'next-translate/useTranslation'
import { useRouter } from 'next/router'
import React, { useEffect, useState } from 'react'
import { useTheme } from "next-themes";
import Footer from "./Footer"
import Navbar from "./Navbar"
const Layout = (props) => {
const { title, children } = props
@ -23,28 +23,11 @@ const Layout = (props) => {
<link rel="icon" href="/static/images/favicon.ico" />
</Head>
<main>
<Navbar />
<div className="page-main">
{children}
</div>
<style jsx global>{`
body {
text-align: center;
}
`}</style>
<div className="container mx-auto px-6">
<div className="mt-16 flex flex-col items-center">
<div className="sm:w-full text-center py-6">
<p className="text-sm font-bold mb-2">
{footer} / <Link href="https://github.com/yudejp/yude.jp"><a className="hover:underline">{source}</a></Link>
</p>
<p className="text-sm font-bold mb-2">
<Link href="https://scrapbox.io/yude/yude.jp_%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E5%88%A9%E7%94%A8%E8%A6%8F%E7%B4%84"><a className="hover:underline">{tos}</a></Link>
</p>
</div>
</div>
</div>
<Footer />
</main>
</div>
)

View File

@ -1,8 +1,7 @@
import "tailwindcss/tailwind.css";
import Popper from "popper.js";
import Link from 'next/link';
import LangSelector from "./LangSelector"
import DarkmodeSwitcher from "./DarkmodeSwitcher"
import ThemeSelector from "./ThemeSelector"
const Navbar = () => {
return (
@ -16,7 +15,7 @@ const Navbar = () => {
</a>
</Link>
<div className="origin-top-right absolute right-0">
<DarkmodeSwitcher />
<ThemeSelector />
<LangSelector />
</div>
</nav>

View File

@ -1,12 +1,5 @@
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) {
@ -16,11 +9,9 @@ export default function About(props) {
const house = t('house')
return (
<Layout title={house}>
<Navbar />
<p className="my-2 text-3xl">{house}</p>
<div className="mx-9">
<p className="my-2 text-3xl text-center">{house}</p>
<iframe className="w-full h-96" src="https://mackerel.io/embed/public/embed/4mVIU29WCRVZgHUxQPzWsfXo953uxiAegbjDb83hTQ7szesCunwdpVkBIzhnLc9i?period=1d" frameborder="0" scrolling="no"></iframe>
</div>
</Layout>

View File

@ -1,7 +1,5 @@
import Layout from "./components/Layout"
import Navbar from "./components/Navbar"
import Link from 'next/link'
import { ReactElement } from 'react'
import { faDiscord, faGit, faMastodon, faGithub } from '@fortawesome/free-brands-svg-icons'
import { faBlog, faBook, faUser, faServer, faHouseUser } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
@ -20,8 +18,7 @@ export default function Index(props) {
return (
<Layout title={home}>
<Navbar />
<div className="my-9">
<div className="my-9 text-center">
<div className="m-10">
<Image
src = "/static/images/avatar.png"

View File

@ -1,5 +1,4 @@
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'
@ -17,11 +16,7 @@ export default function About(props) {
const desc = t('desc')
const school = t('school')
const contact = t('contact')
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')
const belongs = t('belongs')
const hiroshima = t('hiroshima')
const birth = t('birth')
@ -38,8 +33,7 @@ export default function About(props) {
return (
<Layout title={about}>
<Navbar />
<div className="my-9 mx-8">
<div className="my-9 mx-8 text-center">
{
// Heading

View File

@ -1,11 +1,5 @@
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'
import { useRouter } from 'next/router'
@ -22,8 +16,7 @@ export default function About(props) {
return (
<Layout title={status}>
<Navbar />
<div className="my-9 mx-9">
<div className="my-9 mx-9 text-center">
{
// Heading
}
@ -31,7 +24,7 @@ export default function About(props) {
<p className="text-left text-4xl">{status} <p className="md:inline font-mono text-base sm:">Powered / Generated by Mackerel.</p></p>
</div>
{
// cherry Datadog
// cherry Mackerel
}
<h2 className="text-2xl text-left font-bold leading-7 sm:text-3xl sm:truncate">cherry</h2>
<div className="flex xl:w-2/3 text-center">
@ -40,10 +33,10 @@ export default function About(props) {
<div className="flex-1"><p className="font-bold">OS </p>Arch Linux</div>
<div className="flex-1"><p className="font-bold">{location} </p>{hiroshima}</div>
</div>
<iframe src="https://mackerel.io/embed/public/embed/heHnGhDanoIDlf7jjxUe9yPVrsG3deeH5ptD8suErrq5w46crWEIYdLfzLoukzfF?period=24h" height="400" className="w-2/3" frameBorder="0"></iframe>
<iframe className="w-full h-96" src="https://mackerel.io/embed/public/embed/heHnGhDanoIDlf7jjxUe9yPVrsG3deeH5ptD8suErrq5w46crWEIYdLfzLoukzfF?period=24h" height="400" className="w-2/3" frameBorder="0" scrolling="no"></iframe>
{
// raspberry Datadog
// raspberry Mackerel
}
<h2 className="text-2xl text-left font-bold leading-7 sm:text-3xl sm:truncate">raspberry</h2>
<div className="flex xl:w-2/3 text-center">
@ -52,7 +45,7 @@ export default function About(props) {
<div className="flex-1"><p className="font-bold">OS </p>Raspbian GNU/Linux 10 (buster)</div>
<div className="flex-1"><p className="font-bold">{location} </p>{tottori}</div>
</div>
<iframe src="https://mackerel.io/embed/public/embed/5HVbQiwuxrMithyrGjmmQCCOVgJ6Ptf94SDA2qWSTsh2rtz7pjePihYzaW5QEml4?period=24h" height="400" className="w-2/3" frameBorder="0"></iframe>
<iframe className="w-full h-96" src="https://mackerel.io/embed/public/embed/5HVbQiwuxrMithyrGjmmQCCOVgJ6Ptf94SDA2qWSTsh2rtz7pjePihYzaW5QEml4?period=24h" height="400" className="w-2/3" frameBorder="0" scrolling="no"></iframe>
</div>

21
pages/tos.js Normal file
View File

@ -0,0 +1,21 @@
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/tos.md'
export default function Tos(props) {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("tos")
const tos = t('tos')
return(
<Layout title={tos}>
<div className="mx-9">
<ReactMarkdown plugins={[gfm]} children={input} />
</div>
</Layout>
)
}

View File

@ -1,4 +1,15 @@
/* Start purging... */
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Stop purging. */
@layer base {
h1 {
@apply text-3xl my-3;
}
h2 {
@apply text-xl;
}
ul {
@apply list-disc mx-10
}
}

View File

@ -56,6 +56,7 @@ module.exports = {
plugins: [
require('tailwindcss-filters'),
require("tailwindcss-responsive-embed"),
require("tailwindcss-aspect-ratio")
require("tailwindcss-aspect-ratio"),
require('@tailwindcss/typography'),
]
}

View File

@ -1,29 +0,0 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}

2744
yarn.lock

File diff suppressed because it is too large Load Diff