Skip to content

Commit 3cafc3c

Browse files
committed
๐ŸŽจ style: Card ์ปดํฌ๋„ŒํŠธ์— ํฐํŠธ ํด๋ž˜์Šค ์ถ”๊ฐ€ ๋ฐ ์ ์šฉ
1 parent b8f0fd1 commit 3cafc3c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

โ€Žsrc/components/Card/Card.jsxโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default function Card({
7676
<div className={styles['card__body']}>
7777
<div className={styles['card__content']}>
7878
<div
79-
style={{ fontFamily: fontFamilyMap[font] }}
79+
className={`${styles['card__content']} font-${font.replace(/\s/g, '')}`}
8080
dangerouslySetInnerHTML={{ __html: sanitizedHTML }}
8181
/>
8282
</div>

โ€Žsrc/components/Card/Card.module.scssโ€Ž

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,19 @@
153153
}
154154
}
155155
}
156+
157+
:global(.font-๋‚˜๋ˆ”๋ช…์กฐ) {
158+
font-family: '๋‚˜๋ˆ”๋ช…์กฐ', serif;
159+
}
160+
161+
:global(.font-๋‚˜๋ˆ”์†๊ธ€์”จ์†ํŽธ์ง€์ฒด) {
162+
font-family: '๋‚˜๋ˆ”์†๊ธ€์”จ ์†ํŽธ์ง€์ฒด', cursive;
163+
}
164+
165+
:global(.font-Pretendard) {
166+
font-family: 'Pretendard', sans-serif;
167+
}
168+
169+
:global(.font-NotoSans) {
170+
font-family: 'Noto Sans', sans-serif;
171+
}

0 commit comments

Comments
ย (0)