summaryrefslogtreecommitdiff
path: root/packages/bulwark/0001-use-local-google-fonts.patch
blob: 3d166b51c573d2b61809b5890c9748809d69b544 (plain)
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
diff --git a/app/(main)/layout.tsx b/app/(main)/layout.tsx
index ac5c3b4..de8b039 100644
--- a/app/(main)/layout.tsx
+++ b/app/(main)/layout.tsx
@@ -1,5 +1,5 @@
 import type { Metadata, Viewport } from "next";
-import { Geist, Geist_Mono } from "next/font/google";
+import localFont from "next/font/local";
 import { headers } from "next/headers";
 import { getLocale } from "next-intl/server";
 import { PWAInstallPrompt } from "@/components/pwa-install-prompt";
@@ -8,15 +8,8 @@ import { configManager } from "@/lib/admin/config-manager";
 import { withBasePath } from "@/lib/browser-navigation";
 import "../globals.css";
 
-const geistSans = Geist({
-  variable: "--font-geist-sans",
-  subsets: ["latin"],
-});
-
-const geistMono = Geist_Mono({
-  variable: "--font-geist-mono",
-  subsets: ["latin"],
-});
+const geistSans = localFont({src: '../Geist-Regular.otf', variable: "--font-geist-sans"})
+const geistMono = localFont({src: '../GeistMono-Regular.otf', variable: "--font-geist-mono"})
 
 export const viewport: Viewport = {
   width: "device-width",
diff --git a/app/(sandbox)/layout.tsx b/app/(sandbox)/layout.tsx
index 9813c79..0e91d4a 100644
--- a/app/(sandbox)/layout.tsx
+++ b/app/(sandbox)/layout.tsx
@@ -1,17 +1,10 @@
 import type { Metadata } from 'next';
 import type { ReactNode } from 'react';
-import { Geist, Geist_Mono } from 'next/font/google';
+import localFont from "next/font/local";
 import '../globals.css';
 
-const geistSans = Geist({
-  variable: '--font-geist-sans',
-  subsets: ['latin'],
-});
-
-const geistMono = Geist_Mono({
-  variable: '--font-geist-mono',
-  subsets: ['latin'],
-});
+const geistSans = localFont({src: '../Geist-Regular.otf', variable: "--font-geist-sans"})
+const geistMono = localFont({src: '../GeistMono-Regular.otf', variable: "--font-geist-mono"})
 
 export const metadata: Metadata = {
   title: 'Plugin sandbox',