Skip to content

Commit 89601e3

Browse files
committed
feat: 패딩 값 추가
1 parent 0513386 commit 89601e3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/common/component/Mandalart/Square/Square.css.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,28 @@ const SQUARE_TYPES = {
1111
TODO_SUB: {
1212
width: '9.6rem',
1313
height: '9.6rem',
14+
padding: '0.6rem',
1415
mainFont: fonts.body04,
1516
subFont: fonts.caption01,
1617
},
1718
TODO_MAIN: {
1819
width: '19.6rem',
1920
height: '19.6rem',
21+
padding: '1.4rem',
2022
mainFont: fonts.title03,
2123
subFont: fonts.subtitle01,
2224
},
2325
TODO_EDIT: {
2426
width: '16rem',
2527
height: '16rem',
28+
padding: '1.2rem',
2629
mainFont: fonts.subtitle01,
2730
subFont: fonts.subtitle05,
2831
},
2932
MY_MANDAL: {
3033
width: '29.8rem',
3134
height: '29.8rem',
35+
padding: '4.4rem',
3236
mainFont: fonts.display02,
3337
subFont: fonts.title01,
3438
},
@@ -44,6 +48,7 @@ const createBaseCell = (type: keyof typeof SQUARE_TYPES) =>
4448
textAlign: 'center',
4549
width: SQUARE_TYPES[type].width,
4650
height: SQUARE_TYPES[type].height,
51+
padding: SQUARE_TYPES[type].padding,
4752
boxSizing: 'border-box',
4853
});
4954

src/page/home/Home.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
import Mandalart from '@/common/component/Mandalart/Mandalart';
2+
13
const Home = () => {
24
return (
35
<div>
46
<h1></h1>
7+
<Mandalart type={'TODO_SUB'} />
8+
<Mandalart type={'TODO_MAIN'} />
9+
<Mandalart type={'TODO_EDIT'} />
10+
<Mandalart type={'MY_MANDAL'} />
511
</div>
612
);
713
};

0 commit comments

Comments
 (0)