text: /**
   * Layout component that queries for data
   * with Gatsby's StaticQuery component
   *
   * See: https://www.gatsbyjs.org/docs/static-query/
   */
  
  import React from "react"
  import PropTypes from "prop-types"
  import Navbar from "../components/globals/navbar"
  import Footer from "../components/globals/Footer"
  
  import "./bootstrap.min.css"
  // import "./layout.css"
  
  import { createGlobalStyle } from "styled-components"
  
  const Layout = ({ children }) => {
    return (
      <React.Fragment>
        <GlobalStyle />
        <Navbar />
        {children}
        <Footer />
      </React.Fragment>
    )
  }
  
  const GlobalStyle = createGlobalStyle`
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  `
  
  Layout.propTypes = {
    children: PropTypes.node.isRequired,
  }
  
  export default Layout
  