Fix fonts in web app

This commit is contained in:
Hammad Jutt
2020-08-02 19:07:00 -06:00
parent c22e932723
commit c2cfd22571
3 changed files with 4 additions and 8 deletions

View File

@@ -14,7 +14,6 @@
"graphql": "^15.0.0",
"isomorphic-unfetch": "^3.0.0",
"next": "latest",
"next-google-fonts": "^1.2.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"urql": "^1.9.7"

View File

@@ -1,4 +1,3 @@
import GoogleFonts from 'next-google-fonts';
import Document, {
DocumentContext,
DocumentInitialProps,
@@ -19,8 +18,11 @@ class MetaDocument extends Document {
render(): JSX.Element {
return (
<Html>
<GoogleFonts href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=IBM+Plex+Sans:wght@400;700&family=Press+Start+2P&display=swap" />
<Head>
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=IBM+Plex+Sans:wght@400;700&family=Press+Start+2P&display=swap"
rel="stylesheet"
/>
<meta charSet="UTF-8" />
<meta
name="viewport"