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/#86] CardList 컴포넌트 구현 #92

Merged
merged 5 commits into from
Jan 15, 2025

Conversation

chaeneey
Copy link
Collaborator

@chaeneey chaeneey commented Jan 15, 2025

📌 관련 이슈번호


체크리스트

  • 🎋 base 브랜치를 develop 브랜치로 설정했나요?
  • 🖌️ PR 제목은 형식에 맞게 잘 작성했나요?
  • 🏗️ 빌드는 성공했나요? (yarn build)
  • 🧹 불필요한 코드는 제거했나요? e.g. console.log
  • 🙇‍♂️ 리뷰어를 지정했나요?
  • 🏷️ 라벨은 등록했나요?

✅ Key Changes

이번 PR에서 작업한 내용을 간략히 설명해주세요

  1. CardList 컴포넌트 구현
  • item: 해당 카드리스트가 store, design, likedStore, likedDesign 중 어디에서 사용되는지 알려주는 부분입니다.
  • data: DesignCard, StoreCard 카드 부분에 들어갈 실제 데이터 입니다.

카드 개수, 필터링 버튼, 디자인카드 / 스토어 카드가 함께 있는 CardList 컴포넌트를 만들었습니다.
하나의 컴포넌트에서 디자인 / 스토어 부분을 다 보여줘야 해서 타입 단언 등 타입 관련된 처리가 많습니다 .. 🥲

스크린샷 2025-01-15 오후 10 12 32 스크린샷 2025-01-15 오후 10 12 41
  1. DesignCard numberLabel 받을 수 있도록 수정
    메인 페이지에서 DesignCard에서 Image에 numberLabel이 있는 상태로 있길래,
    DesignCard에서 numberLabel을 받을 수 있도록 해뒀습니다!
    이제 메인페이지에서도 DesignCard를 사용할 수 있게 되었어요 ~! 😝
스크린샷 2025-01-15 오후 10 13 41
  1. FilteringButton zIndex, backgroundColor 수정
    CardList를 구현하다보니, FilteringButton의 ul 부분에 zIndex와 backgroundColor가 있어야 확실하게 보이는 걸 깨닫고,
    해당 부분 추가로 지정해줬습니다!

  2. StoreCard, Image 컴포넌트 수정
    이전에 StoreCard의 사진 바닥부분이 잘리는 문제를 Image 컴포넌트에 height 100% 걸로 해결했었는데,
    이걸 지우고 StoreCard 부분을 화랑오빠가 수정하는 방향으로 해결했습니다!
    레전드 리드 ㄷㄷ 감사합니다.


📢 To Reviewers


📸 스크린샷 or 실행영상

Copy link
Collaborator

@youtheyeon youtheyeon 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 +52 to +57
const cardListCountText = {
store: ` 개의 스토어`,
design: ` 개의 디자인`,
likedStore: `찜한 스토어 `,
likedDesign: `찜한 스토어의 디자인 `,
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

이렇게 따로 지정해준 거 좋네요.. 짱 👍

Copy link
Collaborator

@zzz-myam zzz-myam left a comment

Choose a reason for hiding this comment

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

역시 최고입니닷..! 넘 고생하셨습니다~~ :)

}

const CardList = ({ item, data }: CardListProps) => {
const [, setOption] = useState(''); //option은 나중에 데이터 불러올 때 사용될 예정
Copy link
Collaborator

Choose a reason for hiding this comment

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

콤마 setOption에서 ','는 무엇을 의미하나요??

Copy link
Collaborator

@thisishwarang thisishwarang left a comment

Choose a reason for hiding this comment

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

굿굿 너무 잘 만들었어요!! 꼼꼼대마왕~👿

@thisishwarang thisishwarang merged commit 2dd453d into develop Jan 15, 2025
3 checks passed
@thisishwarang thisishwarang deleted the feat/#86/cardList-component branch January 15, 2025 21:56
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.

[Feat] CardList 컴포넌트 만들기
4 participants