-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path_app.tsx
More file actions
45 lines (37 loc) · 1.15 KB
/
_app.tsx
File metadata and controls
45 lines (37 loc) · 1.15 KB
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
import "@/styles/globals.css";
import "leaflet/dist/leaflet.css";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import type { AppProps } from "next/app";
import { Fira_Code, Inter as FontSans, Jersey_10 } from "next/font/google";
import Footer from "@/components/main/Footer";
import Navbar from "@/components/main/Navbar";
const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-sans",
});
const jersey10 = Jersey_10({
weight: "400",
subsets: ["latin"],
variable: "--font-jersey10",
});
const firaCode = Fira_Code({
subsets: ["latin"],
variable: "--font-firaCode",
});
const fonts = [fontSans, jersey10, firaCode];
const queryClient = new QueryClient();
export default function App({ Component, pageProps }: AppProps) {
return (
<QueryClientProvider client={queryClient}>
<ReactQueryDevtools initialIsOpen={false} />
<main
className={`font-sans ` + fonts.map((font) => font.variable).join(" ")}
>
<Navbar />
<Component {...pageProps} />
<Footer />
</main>
</QueryClientProvider>
);
}