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
2021-02-07 11:09:51 +09:00

48 lines
1.3 KiB
JavaScript

import Head from "next/head"
import Link from "next/link"
import "tailwindcss/tailwind.css";
import React, { useEffect, useState } from 'react'
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>
<Background>
<body className="bg-white text-black dark:bg-black dark:text-white">
<main>
{/*
{title ? <h1 className="page-title">{title}</h1> : ``}
*/}
<div className="page-main">
{children}
</div>
<style jsx global>{`
body {
text-align: center;
}
`}</style>
<footer>
<div className="container mx-auto px-6">
<div className="mt-16 border-t-2 border-gray-300 flex flex-col items-center">
<div className="sm:w-full text-left py-6">
<p className="text-sm text-gray-700 font-bold mb-2">
This page is licensed under the MIT License.
</p>
</div>
</div>
</div>
</footer>
</main>
</body>
</Background>
</div>
)
}
export default Layout