Move google font request to index.html
This commit is contained in:
parent
ecffe17fc6
commit
52862752eb
4 changed files with 5 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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) => (
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const Header = styled(Section)`
|
|||
background: ${color.primary};
|
||||
color: white;
|
||||
h2{
|
||||
font-weight: 100;
|
||||
font-weight: 200;
|
||||
}
|
||||
`
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export default () => injectGlobal`
|
|||
}
|
||||
|
||||
body {
|
||||
font-family: ${font.primary};
|
||||
font-family: ${font.system};
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
background: white;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue