-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Card 를 구현한다. #35
Card 를 구현한다. #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
스타일드 컴포넌트 파일명 컨벤션 맞춰서 수정해줄거라 믿고 어프루브~ 👏👏👏
render: () => ( | ||
<Card | ||
size="small" | ||
cardNumber={11112} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
얘 카드 번호 왜 넣다 말았어요? ㅋㅋㅋㅋㅋㅋ 작은 카드는 번호 나오다 말길래 문제 있는 줄 알았슴다 ㅋㅋㅋㅋㅋ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
숫자가 입력되는 과정을 보여주려고 했습니다ㅋㅋ
const cardSizeConfig = { | ||
small: { | ||
width: 152, | ||
height: 100, | ||
padding: 10, | ||
fontSize: 10 | ||
}, | ||
medium: { | ||
width: 208, | ||
height: 130, | ||
padding: 14, | ||
fontSize: 14 | ||
}, | ||
large: { | ||
width: 300, | ||
height: 183, | ||
padding: 20, | ||
fontSize: 18 | ||
} | ||
}; | ||
|
||
const icChipConfig = { | ||
small: { | ||
width: 30, | ||
height: 20 | ||
}, | ||
medium: { | ||
width: 40, | ||
height: 26 | ||
}, | ||
large: { | ||
width: 55, | ||
height: 35 | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
윤진킴 카드 뽑았다~
size="small" | ||
cardNumber={11112} | ||
expirationDate={{ month: '04', year: '24' }} | ||
ownerName={'김윤진'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
윤진씨 카드군요 ㅋㅋㅋㅋㅋㅋㅋㅋ 괜히 웃기네요 그런데 디자인 시스템 배포 될 예정인데 실명 들어가도 상관 없으신가요? ㅋㅋㅋㅋ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저를 더 알리고 좋은거죠~
small: { | ||
width: 152, | ||
height: 100, | ||
padding: 10, | ||
fontSize: 10 | ||
}, | ||
medium: { | ||
width: 208, | ||
height: 130, | ||
padding: 14, | ||
fontSize: 14 | ||
}, | ||
large: { | ||
width: 300, | ||
height: 183, | ||
padding: 20, | ||
fontSize: 18 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
카드 사이즈는 정말.... custom하게 해주지 맙시다 이게 좋을듯 하핫 👍
cardNumber={1111222233334444} | ||
expirationDate={{ month: '04', year: '24' }} | ||
ownerName={'김윤진'} | ||
cardType={{ name: '하나카드', color: 'green' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 요소들은 storybook에서 직접 바꿔서 값 넣어볼 수 있게 해주는게 좋을 것 같습니다!
<CardNumber size={size}>{cardNumbers[0]}</CardNumber> | ||
<CardNumber size={size}>{cardNumbers[1]}</CardNumber> | ||
<CardNumber size={size}>{cardNumbers[2].replace(/./g, '*')}</CardNumber> | ||
<CardNumber size={size}>{cardNumbers[3].replace(/./g, '*')}</CardNumber> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요기는 ref 까지는 굳이 넣어줄 필요 없겠죠? 궁금하네요 필요성의 여부... 어떻게 생각하시나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넣어줘야 하는 이유가 있나요?
작업내용
card 컴포넌트 구현했습니다. 딱히 특이사항은 없는 것 같네요.
close #34