Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

웹 폰트 최적화하기 (#479) #480

Merged
merged 2 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/fonts/NotoSansKR-Bold.eot
Binary file not shown.
Binary file added public/fonts/NotoSansKR-Bold.ttf
Binary file not shown.
Binary file added public/fonts/NotoSansKR-Bold.woff
Binary file not shown.
Binary file added public/fonts/NotoSansKR-Bold.woff2
Binary file not shown.
Binary file added public/fonts/NotoSansKR-Medium.eot
Binary file not shown.
Binary file added public/fonts/NotoSansKR-Medium.ttf
Binary file not shown.
Binary file added public/fonts/NotoSansKR-Medium.woff
Binary file not shown.
Binary file added public/fonts/NotoSansKR-Medium.woff2
Binary file not shown.
Binary file added public/fonts/NotoSansKR-Regular.eot
Binary file not shown.
Binary file added public/fonts/NotoSansKR-Regular.ttf
Binary file not shown.
Binary file added public/fonts/NotoSansKR-Regular.woff
Binary file not shown.
Binary file added public/fonts/NotoSansKR-Regular.woff2
Binary file not shown.
Binary file added public/fonts/NotoSansKR-SemiBold.eot
Binary file not shown.
Binary file added public/fonts/NotoSansKR-SemiBold.ttf
Binary file not shown.
Binary file added public/fonts/NotoSansKR-SemiBold.woff
Binary file not shown.
Binary file added public/fonts/NotoSansKR-SemiBold.woff2
Binary file not shown.
50 changes: 46 additions & 4 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,47 @@
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');
@font-face {
font-family: 'Noto Sans KR';
font-style: normal;
font-weight: 400;
src: url(/fonts/NotoSansKR-Regular.eot),
url(/fonts/NotoSansKR-Regular.woff2) format('woff2'),
url(/fonts/NotoSansKR-Regular.woff) format('woff'),
url(/fonts/NotoSansKR-Regular.ttf) format('truetype');
font-display: swap;
}

@font-face {
font-family: 'Noto Sans KR';
font-style: normal;
font-weight: 500;
src: url(/fonts/NotoSansKR-Medium.eot),
url(/fonts/NotoSansKR-Medium.woff2) format('woff2'),
url(/fonts/NotoSansKR-Medium.woff) format('woff'),
url(/fonts/NotoSansKR-Medium.ttf) format('truetype');
font-display: swap;
}

@font-face {
font-family: 'Noto Sans KR';
font-style: normal;
font-weight: 600;
src: url(/fonts/NotoSansKR-SemiBold.eot),
url(/fonts/NotoSansKR-SemiBold.woff2) format('woff2'),
url(/fonts/NotoSansKR-SemiBold.woff) format('woff'),
url(/fonts/NotoSansKR-SemiBold.ttf) format('truetype');
font-display: swap;
}

@font-face {
font-family: 'Noto Sans KR';
font-style: normal;
font-weight: 700;
src: url(/fonts/NotoSansKR-Bold.eot),
url(/fonts/NotoSansKR-Bold.woff2) format('woff2'),
url(/fonts/NotoSansKR-Bold.woff) format('woff'),
url(/fonts/NotoSansKR-Bold.ttf) format('truetype');
font-display: swap;
}

@tailwind base;
@tailwind components;
@tailwind utilities;
Expand All @@ -19,9 +62,8 @@ body,

body {
font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui,
Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR',
'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
sans-serif;
Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic',
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
letter-spacing: -0.48px;
}

Expand Down