fix(font): Pretendard 로컬 @font-face 제거 → CDN <link> 로 로드
로컬 /public/fonts/PretendardVariable.woff2 파일이 없어 404가 났다. 인터넷 연결 환경이므로 jsdelivr CDN(pretendard.min.css)으로 불러온다. 미로드 시 base.css 시스템 폰트 스택으로 폴백. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,14 +1,7 @@
|
|||||||
/* 디자인 토큰 — 폰트 + CSS 변수(라이트/다크). 가장 먼저 로드. */
|
/* 디자인 토큰 — 폰트 + CSS 변수(라이트/다크). 가장 먼저 로드. */
|
||||||
|
|
||||||
/* Pretendard — 폐쇄망 대비 로컬 호스팅(가변 폰트 1개). 파일이 없으면 시스템 폰트로 폴백.
|
/* Pretendard — CDN(jsdelivr)에서 로드. views/_header 의 <link> 로 불러온다(인터넷 연결 환경).
|
||||||
파일 받기: public/fonts/PretendardVariable.woff2 (README 안내 참고) */
|
미로드 시 base.css 의 시스템 폰트 스택으로 폴백. */
|
||||||
@font-face {
|
|
||||||
font-family: 'Pretendard';
|
|
||||||
font-weight: 45 920;
|
|
||||||
font-style: normal;
|
|
||||||
font-display: swap;
|
|
||||||
src: url('/public/fonts/PretendardVariable.woff2') format('woff2-variations');
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
color-scheme: light;
|
color-scheme: light;
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title><%= brand %></title>
|
<title><%= brand %></title>
|
||||||
<link rel="icon" href="/public/favicon.svg" type="image/svg+xml" />
|
<link rel="icon" href="/public/favicon.svg" type="image/svg+xml" />
|
||||||
|
<!-- Pretendard 폰트 (CDN · 인터넷 연결 환경) -->
|
||||||
|
<link rel="stylesheet" as="style" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css" />
|
||||||
<link rel="stylesheet" href="/public/css/tokens.css" />
|
<link rel="stylesheet" href="/public/css/tokens.css" />
|
||||||
<link rel="stylesheet" href="/public/css/base.css" />
|
<link rel="stylesheet" href="/public/css/base.css" />
|
||||||
<link rel="stylesheet" href="/public/css/layout.css" />
|
<link rel="stylesheet" href="/public/css/layout.css" />
|
||||||
|
|||||||
Reference in New Issue
Block a user