mirror of
https://github.com/yude-jp/yude.jp
synced 2024-12-22 20:20:09 +09:00
Rename
This commit is contained in:
parent
02be449749
commit
56e998b6e7
33
pages/components/Layout.js
Normal file
33
pages/components/Layout.js
Normal file
@ -0,0 +1,33 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user