0
0
mirror of https://github.com/yude-jp/yude.jp synced 2025-10-14 04:08:36 +09:00

Setup Next.js

This commit is contained in:
2021-02-06 02:31:04 +09:00
parent 8d30c7ad06
commit d090d99b0d
18 changed files with 13119 additions and 40 deletions

32
components/layout.js Normal file
View File

@@ -0,0 +1,32 @@
import Head from "next/head"
import Link from "next/link"
const Layout = (props) => {
const { title, children } = props
const siteTitle = "yude.jp"
return (
<div className="page">
<Head>
<title>{title ? `${title} - ${siteTitle}` : siteTitle}</title>
<link rel="icon" href="/static/images/favicon.ico" />
</Head>
<main>
{/*
{title ? <h1 className="page-title">{title}</h1> : ``}
*/}
<div className="page-main">
{children}
</div>
</main>
<style jsx global>{`
body {
text-align: center;
}
.avatar{
border-radius: 50%;
}
`}</style>
</div>
)
}
export default Layout