Skip to content

Commit

Permalink
피드 상세 뷰어 컴포넌트 댓글 입력 UI 추가 (#375)
Browse files Browse the repository at this point in the history
style: edit styles
  • Loading branch information
eunsukimme authored Sep 12, 2023
1 parent 8463d40 commit 23d8500
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 4 deletions.
10 changes: 10 additions & 0 deletions public/assets/svg/send.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 38 additions & 4 deletions src/components/feed/FeedPostViewer/FeedPostViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import MenuIcon from 'public/assets/svg/ic_menu.svg';
import CommentIcon from 'public/assets/svg/comment.svg';
import LikeIcon from 'public/assets/svg/like.svg';
import LikeFillIcon from 'public/assets/svg/like_fill.svg';
import SendIcon from 'public/assets/svg/send.svg';
import { styled } from 'stitches.config';
import { Box } from '@components/box/Box';

Expand Down Expand Up @@ -57,13 +58,23 @@ export default function FeedPostViewer({ post, Actions }: FeedPostViewerProps) {
<span>좋아요 {post.likeCount}</span>
</CommentLike>
</CommentLikeWrapper>

<CommentListWrapper>
{/* 댓글 목록 */}
<div></div>
<CommentInputWrapper>
<CommentInput placeholder="댓글 입력" />
<SendButton>
<SendIcon />
</SendButton>
</CommentInputWrapper>
</CommentListWrapper>
</Container>
);
}

const Container = styled(Box, {
width: '800px',
height: '496px',
flexShrink: 0,
borderRadius: '20px',
border: '1px solid $black60',
Expand Down Expand Up @@ -148,9 +159,7 @@ const CommentLikeWrapper = styled('div', {
color: '$gray08',
fontStyle: 'T5',
height: '48px',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexType: 'center',
borderTop: '1px solid $black60',
borderBottom: '1px solid $black60',
});
Expand All @@ -167,3 +176,28 @@ const CommentLike = styled('div', {
fontStyle: 'T5',
marginLeft: '4px',
});
const CommentListWrapper = styled('div', {
padding: '28px 28px 32px 32px',
display: 'flex',
flexDirection: 'column',
gap: '40px',
});
const CommentInputWrapper = styled('div', {
flexType: 'verticalCenter',
gap: '16px',
});
const CommentInput = styled('input', {
width: '692px',
padding: '14px 24px',
borderRadius: '50px',
background: '$black60',
color: '$gray40',
fontStyle: 'B2',
'&::placeholder': {
color: '$gray60',
},
});
const SendButton = styled('button', {
width: '32px',
height: '32px',
});

0 comments on commit 23d8500

Please sign in to comment.