Skip to content

Commit

Permalink
feat: 댓글 좋아요 ui 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
borimong authored and eunsukimme committed Sep 10, 2023
1 parent 78203fa commit 45c7c8c
Showing 1 changed file with 34 additions and 9 deletions.
43 changes: 34 additions & 9 deletions src/components/feed/FeedPostViewer/FeedPostViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,22 @@ export default function FeedPostViewer({ post, Actions }: FeedPostViewerProps) {
<ContentBody>
<Title>{post.title}</Title>
<Contents>{post.contents}</Contents>
<ViewCount>{post.viewCount}</ViewCount>
<ViewCount>조회 {post.viewCount}</ViewCount>
</ContentBody>
</ContentWrapper>

<div>
<div>
<CommentIcon />
<CommentLikeWrapper>
<CommentIcon />
<CommentLike>
{/* TODO: add comment count */}
<span>댓글 </span>
</div>
<div>
{post.isLiked ? <LikeFillIcon /> : <LikeIcon />}
</CommentLike>
<Divider />
{post.isLiked ? <LikeFillIcon /> : <LikeIcon />}
<CommentLike>
<span>좋아요 {post.likeCount}</span>
</div>
</div>
</CommentLike>
</CommentLikeWrapper>
</Container>
);
}
Expand Down Expand Up @@ -142,3 +143,27 @@ const MenuItem = styled('button', {
borderTop: 'none',
},
});

const CommentLikeWrapper = styled('div', {
color: '$gray08',
fontStyle: 'T5',
height: '48px',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
borderTop: '1px solid $black60',
borderBottom: '1px solid $black60',
});

const Divider = styled('div', {
background: '$black60',
width: '1px',
height: '24px',
margin: '12px 159px 12px 171px',
});

const CommentLike = styled('div', {
color: '$gray80',
fontStyle: 'T5',
marginLeft: '4px',
});

0 comments on commit 45c7c8c

Please sign in to comment.