-
Notifications
You must be signed in to change notification settings - Fork 0
Feature#24 Feed Card UI 작성 #25
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
Conversation
- 뱃지의 경우 storybook 추가 예정
- 기존 40px -> 30px
eunwoo-levi
left a comment
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.
수고하셨습니다~! 나중에 디자인시스템 구체화에 대해서 같이 의논해보면 좋을 것 같아요!
@toothlessdev @kimgho
src/entities/feed/ui/FeedHeader.tsx
Outdated
| <Badge>태그</Badge> | ||
| <span className={styles.tagText}>피드 분류</span> | ||
| </header> | ||
| <h1 className={styles.cardTitle}>피드 제목</h1> |
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.
카드 안 제목이 h1이면 페이지 내에 h1이 여러 개 생기기 쉬울 것 같아서 페이지 타이틀만 h1로 하고, 카드 타이틀은 h3 정도가 자연스러울 것 같은데 어떻게 생각하시나요??
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.
아 이미 section title을 h2로 해서 h2 > h1 구조가 되버렸네요
h3로 수정하겠습니다~
src/entities/feed/ui/FeedFooter.tsx
Outdated
| <div className={styles.likeButton}> | ||
| <Heart | ||
| onClick={() => setIsLiked(!isLiked)} | ||
| size={16} | ||
| fill={isLiked ? "#EF4444" : "none"} | ||
| stroke={isLiked ? "none" : "#64748B"} | ||
| className={`${styles.heartIcon} ${isLiked ? styles.heartIconLiked : ""}`} | ||
| /> | ||
| <span>좋아요</span> | ||
| <span>112</span> |
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.
좋아요 버튼은 SVG에 onClick 말고 <button> 태그로 만드는게 접근성 측면에서 더 좋을 것 같아요!
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.
우선은 좋아요가 변경될 여지가 있다고 들어서 SVG로 했는데, button 으로 하는게 접근성이 더 좋긴 하겠네욥
toothlessdev
left a comment
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.
좋아요개수나 댓글개수는 추후에 props 로 뚫는게 좋겠네요
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.
현재 생각중인건 FeedSection에서 data를 props로 내려주는 방식을 고려중입니닷
1️⃣ PR 타입 (PR Type)
2️⃣ 변경 사항 (Changes)
3️⃣ 관련 이슈 (Related Issues)
4️⃣ 코드 설명 (Description)
5️⃣ 스크린샷 (Screenshots)
✅ 체크리스트 (Checklist)
base branch를 확인했나요?self-review를 진행했나요?