File tree Expand file tree Collapse file tree 4 files changed +21
-16
lines changed
Expand file tree Collapse file tree 4 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,6 @@ import plus from '../../assets/images/plus.svg';
55import Badge from '../Badge/Badge' ;
66import styles from './Card.module.scss' ;
77
8- const fontFamilyMap = {
9- 'Noto Sans' : '"Noto Sans", sans-serif' ,
10- Pretendard : '"Pretendard", sans-serif' ,
11- ๋๋๋ช
์กฐ : '"Nanum Myeongjo", serif' ,
12- '๋๋์๊ธ์จ ์ํธ์ง์ฒด' : '"Nanum Sonpyeonji Ce", cursive' ,
13- } ;
14-
158export default function Card ( {
169 id,
1710 image,
Original file line number Diff line number Diff line change @@ -5,13 +5,6 @@ import Badge from '../Badge/Badge';
55import Button from '../common/Button' ;
66import styles from './Modal.module.scss' ;
77
8- const fontFamilyMap = {
9- 'Noto Sans' : '"Noto Sans", sans-serif' ,
10- Pretendard : '"Pretendard", sans-serif' ,
11- ๋๋๋ช
์กฐ : '"Nanum Myeongjo", serif' ,
12- '๋๋์๊ธ์จ ์ํธ์ง์ฒด' : '"Nanum Sonpyeonji Ce", cursive' ,
13- } ;
14-
158export default function Modal ( {
169 image,
1710 sender,
@@ -53,7 +46,7 @@ export default function Modal({
5346 < div className = { styles [ 'modal__body' ] } >
5447 < div className = { styles [ 'modal__content' ] } >
5548 < div
56- style = { { fontFamily : fontFamilyMap [ font ] } }
49+ className = { ` ${ styles [ 'modal__content' ] } font- ${ font . replace ( / \s / g , '' ) } ` }
5750 dangerouslySetInnerHTML = { { __html : sanitizedHTML } }
5851 />
5952 </ div >
Original file line number Diff line number Diff line change 142142 width : calc (100% - 48px );
143143 }
144144}
145+
146+ :global(.font-๋๋๋ช
์กฐ ) {
147+ font-family : ' ๋๋๋ช
์กฐ' , serif ;
148+ }
149+
150+ :global(.font-๋๋์๊ธ์จ์ํธ์ง์ฒด ) {
151+ font-family : ' ๋๋์๊ธ์จ ์ํธ์ง์ฒด' , cursive;
152+ }
153+
154+ :global(.font-Pretendard ) {
155+ font-family : ' Pretendard' , sans-serif ;
156+ }
157+
158+ :global(.font-NotoSans ) {
159+ font-family : ' Noto Sans' , sans-serif ;
160+ }
Original file line number Diff line number Diff line change 5757 border : none ;
5858 cursor : pointer ;
5959 color : $white ;
60- transition : transform 0.3s ease ;
60+ transition :
61+ color 0.3s ease ,
62+ transform 0.3s ease ;
6163 @include font-18-bold ;
6264
6365 & :hover {
66+ color : $black ;
6467 animation : shake 0.5s ease ;
6568 animation-iteration-count : 1 ;
6669 }
You canโt perform that action at this time.
0 commit comments