Skip to content

Commit

Permalink
feat: add local font
Browse files Browse the repository at this point in the history
  • Loading branch information
kcwww committed Dec 12, 2024
1 parent bd076a2 commit add00de
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
Binary file added app/fonts/SejongGeulggot.ttf
Binary file not shown.
Binary file added app/fonts/SejongGeulggot.woff
Binary file not shown.
Binary file added app/fonts/SejongGeulggot.woff2
Binary file not shown.
25 changes: 20 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Metadata, Viewport } from 'next';
import { Analytics } from '@vercel/analytics/react';
import { GoogleAnalytics } from '@next/third-parties/google';

import { Jua } from 'next/font/google';
import localFont from 'next/font/local';
import './globals.css';

import { cn } from '@/lib/utils';
Expand All @@ -12,9 +12,24 @@ import QueryProvider from '@/shared/components/providers/QueryProvider';
import { ORIGIN } from '@/shared/constants/url';
import Head from 'next/head';

const inter = Jua({
weight: '400',
subsets: ['latin'],
const sejongGeulggot = localFont({
src: [
{
path: './fonts/SejongGeulggot.woff2',
weight: '800',
style: 'normal',
},
{
path: './fonts/SejongGeulggot.woff',
weight: '800',
style: 'normal',
},
{
path: './fonts/SejongGeulggot.ttf',
weight: '600',
style: 'normal',
},
],
});

export const metadata: Metadata = {
Expand Down Expand Up @@ -78,7 +93,7 @@ export default function RootLayout({
/>
</Head>

<body className={cn(inter.className, 'min-h-svh bg-primary')}>
<body className={cn(sejongGeulggot.className, 'min-h-svh bg-primary')}>
<QueryProvider>
<AuthProvider>{children}</AuthProvider>
</QueryProvider>
Expand Down

0 comments on commit add00de

Please sign in to comment.