UNPKG

gatsby-theme-netlify-identity

Version:

This is a bare-bones Gatsby theme to showcase how a [Theme Jam](https://themejam.gatsbyjs.org) submission should look.

37 lines (33 loc) 701 B
import React from "react" import { css, Global } from "@emotion/core" import { Layout as StyledLayout, Header, Main, Container } from "theme-ui" import { graphql, useStaticQuery } from "gatsby" const Layout = ({ children }) => { const data = useStaticQuery(graphql` query { site { siteMetadata { title } } } `) return ( <StyledLayout> <Global styles={css` body { margin: 0; } `} /> <Header> <span>{data.site.siteMetadata.title}</span> </Header> <Main> <Container>{children}</Container> </Main> </StyledLayout> ) } export default Layout