Skip to content

[Feat] Card 컴포넌트 개발 및 디자인#16

Merged
jwj0620gcu merged 5 commits into
mainfrom
15-feat/Card-컴포넌트-제작
Jan 14, 2026

Hidden character warning

The head ref may contain hidden characters: "15-feat/Card-\ucef4\ud3ec\ub10c\ud2b8-\uc81c\uc791"
Merged

[Feat] Card 컴포넌트 개발 및 디자인#16
jwj0620gcu merged 5 commits into
mainfrom
15-feat/Card-컴포넌트-제작

Conversation

@jwj0620gcu

Copy link
Copy Markdown
Collaborator

✨ 주요 변경사항

  • 공용 Card 컴포넌트 구현했습니다.

  • Figma 디자인 스펙에 맞춰 구현했습니다.


📝 작업 상세 내용

  • Card 컴포넌트 및 Card.variants 분리 구현

  • 디자인 토큰 기반 스타일 적용

  • Title 영역은 최대 2줄 말줄임 처리(line-clamp-2) 적용

  • Playground 페이지에서 Card 렌더링 및 동작 확인


✅ 체크리스트

  • PR 본문에 Close #번호 추가
  • 불필요한 주석, 디버깅 코드 제거
  • 기능 테스트 및 정상 동작 확인
  • 커밋컨벤션 / 코드컨벤션 준수

📸 스크린샷 (선택)

스크린샷 2026-01-13 오후 12 51 36

hover일 때

스크린샷 2026-01-13 오후 12 52 42

🔍 기타 참고사항


🔗 관련 이슈

@github-actions
github-actions Bot requested a review from YeBeenChoi January 13, 2026 03:54
@github-actions github-actions Bot added the ✨Feature 새로운 기능 label Jan 13, 2026
@github-actions

Copy link
Copy Markdown

PR 검증 결과

TypeScript: 통과
ESLint: 통과
Prettier: 통과
Test: 통과
Build: 성공
Build Size: 2MB

@github-actions

Copy link
Copy Markdown

PR 검증 결과

TypeScript: 통과
ESLint: 통과
Prettier: 포맷 필요
Test: 통과
Build: 성공
Build Size: 2MB

@github-actions

Copy link
Copy Markdown

PR 검증 결과

TypeScript: 통과
ESLint: 통과
Prettier: 통과
Test: 통과
Build: 성공
Build Size: 2MB

@KyeongJooni KyeongJooni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

수고하셨습니다! :)

@YeBeenChoi YeBeenChoi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

속도가 엄청 빠르시네요... 👍 궁금한 점 몇 개 코멘트 달아 놓았으니 확인하시고 답변 부탁드려요... ㅎㅎ 고생 많으셨습니다~!

Comment thread src/shared/ui/Card/Card.tsx Outdated
Comment on lines +30 to +32
<p className={title()}>{titleText}</p>
<p className={price()}>{priceText}</p>
<span className={date()}>{dateText}</span>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

요기 텍스트 영역을 wrapper로 묶지 않은 특별한 이유가 있나요?? 나중에 카드에 찜 버튼이 생길 수도 있을 것 같고, 제가 보기에는 하나의 정보 블록처럼 생각돼서 textWrapper 슬롯을 두는 것도... 괜찮을 것 같아요!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

예빈님 커멘트 감사합니다!
text 영역 한 블록으로 보는 게 더 명확할 것 같아 textWrapper를 추가하는 방향으로 수정 완료했습니다!

Comment on lines +28 to +36
overlay: [
'absolute inset-0',
'rounded-[var(--radius-l)]',
'bg-white/20',
'opacity-0',
'transition-opacity',
'pointer-events-none',
'group-hover:opacity-100',
],

@YeBeenChoi YeBeenChoi Jan 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

hover 효과가 이미지 영역으로만 제한되게 구현하셨네요! 카드 전체에 hover 효과를 주는 방법도 있는데, 두 방법 중 어떤 게 더 좋다고...? 생각하시는지 궁금해서 질문 남깁니다! (피그마에 디자인이 정의되어 있지 않더라구요...)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

hover 트리거를 이미지 영역이 아닌 카드 전체로 변경하는 것이 UX적으로 나은 것 같아 수정 완료 했습니다!
감사합니다!!

@github-actions

Copy link
Copy Markdown

PR 검증 결과

TypeScript: 통과
ESLint: 통과
Prettier: 통과
Test: 통과
Build: 성공
Build Size: 2MB

@github-actions

Copy link
Copy Markdown

PR 검증 결과

TypeScript: 통과
ESLint: 통과
Prettier: 통과
Test: 통과
Build: 성공
Build Size: 2MB

@jwj0620gcu
jwj0620gcu merged commit e783e5f into main Jan 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨Feature 새로운 기능

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] #15 - Card 컴포넌트 제작

3 participants