Skip to content

Commit

Permalink
🎨 Style: PostPage μŠ€νƒ€μΌ μˆ˜μ • (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
whoisrey committed Jun 25, 2023
1 parent fd29ba6 commit 77d4819
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/pages/PostPage/PostPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const PostPage = ({ data, onButtonClick }) => {
<SBtn onClick={onButtonClick}>
<GlovalSprite id={'s-icon-more-vertical'} color={'white'} size={18}/>
</SBtn>
<button onClick={handleFeedClick}>
<Contents onClick={handleFeedClick}>
<div>
<GlovalSprite id={'icon-calendal'} size={13} />
<FeedInfo>{data.content[0] + 'μš”μΌ'+ data.content.slice(1,7)+' , '+data.content.slice(9, 14)}</FeedInfo>
Expand All @@ -102,7 +102,7 @@ const PostPage = ({ data, onButtonClick }) => {
{/* <FeedMap data={data.updatedAt} detail={detail} /> */}
</MapContents>
<UserFeedText>{data.content.slice(15)}</UserFeedText>
</button>
</Contents>
<AppendAndComment>
<AppendButton>{data.heartCount}λͺ… μ°Έμ—¬</AppendButton>
<div>
Expand Down Expand Up @@ -147,7 +147,12 @@ const SBtn = styled.button`
float: right;
`

const Contents = styled.button`
width: 30rem;
`

const FeedInfo = styled.span`
width: 30rem;
margin-left: 0.4rem;
vertical-align: 0.2rem;
color: ${({ theme }) => theme.colors.textColor};
Expand All @@ -160,6 +165,9 @@ const UserName = styled.div`
`;

const UserFeedText = styled.div`
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 1.2rem;
margin: 1.6rem 0;
`;
Expand Down Expand Up @@ -201,3 +209,4 @@ const FeedContents = styled.div`
display: flex;
margin-bottom: 2rem;
`;

0 comments on commit 77d4819

Please sign in to comment.