nixpkgs/pkgs/by-name/cr/crabfit-frontend/01-localfont.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
643 B
Diff
Raw Normal View History

diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index d4c1466..76c9931 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,5 +1,5 @@
import { Metadata } from 'next'
-import { Karla } from 'next/font/google'
+import localFont from 'next/font/local'
import { Analytics } from '@vercel/analytics/react'
import Egg from '/src/components/Egg/Egg'
@@ -10,7 +10,7 @@ import { useTranslation } from '/src/i18n/server'
import './global.css'
-const karla = Karla({ subsets: ['latin'] })
+const karla = localFont({ src: './fonts/karla.ttf' })
export const metadata: Metadata = {
metadataBase: new URL('https://crab.fit'),