Skip to content

Commit

Permalink
refactor: font 위치 변경 및 sen google 폰트 제거 (#16)
Browse files Browse the repository at this point in the history
- font 위치 변경 및 sen google 폰트 제거
  • Loading branch information
saseungmin committed Jun 29, 2024
1 parent 67a70c3 commit 2f29039
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 19 deletions.
File renamed without changes.
12 changes: 1 addition & 11 deletions src/app/fonts/index.ts → src/app/_fonts/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Sen } from 'next/font/google';
import localFont from 'next/font/local';

// eslint-disable-next-line import/prefer-default-export
export const pretendardFont = localFont({
src: [
{
Expand All @@ -26,7 +26,6 @@ export const pretendardFont = localFont({
],
display: 'swap',
preload: true,
variable: '--font-pretendard',
fallback: [
'-apple-system',
'BlinkMacSystemFont',
Expand All @@ -43,12 +42,3 @@ export const pretendardFont = localFont({
'sans-serif',
],
});

export const senFont = Sen({
subsets: ['latin'],
display: 'swap',
preload: true,
variable: '--font-sen',
adjustFontFallback: false,
fallback: [],
});
6 changes: 2 additions & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import clsx from 'clsx';

import TopNavigationBar from '@/components/global/TopNavigationBar';

import { pretendardFont, senFont } from './fonts';
import { pretendardFont } from './_fonts';

import 'src/styles/global.scss';
import styles from './index.module.scss';
Expand All @@ -16,7 +14,7 @@ function RootLayout({ children }: {
children: React.ReactNode
}) {
return (
<html lang="ko" className={clsx(senFont.variable, pretendardFont.variable)}>
<html lang="ko" className={pretendardFont.className}>
<body>
<TopNavigationBar />
<main className={styles.main}>
Expand Down
4 changes: 0 additions & 4 deletions src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
@import "./mixin/text";
@import "./mixin/functions";

$font-sen: var(--font-sen);
$font-pretendard: var(--font-pretendard);

html {
font-family: #{$font-sen}, #{$font-pretendard};
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Expand Down

0 comments on commit 2f29039

Please sign in to comment.