mirror of
https://github.com/yude-jp/yude.jp
synced 2024-12-22 20:20:09 +09:00
32 lines
741 B
JavaScript
32 lines
741 B
JavaScript
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 |