Skip to content

Conversation

@kimgho
Copy link
Contributor

@kimgho kimgho commented Dec 15, 2025

1️⃣ PR 타입 (PR Type)

  • ✨ feat: 새로운 기능 추가
  • chore: 빌드 스크립트 수정, 패키지 매니저 설정 변경 등

2️⃣ 변경 사항 (Changes)

  • feed card 컴포넌트 추가
  • next,react,react-dom 버전 업데이트
  • container padding 수정
  • 공용 컴포넌트(Spacing, Badge)추가

3️⃣ 관련 이슈 (Related Issues)

4️⃣ 코드 설명 (Description)

  • next,react,react-dom 버전 업데이트
    • RSC 관련 보안 이슈로 인해 패치된 버전 적용
  • container padding 수정
    • 40px이 너무 많이 띄워졌다고 판단하여 30px로 조정
  • FeedCard 컴포넌트 추가
    • 내용별 header,content,footer로 구조 작성
    • 백엔드 feed 변경에 따라 UI도 변경 가능성 존재
  • 공용 컴포넌트(Spacing, Badge)추가
    • 여백을 두기 위해 spacing 추가
    • spacing의 경우 방향(수직,수평)과 얼마나 띄울지(size)를 props로 받도록 작성
    • Badge의 경우, tag를 위해 추가
    • 디자인 변경하면서 story파일도 작성할 예정

5️⃣ 스크린샷 (Screenshots)

image

✅ 체크리스트 (Checklist)

  • base branch를 확인했나요?
  • self-review를 진행했나요?
  • 관련 이슈를 연결했나요?
  • 커밋 컨벤션을 준수했나요?
  • PR 제목 컨벤션을 준수했나요?

@kimgho kimgho added the UI UI작업이 필요합니다. label Dec 15, 2025
Copy link
Contributor

@eunwoo-levi eunwoo-levi left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~! 나중에 디자인시스템 구체화에 대해서 같이 의논해보면 좋을 것 같아요!
@toothlessdev @kimgho

<Badge>태그</Badge>
<span className={styles.tagText}>피드 분류</span>
</header>
<h1 className={styles.cardTitle}>피드 제목</h1>
Copy link
Contributor

Choose a reason for hiding this comment

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

카드 안 제목이 h1이면 페이지 내에 h1이 여러 개 생기기 쉬울 것 같아서 페이지 타이틀만 h1로 하고, 카드 타이틀은 h3 정도가 자연스러울 것 같은데 어떻게 생각하시나요??

Copy link
Contributor Author

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로 수정하겠습니다~

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

Choose a reason for hiding this comment

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

좋아요 버튼은 SVG에 onClick 말고 <button> 태그로 만드는게 접근성 측면에서 더 좋을 것 같아요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

우선은 좋아요가 변경될 여지가 있다고 들어서 SVG로 했는데, button 으로 하는게 접근성이 더 좋긴 하겠네욥

Copy link
Contributor

@toothlessdev toothlessdev left a comment

Choose a reason for hiding this comment

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

고생하셨슴당!

Copy link
Contributor

Choose a reason for hiding this comment

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

좋아요개수나 댓글개수는 추후에 props 로 뚫는게 좋겠네요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

현재 생각중인건 FeedSection에서 data를 props로 내려주는 방식을 고려중입니닷

@kimgho kimgho merged commit a9dadef into develop Dec 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI UI작업이 필요합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[📌 Feature] Feed Card UI 작성

4 participants