Move theme selector to the header and improved about page and styling

This commit is contained in:
2019-09-09 11:49:39 +02:00
parent ee610cc9b6
commit 9fc48df1ce
13 changed files with 265 additions and 100 deletions

View File

@@ -0,0 +1,30 @@
import React from "react";
import styled, { css } from "styled-components";
export const Content = styled.div`
${({ content }) =>
content === PageSection.content.center &&
css`
max-width: 60rem;
margin: 0 auto;
// padding: 0.5em;
`}
`;
const contentPosition = {
center: "center",
stretch: "stretch"
};
export const PageSection = ({ content, children, className } = { content: contentPosition.stretch }) => {
return (
<div className={className}>
<Content content={content}>{children}</Content>
</div>
);
};
PageSection.content = contentPosition;
PageSection.Content = Content;
export default PageSection;