diff --git a/src/App.js b/src/App.js index 722898f..ac6e8ba 100644 --- a/src/App.js +++ b/src/App.js @@ -9,6 +9,7 @@ import About from './views/About' import Contact from './views/Contact' import NoMatch from './views/NoMatch' import Nav from './components/Nav' +import Footer from './components/Footer' import GithubCorner from './components/GithubCorner' import ServiceWorkerNotifications from './components/ServiceWorkerNotifications' import data from './data.json' @@ -33,7 +34,7 @@ class App extends Component { } = this.getDocument('settings', 'global') return ( -
+
@@ -80,8 +81,9 @@ class App extends Component { /> )} /> - + } /> +
) diff --git a/src/components/Footer.css b/src/components/Footer.css new file mode 100644 index 0000000..2e70747 --- /dev/null +++ b/src/components/Footer.css @@ -0,0 +1,14 @@ +.Footer { + background: var(--primary); + color: white; +} + +.Footer--Lower { + background: var(--primaryDark); + padding: 1rem 0; + font-weight: 100; +} + +.Footer--Lower a { + color: inherit; +} diff --git a/src/components/Footer.js b/src/components/Footer.js new file mode 100644 index 0000000..e2f530a --- /dev/null +++ b/src/components/Footer.js @@ -0,0 +1,13 @@ +import React from 'react' + +import './Footer.css' + +export default ({ globalSettings, socialSettings, navLinks }) => ( +
+
+
+ © 2017 All rights reserved. +
+
+
+) diff --git a/src/views/NoMatch.css b/src/views/NoMatch.css index 717edb6..b328bd2 100644 --- a/src/views/NoMatch.css +++ b/src/views/NoMatch.css @@ -2,4 +2,5 @@ display: flex; flex-direction: column; justify-content: space-between; + min-height: 100vh; } diff --git a/src/views/NoMatch.js b/src/views/NoMatch.js index 80cb11c..5e1e032 100644 --- a/src/views/NoMatch.js +++ b/src/views/NoMatch.js @@ -1,10 +1,11 @@ import React from 'react' +import PropTypes from 'prop-types' import Helmet from 'react-helmet' import './NoMatch.css' -export default ({ siteUrl }) => ( -
+const NoMatch = ({ siteUrl }) => ( +

404 - Page Not Found

@@ -22,3 +23,9 @@ export default ({ siteUrl }) => (
) + +NoMatch.propTypes = { + siteUrl: PropTypes.string.isRequired +} + +export default NoMatch