Move google font request to index.html

This commit is contained in:
Jinksi 2017-03-29 20:52:46 +10:00
parent ecffe17fc6
commit 52862752eb
4 changed files with 5 additions and 6 deletions

View file

@ -13,7 +13,9 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,500,700">
<title>HyperStatic</title>
</head>
<body>
<div id="root"></div>

View file

@ -32,10 +32,7 @@ class App extends Component {
return (
<Router>
<div>
<Helmet
titleTemplate={`${siteTitle} | %s`}
link={[{rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Open+Sans'}]}
/>
<Helmet titleTemplate={`${siteTitle} | %s`} />
<Nav>
<Logo>🍉</Logo>
{routes.map((route, i) => (

View file

@ -10,7 +10,7 @@ const Header = styled(Section)`
background: ${color.primary};
color: white;
h2{
font-weight: 100;
font-weight: 200;
}
`

View file

@ -25,7 +25,7 @@ export default () => injectGlobal`
}
body {
font-family: ${font.primary};
font-family: ${font.system};
min-height: 100vh;
position: relative;
background: white;