feat: replace Inter font with Bai Jamjuree in layout and add font utility

This commit is contained in:
arraysid
2025-05-27 02:33:04 +07:00
parent d5607b456b
commit 684f299194
2 changed files with 9 additions and 4 deletions
+2 -4
View File
@@ -1,10 +1,8 @@
import { baiJamjureeFont } from '@/lib/fonts';
import '@/styles/globals.css';
import { type Metadata } from 'next';
import { Inter } from 'next/font/google';
import { Providers } from './_components/providers';
const inter = Inter({ subsets: ['latin'] });
export const metadata: Metadata = {
title: 'IMPHNEN - Ingin Menjadi Programmer Handal?',
description: 'Komunitas belajar programming untuk semua level',
@@ -17,7 +15,7 @@ export default function RootLayout({
}) {
return (
<html lang="id" suppressHydrationWarning>
<body className={inter.className}>
<body className={baiJamjureeFont.className}>
<Providers
attribute="class"
defaultTheme="system"
+7
View File
@@ -0,0 +1,7 @@
import { Bai_Jamjuree } from 'next/font/google';
export const baiJamjureeFont = Bai_Jamjuree({
subsets: ['latin'],
weight: ['300', '400', '500', '600', '700'],
display: 'swap',
});