-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_app.tsx
67 lines (65 loc) · 1.64 KB
/
_app.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import '../styles/globals.css';
import type { AppProps } from 'next/app';
import Head from 'next/head';
import { Analytics } from '@vercel/analytics/react';
import {
Space_Grotesk,
IBM_Plex_Serif,
Inter,
Space_Mono,
Press_Start_2P,
Alegreya
} from 'next/font/google';
import '@fortawesome/fontawesome-svg-core/styles.css';
import Script from 'next/script';
const spaceGrotesk = Space_Grotesk({
weight: ['400', '700'],
subsets: ['latin'],
variable: '--font-space-grotesk'
});
const ibmPlexSerif = IBM_Plex_Serif({
weight: ['400', '700'],
subsets: ['latin'],
variable: '--font-ibm-plex-serif',
display: 'swap'
});
const inter = Inter({
subsets: ['latin'],
variable: '--font-inter',
display: 'swap'
});
const spaceMono = Space_Mono({
weight: ['400', '700'],
subsets: ['latin'],
variable: '--font-space-mono',
display: 'swap'
});
const pressStart = Press_Start_2P({
weight: ['400'],
subsets: ['latin'],
variable: '--font-press-start',
display: 'swap'
});
const alegreya = Alegreya({
weight: ['400', '600'],
subsets: ['latin'],
variable: '--font-alegreya',
display: 'swap'
});
export default function App({ Component, pageProps }: AppProps) {
return (
<>
<Head>
<meta name="theme-color" content="#D97706" />
<link rel="icon" href={'/favicon.ico'} />
</Head>
<main
className={`${spaceGrotesk.variable} ${ibmPlexSerif.variable} ${inter.variable} ${spaceMono.variable} ${pressStart.variable} ${alegreya.variable} font-main`}
>
<Component {...pageProps} />
<Script src="https://simple.cdkol.live/latest.js" />
</main>
<Analytics />
</>
);
}