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

Feat/#210 card collection filter UI #211

Merged
merged 8 commits into from
Feb 25, 2023

Conversation

leeJooHaem
Copy link
Collaborator

@leeJooHaem leeJooHaem commented Feb 23, 2023

  • 브랜치명, 브랜치 알맞게 설정
  • Reviewer, Assignees, Label, Milestone, Issue(PR 작성 후에) 붙이기
  • PR이 승인된 경우 해당 브랜치는 삭제하기

📌 내용

4시간소요

  • 카드 페이지 필터 부분 UI를 수정하였습니다
  • 🔗 Portal을 이용하여 Modal을 구성해주었어요. 원하는 태그에 모달 요소를 넣어줌으로서 PC뷰에서도 모달창을 이쁘게 구성할 수 있어요.

📌 질문할 부분


📸 스크린샷

@leeJooHaem leeJooHaem marked this pull request as ready for review February 23, 2023 09:59
Copy link
Contributor

@NYeonK NYeonK left a comment

Choose a reason for hiding this comment

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

그는 매우 빠르다..😎

코드보면서 portal 적용 왜 하는지 알 수 있었숨다 고생했어요오😊😊

background: ${(props: RangeTrackProps) =>
getTrackBackground({
values: props.price,
colors: ["#19BE7E", "#ffffff"], // [newColors.green, newColors.white]
Copy link
Contributor

Choose a reason for hiding this comment

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

여기에는 theme 적용이 어려운 건가요?!

Copy link
Member

Choose a reason for hiding this comment

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

덕분에 해결했어요 !!!~!! :))
a6cb47f

Comment on lines 3 to 15
const WhiteRoot = styled.div`
height: 100vh;

position: absolute;
left: 0;
right: 0;
top: 0;
z-index: 10;

background-color: rgb(0, 0, 0, 0.5);
display: flex;
align-items: center;
`;
Copy link
Contributor

Choose a reason for hiding this comment

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

const 부모객체 = styled.div`
  중복 프로퍼티...
`;

// export
const 자식객체1 = styled(부모객체)`
  추가 프로퍼티...
`;

// export
const 자식객체2 = styled(부모객체)`
  추가 프로퍼티...
`;

theme이 white일 때와 default일 때의 차이가 거의 없는데, 오빠가 저번에 알려줬던거 적용하면 어떨까요?!

Copy link
Member

@joohaem joohaem Feb 23, 2023

Choose a reason for hiding this comment

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

맞아요 !!!!!! 👍🏼👍🏼👍🏼👍🏼
고민해봤는데, 모달 스타일링이 테마마다 언제 어떻게 바뀔지 몰라서, 상속의 개념이 아니라고 생각했어요!

Root 에만 적용하는 게 좋을 것 같아요 !!! 좋은ㅇ의견 감사합니다🥰🥰

@@ -1,7 +1,7 @@
import styled from "styled-components";

const ModalContentsWrapper = styled.div`
padding-top: 1.6rem;
padding: 1.6rem 1.6rem 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

우왕 이렇게 3개 쓰면 어느 부분들이 적용되나요?!

Copy link
Member

Choose a reason for hiding this comment

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

padding css 검색해서 찾아보셔요 !
https://developer.mozilla.org/ko/docs/Web/CSS/padding

Comment on lines +32 to +52

${(ariaProps) =>
ariaProps["aria-valuenow"] === ariaProps["aria-valuemin"] &&
css`
left: 1rem;
`}
${(ariaProps) =>
ariaProps["aria-valuenow"] === 1 &&
css`
left: 0.7rem;
`}
${(ariaProps) =>
ariaProps["aria-valuenow"] === 2 &&
css`
left: -0.7rem;
`}
${(ariaProps) =>
ariaProps["aria-valuenow"] === ariaProps["aria-valuemax"] &&
css`
left: -1rem;
`}
Copy link
Contributor

Choose a reason for hiding this comment

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

와우👀 고생했어요오👍👍👍

@leeJooHaem leeJooHaem force-pushed the feat/#210-card_collection_filter_ui branch from a16b064 to a6cb47f Compare February 24, 2023 00:43
Copy link
Contributor

@NYeonK NYeonK left a comment

Choose a reason for hiding this comment

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

수고하셨숩니다아 ٩( ˃́▿˂̀ )۶

Comment on lines +8 to +12
theme: DefaultTheme & {
newColors: {
[key: string]: string;
};
};
Copy link
Contributor

Choose a reason for hiding this comment

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

오왕 신기한걸?!👀

@joohaem joohaem merged commit 9394057 into develop Feb 25, 2023
@joohaem joohaem deleted the feat/#210-card_collection_filter_ui branch February 25, 2023 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ CardCollection ] 카드 필터 UI 변경 작업 [ Commoon ] 모달창 Portal 사용 구현
3 participants