From 6a39651ad3974272daf5865586af98c5ff091355 Mon Sep 17 00:00:00 2001 From: Debanjum Date: Sun, 24 Nov 2024 15:02:14 -0800 Subject: [PATCH] Standardize loading fonts locally across pages on web app --- src/interface/web/app/agents/layout.tsx | 8 +++----- src/interface/web/app/chat/layout.tsx | 8 +++----- src/interface/web/app/fonts.ts | 13 +++++++++++++ src/interface/web/app/globals.css | 5 ++--- src/interface/web/app/layout.tsx | 8 +++----- src/interface/web/app/settings/layout.tsx | 8 +++----- src/interface/web/app/share/chat/layout.tsx | 8 +++----- src/interface/web/tailwind.config.ts | 3 +++ 8 files changed, 33 insertions(+), 28 deletions(-) create mode 100644 src/interface/web/app/fonts.ts diff --git a/src/interface/web/app/agents/layout.tsx b/src/interface/web/app/agents/layout.tsx index b30c782d..c7779b06 100644 --- a/src/interface/web/app/agents/layout.tsx +++ b/src/interface/web/app/agents/layout.tsx @@ -1,9 +1,7 @@ import type { Metadata } from "next"; -import { Noto_Sans } from "next/font/google"; +import { noto_sans, noto_sans_arabic } from "@/app/fonts"; import "../globals.css"; -const inter = Noto_Sans({ subsets: ["latin"] }); - export const metadata: Metadata = { title: "Khoj AI - Agents", description: "Find a specialized agent that can help you address more specific needs.", @@ -33,7 +31,7 @@ export default function RootLayout({ children: React.ReactNode; }>) { return ( - + - {children} + {children} ); } diff --git a/src/interface/web/app/chat/layout.tsx b/src/interface/web/app/chat/layout.tsx index 09c3afb7..4e4661f1 100644 --- a/src/interface/web/app/chat/layout.tsx +++ b/src/interface/web/app/chat/layout.tsx @@ -1,9 +1,7 @@ import type { Metadata } from "next"; -import { Noto_Sans } from "next/font/google"; +import { noto_sans, noto_sans_arabic } from "@/app/fonts"; import "../globals.css"; -const inter = Noto_Sans({ subsets: ["latin"] }); - export const metadata: Metadata = { title: "Khoj AI - Chat", description: @@ -34,7 +32,7 @@ export default function RootLayout({ children: React.ReactNode; }>) { return ( - + - + {children}