Skip to content

Commit

Permalink
feat: pretendard subset 웹폰트 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
Coalery committed Jun 6, 2024
1 parent f14e180 commit d0be83f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
@import url("https://cdnjs.cloudflare.com/ajax/libs/pretendard/1.3.9/variable/pretendardvariable-dynamic-subset.min.css");

@tailwind utilities;

body {
font-family: "Pretendard Variable", sans-serif;
}
6 changes: 1 addition & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";

const pretendard = localFont({
src: "../static/fonts/PretendardVariable.woff2",
});

const title = "자기 소개 - 김현우";
const description =
"보이지 않는 곳에서 동작하는 것에 대해 알아보는 걸 좋아합니다.";
Expand All @@ -26,7 +22,7 @@ export default function RootLayout({
}>) {
return (
<html lang="ko">
<body className={pretendard.className}>{children}</body>
<body>{children}</body>
</html>
);
}
Binary file removed static/fonts/PretendardVariable.woff2
Binary file not shown.

0 comments on commit d0be83f

Please sign in to comment.