2021-02-06 02:40:31 +09:00
|
|
|
import Head from "next/head"
|
|
|
|
import Link from "next/link"
|
2021-02-06 09:36:00 +09:00
|
|
|
import "tailwindcss/tailwind.css";
|
2021-02-06 02:40:31 +09:00
|
|
|
|
|
|
|
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>
|
2021-02-06 10:38:30 +09:00
|
|
|
|
2021-02-06 02:40:31 +09:00
|
|
|
<main>
|
|
|
|
{/*
|
|
|
|
{title ? <h1 className="page-title">{title}</h1> : ``}
|
|
|
|
*/}
|
|
|
|
<div className="page-main">
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<style jsx global>{`
|
|
|
|
body {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
export default Layout
|