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-06-27 12:06:15 +02:00
|
|
|
import "../styles/index.css"
|
2018-06-25 10:53:58 +02:00
|
|
|
|
|
|
|
|
const Layout = ({ children, data }) => (
|
2018-06-27 13:22:17 +02:00
|
|
|
<div className="font-sans container mx-auto">
|
2018-06-25 10:53:58 +02:00
|
|
|
<Helmet
|
|
|
|
|
title={data.site.siteMetadata.title}
|
|
|
|
|
meta={[
|
|
|
|
|
{ name: 'description', content: 'We code & design great software' },
|
|
|
|
|
{ name: 'keywords', content: 'software, design, coding, programming, code, consulting' },
|
|
|
|
|
]}
|
2018-06-27 16:33:19 +02:00
|
|
|
/>
|
2018-06-25 10:53:58 +02:00
|
|
|
<Header siteTitle={data.site.siteMetadata.title} />
|
2018-06-27 13:22:17 +02:00
|
|
|
<main>
|
|
|
|
|
{children()}
|
|
|
|
|
</main>
|
|
|
|
|
<Footer />
|
2018-06-25 10:53:58 +02:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
Layout.propTypes = {
|
|
|
|
|
children: PropTypes.func,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Layout
|
|
|
|
|
|
|
|
|
|
export const query = graphql`
|
|
|
|
|
query SiteTitleQuery {
|
|
|
|
|
site {
|
|
|
|
|
siteMetadata {
|
|
|
|
|
title
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`
|