Skip to content

Commit

Permalink
[perf] 폰트 서브셋 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
lybell-art committed Aug 22, 2024
1 parent 5b79c9d commit 822ad27
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 12 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<meta name="description" content="HI. Five. The new IONIQ 5. 소프티어 부트캠프 4기-팀 어썸 오렌지의 IONIQ 5 이벤트 페이지입니다." />
<link rel="preload" href="/font/DS-DIGI.TTF" as="font" type="font/ttf" crossorigin="anonymous">
<link rel="preload" href="/font/HyundaiSansTextKROTFBold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="/font/HyundaiSansTextKROTFMedium.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="/font/HyundaiSansTextKROTFRegular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="/font/fonts.css" as="style" crossorigin="anonymous" onload="this.onload=null;this.rel='stylesheet'">
<title>Awesome Orange FE</title>
Expand Down
Binary file removed public/font/HyundaiSansTextKROTFBold.otf
Binary file not shown.
Binary file added public/font/HyundaiSansTextKROTFBold.woff
Binary file not shown.
Binary file modified public/font/HyundaiSansTextKROTFBold.woff2
Binary file not shown.
Binary file removed public/font/HyundaiSansTextKROTFMedium.otf
Binary file not shown.
Binary file added public/font/HyundaiSansTextKROTFMedium.woff
Binary file not shown.
Binary file modified public/font/HyundaiSansTextKROTFMedium.woff2
Binary file not shown.
Binary file removed public/font/HyundaiSansTextKROTFRegular.otf
Binary file not shown.
Binary file added public/font/HyundaiSansTextKROTFRegular.woff
Binary file not shown.
Binary file modified public/font/HyundaiSansTextKROTFRegular.woff2
Binary file not shown.
13 changes: 4 additions & 9 deletions public/font/fonts.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
@font-face {
font-family: "hdsans";
src: url("/font/HyundaiSansTextKROTFBold.woff2") format("woff2");
src: url("/font/HyundaiSansTextKROTFBold.woff2") format("woff2"),
url('/font/HyundaiSansTextKROTFBold.woff') format('woff');
font-weight: bold;
font-display: swap;
}

@font-face {
font-family: "hdsans";
src: url("/font/HyundaiSansTextKROTFMedium.woff2") format("woff2");
font-weight: 500;
font-display: swap;
}

@font-face {
font-family: "hdsans";
src: url("/font/HyundaiSansTextKROTFRegular.woff2") format("woff2");
src: url("/font/HyundaiSansTextKROTFRegular.woff2") format("woff2"),
url('/font/HyundaiSansTextKROTFRegular.woff') format('woff');
font-weight: 400;
font-display: swap;
}
8 changes: 8 additions & 0 deletions src/adminPage/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
@tailwind components;
@tailwind utilities;

@font-face {
font-family: "hdsans";
src: url("/font/HyundaiSansTextKROTFMedium.woff2") format("woff2"),
url('/font/HyundaiSansTextKROTFMedium.woff') format('woff');
font-weight: 500;
font-display: swap;
}

@layer base {
body {
font-family: "hdsans", sans-serif;
Expand Down
4 changes: 2 additions & 2 deletions src/common/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const EVENT_FCFS_ID = "HD240821_001";
export const EVENT_FCFS_ID = "HD_240821_001";
export const EVENT_DRAW_ID = "HD_240808_001";
export const EVENT_ID = "the-new-ioniq5";
export const EVENT_START_DATE = new Date(2024, 8, 9);
export const EVENT_START_DATE = new Date(2024, 7, 20);

export const SERVICE_TOKEN_ID = "AWESOME_ORANGE_ACCESS_TOKEN";
export const ADMIN_TOKEN_ID = "AWESOME_ORANGE_ADMIN_ACCESS_TOKEN";
Expand Down

0 comments on commit 822ad27

Please sign in to comment.