Skip to content

Commit 0b38726

Browse files
authored
๐ŸŽจ style: Card ์ปดํฌ๋„ŒํŠธ์— ํฐํŠธ ํด๋ž˜์Šค ์ถ”๊ฐ€ ๋ฐ ์ ์šฉ
๐ŸŽจ style: Card ์ปดํฌ๋„ŒํŠธ์— ํฐํŠธ ํด๋ž˜์Šค ์ถ”๊ฐ€ ๋ฐ ์ ์šฉ
2 parents 088d2c9 + 529bbbc commit 0b38726

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
@@ -184,3 +184,19 @@
184184
}
185185
}
186186
}
187+
188+
:global(.font-๋‚˜๋ˆ”๋ช…์กฐ) {
189+
font-family: '๋‚˜๋ˆ”๋ช…์กฐ', serif;
190+
}
191+
192+
:global(.font-๋‚˜๋ˆ”์†๊ธ€์”จ์†ํŽธ์ง€์ฒด) {
193+
font-family: '๋‚˜๋ˆ”์†๊ธ€์”จ ์†ํŽธ์ง€์ฒด', cursive;
194+
}
195+
196+
:global(.font-Pretendard) {
197+
font-family: 'Pretendard', sans-serif;
198+
}
199+
200+
:global(.font-NotoSans) {
201+
font-family: 'Noto Sans', sans-serif;
202+
}

0 commit comments

Comments
ย (0)