feat: replace Inter font with Bai Jamjuree in layout and add font utility
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
|
import { baiJamjureeFont } from '@/lib/fonts';
|
||||||
import '@/styles/globals.css';
|
import '@/styles/globals.css';
|
||||||
import { type Metadata } from 'next';
|
import { type Metadata } from 'next';
|
||||||
import { Inter } from 'next/font/google';
|
|
||||||
import { Providers } from './_components/providers';
|
import { Providers } from './_components/providers';
|
||||||
|
|
||||||
const inter = Inter({ subsets: ['latin'] });
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: 'IMPHNEN - Ingin Menjadi Programmer Handal?',
|
title: 'IMPHNEN - Ingin Menjadi Programmer Handal?',
|
||||||
description: 'Komunitas belajar programming untuk semua level',
|
description: 'Komunitas belajar programming untuk semua level',
|
||||||
@@ -17,7 +15,7 @@ export default function RootLayout({
|
|||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<html lang="id" suppressHydrationWarning>
|
<html lang="id" suppressHydrationWarning>
|
||||||
<body className={inter.className}>
|
<body className={baiJamjureeFont.className}>
|
||||||
<Providers
|
<Providers
|
||||||
attribute="class"
|
attribute="class"
|
||||||
defaultTheme="system"
|
defaultTheme="system"
|
||||||
|
|||||||
@@ -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',
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user