-
Notifications
You must be signed in to change notification settings - Fork 3
feat : IT News 리스트 페이지 UI #53
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
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.
리뷰 남겼는데 확인 부탁드립니다!!
제가 메인 페이지 만들때 ITNewsComponent 를 재사용하려고 했는데 한 번 고민해줬으면 좋겠습니다.
백엔드 API 스키마가 나온 경우 해당 부분도 참고해주시면 사용할때 편할거 같아요!
만약 너무 부담된다면 pass 하셔도 됩니다. 제가 수정하고 후에 공유하도록 하겠습니다.
수고하셨습니다.
<Card className="relative w-[400px] rounded-[20px] border border-black"> | ||
<CardHeader className="relative w-full pb-56 rounded-tl-[20px] rounded-tr-[20px] overflow-hidden"> | ||
<Card className="relative w-[calc(33.33%-26.667px)] rounded-[20px] border border-black"> | ||
<CardHeader className="relative w-full pb-56 pt-0 rounded-tl-[20px] rounded-tr-[20px] overflow-hidden"> | ||
<Image src={thumbnailSrc} alt={title} layout="fill" /> | ||
</CardHeader> | ||
<Link href={`/news/${id}`}> |
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.
해당 부분에 Link 가 있으면 (찜하기? 즐겨찾기?) 별표 아이콘 클릭할때 해당 이벤트가 발생하지 않고, 더 나아가서 해당 컴포넌트 재사용성이 떨어질거 같아요!
현재 제가 main 페이지에서 해당 컴포넌트 재사용하려는데 재사용성이 떨어지는거 같아서 해당 부분은 외부에 위임하는게 좋을거 같아요!!
네 확인해주셔서 감사합니다! |
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.
확인했습니다.
IT News 리스트 페이지 UI