2018-06-25 10:53:58 +02:00
|
|
|
import React from 'react'
|
|
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
|
import Helmet from 'react-helmet'
|
|
|
|
|
|
2018-06-27 16:33:19 +02:00
|
|
|
import Header from '../components/Header'
|
|
|
|
|
import Footer from '../components/Footer'
|
2018-07-05 16:53:33 +02:00
|
|
|
import SideMenu from '../components/SideMenu'
|
2018-09-05 21:44:24 +02:00
|
|
|
|
2018-09-12 11:10:09 +02:00
|
|
|
require('typeface-montserrat')
|
|
|
|
|
require('typeface-pt-serif')
|
|
|
|
|
|
2018-07-04 10:03:22 +02:00
|
|
|
import '../styles/index.css'
|
2018-07-06 17:33:36 +02:00
|
|
|
import '../styles/general.css'
|
2018-06-25 10:53:58 +02:00
|
|
|
|
2018-09-05 13:13:04 +02:00
|
|
|
import favicon32 from '../images/favicon32.png'
|
|
|
|
|
|
2018-06-25 10:53:58 +02:00
|
|
|
const Layout = ({ children, data }) => (
|
2018-07-02 20:33:44 +02:00
|
|
|
<div className="font-sans mx-auto">
|
2018-06-25 10:53:58 +02:00
|
|
|
<Helmet
|
2018-09-05 13:13:04 +02:00
|
|
|
link={[{ rel: 'shortcut icon', type: 'image/png', href: `${favicon32}` }]}
|
2018-06-27 16:33:19 +02:00
|
|
|
/>
|
2018-09-05 21:55:29 +02:00
|
|
|
<main className="side-panel panel">
|
2018-07-05 16:49:34 +02:00
|
|
|
<Header />
|
|
|
|
|
{children()}
|
|
|
|
|
<Footer />
|
2018-09-05 21:55:29 +02:00
|
|
|
</main>
|
2018-07-05 16:53:33 +02:00
|
|
|
<SideMenu />
|
2018-06-25 10:53:58 +02:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
Layout.propTypes = {
|
|
|
|
|
children: PropTypes.func,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Layout
|