diff --git a/src/components/Content.jsx b/src/components/Content.jsx new file mode 100644 index 00000000..27dc7a2f --- /dev/null +++ b/src/components/Content.jsx @@ -0,0 +1,13 @@ +import React from 'react' +import PropTypes from 'prop-types' +import styles from './Content.module.scss' + +const Content = ({ children }) => ( +
{children}
+) + +Content.propTypes = { + children: PropTypes.any.isRequired +} + +export default Content diff --git a/src/components/Layout.module.scss b/src/components/Content.module.scss old mode 100755 new mode 100644 similarity index 58% rename from src/components/Layout.module.scss rename to src/components/Content.module.scss index e8698931..30ffc405 --- a/src/components/Layout.module.scss +++ b/src/components/Content.module.scss @@ -1,7 +1,7 @@ @import 'variables'; -.main { +.content { padding: 0 $spacer; - max-width: 45rem; + max-width: $break-point--large; margin: auto; } diff --git a/src/components/Header.module.scss b/src/components/Header.module.scss index 08042dbe..0d01ee5b 100644 --- a/src/components/Header.module.scss +++ b/src/components/Header.module.scss @@ -3,17 +3,18 @@ .header { background: $brand-black; width: 100%; - padding: $spacer / 2; + padding: $spacer / 2 0; padding-right: $spacer / 1.5; } .headerContent { - max-width: $break-point--huge; + max-width: $break-point--large; margin-left: auto; margin-right: auto; display: flex; justify-content: space-between; align-items: center; + padding: 0 $spacer; } .headerLogo { diff --git a/src/components/HeaderSection.jsx b/src/components/HeaderSection.jsx new file mode 100644 index 00000000..536a05a0 --- /dev/null +++ b/src/components/HeaderSection.jsx @@ -0,0 +1,18 @@ +import React from 'react' +import PropTypes from 'prop-types' +import Content from './Content' +import styles from './HeaderSection.module.scss' + +const HeaderSection = ({ title }) => ( +
+ +

{title}

+
+
+) + +HeaderSection.propTypes = { + title: PropTypes.string +} + +export default HeaderSection diff --git a/src/components/HeaderSection.module.scss b/src/components/HeaderSection.module.scss new file mode 100644 index 00000000..54d15814 --- /dev/null +++ b/src/components/HeaderSection.module.scss @@ -0,0 +1,12 @@ +@import 'variables'; + +.headerSection { + padding: $spacer / 2 0; + border-bottom: .1rem solid $brand-grey-lighter; +} + +.headerSectionTitle { + margin: 0; + font-size: $font-size-h4; + color: $brand-grey-light; +} diff --git a/src/components/Layout.jsx b/src/components/Layout.jsx index 586e8beb..92bc88ed 100755 --- a/src/components/Layout.jsx +++ b/src/components/Layout.jsx @@ -4,7 +4,6 @@ import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' import Header from './Header' -import styles from './Layout.module.scss' const Layout = ({ children }) => ( (
-
{children}
+
{children}
)} /> diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx index ed6429c1..b6da1054 100644 --- a/src/components/Sidebar.jsx +++ b/src/components/Sidebar.jsx @@ -43,7 +43,7 @@ const SidebarLink = ({ link, title, linkClasses }) => { } const SidebarList = ({ items, location }) => ( -