feat: implement poppins font

This commit is contained in:
arraysid
2025-05-17 05:12:27 +07:00
parent d1abc3c7d4
commit 9548272340
2 changed files with 10 additions and 4 deletions
+2 -4
View File
@@ -1,12 +1,10 @@
import { type Metadata } from 'next';
import { Inter } from 'next/font/google';
import { poppins } from '../../lib/fonts';
import '../../styles/globals.css';
import Footer from './_components/footer';
import { Header } from './_components/header';
import { ThemeProvider } from './_components/theme-provider';
const inter = Inter({ subsets: ['latin'] });
export const metadata: Metadata = {
title: 'IMPHNEN - Ingin Menjadi Programmer Handal Namung Enggan Ngonding',
description:
@@ -20,7 +18,7 @@ export default function RootLayout({
}) {
return (
<html lang="id" suppressHydrationWarning>
<body className={inter.className}>
<body className={poppins.className}>
<ThemeProvider
attribute="class"
defaultTheme="system"
+8
View File
@@ -0,0 +1,8 @@
// fonts.ts
import { Poppins } from 'next/font/google';
export const poppins = Poppins({
subsets: ['latin'],
weight: ['300', '400', '500', '600', '700'],
display: 'swap',
});