|
1 | 1 | import '@/styles/globals.css';
|
2 | 2 | import Script from 'next/script';
|
3 | 3 | import type { Metadata, Viewport } from 'next';
|
4 |
| -import { Atkinson_Hyperlegible_Mono } from 'next/font/google'; |
5 | 4 | import { unstable_ViewTransition as ViewTransition } from 'react';
|
6 | 5 | import { Toaster } from 'react-hot-toast';
|
7 | 6 | import { SessionProvider } from 'next-auth/react';
|
8 | 7 | import { Footer } from '@/components/footer';
|
9 | 8 | import { ReportModal } from '@/components/report-modal';
|
10 | 9 | import { env } from '@/env.mjs';
|
| 10 | +import localFont from 'next/font/local'; |
11 | 11 |
|
12 |
| -const atkinsonHyperlegibleMono = Atkinson_Hyperlegible_Mono({ |
13 |
| - subsets: ['latin'], |
14 |
| - weight: ['400', '500'], |
15 |
| - display: 'swap', |
16 |
| - variable: '--font-space-grotesk' |
| 12 | +const atkinsonHyperlegibleMono = localFont({ |
| 13 | + variable: '--font-atkinson-hyperlegible-mono', |
| 14 | + src: [ |
| 15 | + { |
| 16 | + path: './fonts/AtkinsonHyperlegibleMono-Italic-VariableFont_wght.ttf', |
| 17 | + weight: '400', |
| 18 | + style: 'italic' |
| 19 | + }, |
| 20 | + { |
| 21 | + path: './fonts/AtkinsonHyperlegibleMono-VariableFont_wght.ttf', |
| 22 | + weight: '400', |
| 23 | + style: 'normal' |
| 24 | + } |
| 25 | + ] |
17 | 26 | });
|
18 | 27 |
|
19 | 28 | export default function RootLayout({ children }: React.PropsWithChildren) {
|
20 | 29 | return (
|
21 | 30 | <html className={atkinsonHyperlegibleMono.variable}>
|
22 |
| - <body className="font-sans font-normal bg-hacktoberfest-blue"> |
| 31 | + <body className="font-mono font-normal bg-hacktoberfest-blue"> |
23 | 32 | <ViewTransition>
|
24 | 33 | {children}
|
25 | 34 | <Footer />
|
|
0 commit comments