chore: moving file structure of components

This commit is contained in:
Kyle Gill
2019-05-18 14:56:36 -06:00
parent b4d43aaa66
commit f8f6eda47b
15 changed files with 6 additions and 20 deletions

47
src/components/Layout.js Normal file
View File

@@ -0,0 +1,47 @@
import React from "react"
import { Helmet } from "react-helmet"
import { Global, css } from "@emotion/core"
import styled from "@emotion/styled"
import { SimpleNavbar } from "../Navbar"
import { withTheme } from "emotion-theming"
const Layout = ({ children, theme }) => (
<>
<Helmet title="Sol Journal" />
<Global
styles={css`
* {
/* transition: 0.2s border-color ease-in-out, 0.2s fill ease-in-out,
0.2s box-shadow ease-in-out, 0.2s background-color ease-in-out,
0.2s color ease-in-out; */
overflow: -moz-scrollbars-none;
}
*::-webkit-scrollbar {
width: 0 !important;
}
html {
background-color: ${theme.colors.bodyBackground};
}
h1 {
font-family: "Montserrat", -apple-system, BlinkMacSystemFont,
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
}
body {
margin: 0;
padding: 0;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
"Helvetica Neue", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
`}
/>
{children}
</>
)
export default withTheme(Layout)