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"

View File

@@ -21171,11 +21171,6 @@ nested-object-assign@^1.0.3:
resolved "https://registry.yarnpkg.com/nested-object-assign/-/nested-object-assign-1.0.3.tgz#5aca69390d9affe5a612152b5f0843ae399ac597"
integrity sha512-kgq1CuvLyUcbcIuTiCA93cQ2IJFSlRwXcN+hLcb2qLJwC2qrePHGZZa7IipyWqaWF6tQjdax2pQnVxdq19Zzwg==
next-google-fonts@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/next-google-fonts/-/next-google-fonts-1.2.1.tgz#0b517cff3f34b8f7836f81eb9427973c8b4ac03e"
integrity sha512-BhVSldP1oZBTwXeJdMtjmu2qbDT1EkbQO2rG83Oj6APYm6aUsIcMu00Pzkzd8TTkrQW9HyC08Pzr10PY4pE6jA==
next-tick@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c"