Skip to content

Commit

Permalink
Move fonts to _document.js
Browse files Browse the repository at this point in the history
  • Loading branch information
neha-vard committed Mar 27, 2024
1 parent 8a86b2c commit 04308a2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 15 additions & 2 deletions src/pages/_document.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
import { Html, Head, Main, NextScript } from "next/document";
import {Html, Head, Main, NextScript} from "next/document";

export default function Document() {
return (
<Html lang="en">
<Head />
<Head>
<link
href="https://fonts.googleapis.com/css2?family=Gloock&family=Lato:wght@300&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Audiowide&family=Gloock&family=Lato:wght@300&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap"
rel="stylesheet"
/>
</Head>
<body>
<Main />
<NextScript />
Expand Down
4 changes: 2 additions & 2 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "~bootstrap/dist/css/bootstrap.min.css";
@import url("https://fonts.googleapis.com/css2?family=Gloock&family=Lato:wght@300&display=swap");
/* @import url("https://fonts.googleapis.com/css2?family=Gloock&family=Lato:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Audiowide&family=Gloock&family=Lato:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap"); */

:root {
--max-width: 1100px;
Expand Down

0 comments on commit 04308a2

Please sign in to comment.