-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrated Nextjs font system
- Loading branch information
Showing
5 changed files
with
31 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
import '@/styles/globals.scss'; | ||
import type { AppProps } from 'next/app'; | ||
import { ReactElement } from 'react'; | ||
import type { AppProps } from "next/app"; | ||
import { ReactElement } from "react"; | ||
import { Inter } from "@next/font/google"; | ||
|
||
const inter = Inter ({ | ||
weight: ["400", "700"], | ||
subsets: ["latin"], | ||
variable: "--font-inter", | ||
}); | ||
|
||
export default function App({ Component, pageProps }: AppProps): ReactElement { | ||
return <Component {...pageProps} />; | ||
return ( | ||
<div className={`${inter.variable}`}> | ||
<Component {...pageProps} /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
|
||
export default function AboutUs(): React.JSX.Element { | ||
return ( | ||
<div> | ||
<h1>About Us</h1> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@use 'src/styles/mixins'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters