text: import React from "react"
  import PropTypes from "prop-types"
  import { StaticQuery, graphql } from "gatsby"
  
  import Header from "./header"
  import Footer from "./Footer"
  import ScrollUpButton from "react-scroll-up-button"
  
  import "./layout.css"
  
  const Layout = ({ children }) => (
    <StaticQuery
      query={graphql`
        query SiteTitleQuery {
          site {
            siteMetadata {
              title
            }
          }
        }
      `}
      render={data => (
        <>
          <Header siteTitle={data.site.siteMetadata.title} />
          <div
            style={{
              margin: `0 auto`,
              maxWidth: 960,
              padding: `0px 1.0875rem 1.45rem`,
              paddingTop: 0,
              marginTop: `1.45rem`,
            }}
          >
            <main>{children}</main>
          </div>
          <Footer />
          <ScrollUpButton style={{ backgroundColor: `#FF5100` }} />
        </>
      )}
    />
  )
  
  Layout.propTypes = {
    children: PropTypes.node.isRequired,
  }
  
  export default Layout
  