text: /**
   * Layout component that queries for data
   * with Gatsby's useStaticQuery component
   *
   * See: https://www.gatsbyjs.org/docs/use-static-query/
   */
  
  import React from "react"
  import PropTypes from "prop-types"
  import { useStaticQuery, graphql } from "gatsby"
  
  import Header from "./Header/index"
  import "./layout.css"
  
  const Layout = ({ location, title, children }) => {
    const rootPath = `${__PATH_PREFIX__}/`
  
    const data = useStaticQuery(graphql`
      query SiteTitleQuery {
        site {
          siteMetadata {
            title
          }
        }
      }
    `)
  
    return (
      <div>
        <header>
          {" "}
          <Header location={location} />{" "}
        </header>
        <div
          style={{
            margin: `0 auto`,
            maxWidth: 960,
            padding: `0 1.0875rem 1.45rem`,
          }}
        >
          <main
          style={{
            minHeight: `calc(100vh - 120px)`,
            border: `0.5px solid #EEEEEE`,
            borderBottom: `0px`,
            borderRadius: `10px 10px 0px 0px`,
            paddingLeft: `30px`,
            paddingRight: `30px`,
            paddingTop: `-20px`,
          }}
        >
          {children}
        </main>
          <footer>
            © {new Date().getFullYear()}, Built with
            {` `}
            <a href="https://www.gatsbyjs.org">Gatsby</a>
          </footer>
        </div>
      </div>
    )
  }
  
  Layout.propTypes = {
    children: PropTypes.node.isRequired,
  }
  
  export default Layout
  