Skip to content
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

Merged
merged 3 commits into from
May 21, 2023
Merged

Card 를 구현한다. #35

merged 3 commits into from
May 21, 2023

Conversation

yunjin-kim
Copy link
Contributor

작업내용

card 컴포넌트 구현했습니다. 딱히 특이사항은 없는 것 같네요.

close #34

@yunjin-kim yunjin-kim added the payments💳 페이먼츠 팀 이슈입니다 label May 7, 2023
@yunjin-kim yunjin-kim requested review from liswktjs and soyi47 May 7, 2023 10:27
@yunjin-kim yunjin-kim self-assigned this May 7, 2023
@yunjin-kim yunjin-kim linked an issue May 7, 2023 that may be closed by this pull request
@intae92 intae92 changed the base branch from release-w18 to release-w19 May 8, 2023 14:12
Copy link
Contributor

@soyi47 soyi47 left a 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}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

얘 카드 번호 왜 넣다 말았어요? ㅋㅋㅋㅋㅋㅋ 작은 카드는 번호 나오다 말길래 문제 있는 줄 알았슴다 ㅋㅋㅋㅋㅋ

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

숫자가 입력되는 과정을 보여주려고 했습니다ㅋㅋ

Comment on lines 13 to 47
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
}
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍👍👍

Copy link
Contributor

@liswktjs liswktjs left a 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={'김윤진'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

윤진씨 카드군요 ㅋㅋㅋㅋㅋㅋㅋㅋ 괜히 웃기네요 그런데 디자인 시스템 배포 될 예정인데 실명 들어가도 상관 없으신가요? ㅋㅋㅋㅋ

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저를 더 알리고 좋은거죠~

Comment on lines +14 to +31
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
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

카드 사이즈는 정말.... custom하게 해주지 맙시다 이게 좋을듯 하핫 👍

Comment on lines 40 to 43
cardNumber={1111222233334444}
expirationDate={{ month: '04', year: '24' }}
ownerName={'김윤진'}
cardType={{ name: '하나카드', color: 'green' }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 요소들은 storybook에서 직접 바꿔서 값 넣어볼 수 있게 해주는게 좋을 것 같습니다!

Comment on lines +43 to +46
<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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요기는 ref 까지는 굳이 넣어줄 필요 없겠죠? 궁금하네요 필요성의 여부... 어떻게 생각하시나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넣어줘야 하는 이유가 있나요?

@intae92 intae92 changed the base branch from release-w19 to release-w20 May 14, 2023 18:12
@yunjin-kim yunjin-kim requested a review from liswktjs May 15, 2023 14:31
@yunjin-kim yunjin-kim merged commit 40dd5ff into release-w20 May 21, 2023
@yunjin-kim yunjin-kim deleted the feat/34 branch May 21, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
payments💳 페이먼츠 팀 이슈입니다 release-w20
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Card 를 구현한다.
4 participants