You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

43 lines
1003 B

import Header from "./Header";
import Meta from "./Meta";
export default function Layout({
siteTitle,
siteDescription,
children,
pathname,
}) {
return (
<section className={`layout ${pathname == "info" && "info_page"}`}>
<Meta siteTitle={siteTitle} siteDescription={siteDescription} />
<Header siteTitle={siteTitle} />
<div className="content">{children}</div>
<style jsx>
{`
.layout {
overflow-x: hidden;
display: flex;
flex-direction: column;
min-height: 100vh;
}
.layout .info_page {
color: #ebebeb;
}
.content {
flex-grow: 1;
}
@media (min-width: 768px) {
.layout {
display: block;
}
.content {
flex-grow: none;
width: 70vw;
margin-left: 30vw;
}
}
`}
</style>
</section>
);
}