0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-23 12:40:11 +09:00
yude.jp/pages/components/Layout.js

31 lines
718 B
JavaScript
Raw Normal View History

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 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