diff --git a/client/src/App.js b/client/src/App.js
index 09585a5aa..39d60ce90 100644
--- a/client/src/App.js
+++ b/client/src/App.js
@@ -11,7 +11,7 @@ import { theme, globalStyles } from './styles'
import { client } from './graphql/apollo'
import Auth from './auth'
-import { Header, Footer, Home, Charts, Callback } from './views'
+import { Layout, Home, Charts, Callback } from './views'
import Users from '@advancedalgos/users-client'
import Teams from '@advancedalgos/teams-client'
@@ -28,8 +28,7 @@ export const MasterApp = (props) => (
-
-
+
(
render={props => }
/>
-
-
+
diff --git a/client/src/styles/index.js b/client/src/styles/index.js
index c28d01f4c..272bbcf66 100644
--- a/client/src/styles/index.js
+++ b/client/src/styles/index.js
@@ -66,9 +66,6 @@ export const globalStyles = theme => ({
[theme.breakpoints.up('sm')]: {
paddingBottom: theme.spacing.unit * 2
}
- },
- mainContainer: {
- minHeight: 'calc(100vh - 420px)'
}
})
diff --git a/client/src/views/index.js b/client/src/views/index.js
index aa19b1c86..420606409 100644
--- a/client/src/views/index.js
+++ b/client/src/views/index.js
@@ -3,5 +3,6 @@ import Footer from './footer'
import Home from './home'
import Charts from './charts'
import Callback from './callback'
+import Layout from './layout'
-export { Header, Footer, Home, Charts, Callback }
+export { Layout, Header, Footer, Home, Charts, Callback }
diff --git a/client/src/views/layout/index.js b/client/src/views/layout/index.js
new file mode 100644
index 000000000..66b333eed
--- /dev/null
+++ b/client/src/views/layout/index.js
@@ -0,0 +1,21 @@
+import React from 'react'
+import { withStyles } from '@material-ui/core/styles'
+import Footer from '../footer'
+import Header from '../header'
+
+// styles
+import styles from './styles'
+
+class Index extends React.Component {
+ render () {
+ return (
+
+
+ {this.props.children}
+
+
+ )
+ }
+}
+
+export default withStyles(styles)(Index)
diff --git a/client/src/views/layout/styles.js b/client/src/views/layout/styles.js
new file mode 100644
index 000000000..45d50d118
--- /dev/null
+++ b/client/src/views/layout/styles.js
@@ -0,0 +1,7 @@
+const styles = theme => ({
+ mainContainer: {
+ minHeight: 1000
+ }
+})
+
+export default styles