2019-10-31 15:40:34 +01:00
|
|
|
import Nav from "./Nav";
|
|
|
|
import PropTypes from "prop-types";
|
|
|
|
|
|
|
|
const Layout = ({ children }) => (
|
2017-03-30 20:21:13 +02:00
|
|
|
<main>
|
2019-10-31 15:40:34 +01:00
|
|
|
<Nav />
|
2017-03-30 20:21:13 +02:00
|
|
|
{children}
|
|
|
|
<style jsx global>{`
|
|
|
|
* {
|
2018-01-31 10:40:32 +01:00
|
|
|
font-family: Menlo, Monaco, "Lucida Console", "Liberation Mono",
|
|
|
|
"DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New",
|
|
|
|
monospace, serif;
|
2017-03-30 20:21:13 +02:00
|
|
|
}
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
padding: 25px 50px;
|
|
|
|
}
|
|
|
|
a {
|
2018-01-31 10:40:32 +01:00
|
|
|
color: #22bad9;
|
2017-03-30 20:21:13 +02:00
|
|
|
}
|
|
|
|
p {
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 24px;
|
|
|
|
}
|
|
|
|
article {
|
|
|
|
margin: 0 auto;
|
|
|
|
max-width: 650px;
|
|
|
|
}
|
|
|
|
button {
|
|
|
|
align-items: center;
|
2018-01-31 10:40:32 +01:00
|
|
|
background-color: #22bad9;
|
2017-03-30 20:21:13 +02:00
|
|
|
border: 0;
|
|
|
|
color: white;
|
2019-10-31 15:40:34 +01:00
|
|
|
display: inline-flex;
|
2017-03-30 20:21:13 +02:00
|
|
|
padding: 5px 7px;
|
2019-10-31 15:40:34 +01:00
|
|
|
margin-right: 1px;
|
2017-03-30 20:21:13 +02:00
|
|
|
}
|
|
|
|
button:active {
|
2018-01-31 10:40:32 +01:00
|
|
|
background-color: #1b9db7;
|
|
|
|
transition: background-color 0.3s;
|
2017-03-30 20:21:13 +02:00
|
|
|
}
|
|
|
|
button:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
2019-10-31 15:40:34 +01:00
|
|
|
|
|
|
|
hr {
|
|
|
|
height: 1px;
|
|
|
|
border: none;
|
|
|
|
background: #ececec;
|
|
|
|
margin: 20px 0;
|
|
|
|
}
|
2017-03-30 20:21:13 +02:00
|
|
|
`}</style>
|
|
|
|
</main>
|
|
|
|
);
|
2019-10-31 15:40:34 +01:00
|
|
|
|
|
|
|
Layout.propTypes = {
|
2019-11-11 04:24:53 +01:00
|
|
|
children: PropTypes.node.isRequired,
|
2019-10-31 15:40:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Layout;
|