-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
피드홈/피드상세/모임상세/댓글/대댓글 차단된 컨텐츠 UI + API 연결 (#867)
* test * feat: ContentBlocker 컴포넌트 구현 * feat: 피드 홈 적용 (API 연결 X) * feat: 피드 상세 적용 (API 연결 X) * feat: 모임 상세 적용 (API 연결 X) * docs: 불필요한 코드 삭제 * feat: 피드 상세 적용 추가 * docs: 폴더 이름 변경 * feat: 댓글/답글 적용 (API 연결 X) * feat: ContentBlocker API 연결 * feat: CommentBlocker API 연결 * fix: isBlockedPost 로 수정 * fix: build 에러 수정 --------- Co-authored-by: borimong <[email protected]>
- Loading branch information
Showing
9 changed files
with
621 additions
and
488 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { styled } from 'stitches.config'; | ||
import RecommentPointIcon from '@assets/svg/recomment_point_icon.svg'; | ||
|
||
interface CommentBlockerProps { | ||
variant?: 'default' | 'secondary'; | ||
} | ||
const CommentBlocker = ({ variant = 'default' }: CommentBlockerProps) => { | ||
return ( | ||
<Container variant={variant}> | ||
{variant == 'secondary' && <RecommentPointIcon style={{ marginRight: '12px' }} />} | ||
<BlockerMessage>차단된 멤버의 게시글입니다.</BlockerMessage> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default CommentBlocker; | ||
|
||
const Container = styled('div', { | ||
display: 'flex', | ||
variants: { | ||
variant: { | ||
default: { | ||
paddingLeft: '$40', | ||
}, | ||
secondary: { | ||
paddingLeft: '$16', | ||
'@tablet': { | ||
paddingLeft: '$12', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
const BlockerMessage = styled('p', { | ||
fontAg: '16_medium_150', | ||
color: '$gray500', | ||
|
||
'@tablet': { | ||
fontAg: '14_medium_100', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { styled } from 'stitches.config'; | ||
|
||
const ContentBlocker = () => { | ||
return ( | ||
<Container> | ||
<BlockerMessage>차단된 멤버의 게시글입니다.</BlockerMessage> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default ContentBlocker; | ||
|
||
const Container = styled('div', { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
|
||
padding: '$20 $20 $28 $20', | ||
height: '180px', | ||
width: '380px', | ||
|
||
background: '$gray900', | ||
borderRadius: '12px', | ||
|
||
'@tablet': { | ||
padding: '$24 0 $28 0', | ||
background: 'transparent', | ||
borderRadius: 0, | ||
margin: '0 auto', | ||
}, | ||
}); | ||
|
||
const BlockerMessage = styled('p', { | ||
fontAg: '14_semibold_100', | ||
color: '$gray500', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.