Skip to content

Commit 79df3c9

Browse files
committed
FEAT 여러가지 스타일링 (#develop)
1 parent 446090f commit 79df3c9

File tree

7 files changed

+24
-16
lines changed

7 files changed

+24
-16
lines changed

services/ahhachul.com/src/components/common/comment/error/ErrorCommentList.styled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const Desc = styled.div`
1717
gap: 4px;
1818
1919
& > p {
20-
${theme.fonts.titleMedium};
20+
${theme.fonts.bodyMedium};
2121
color: ${theme.colors.gray[80]};
2222
}
2323
`}

services/ahhachul.com/src/components/domain/community/postDetail/error/CommunityErrorPage.component.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ interface CommunityErrorPageProps {
1010
}
1111

1212
const CommunityErrorPage = ({ error, reset }: CommunityErrorPageProps) => {
13-
const { replace } = useFlow();
13+
const { pop } = useFlow();
1414

1515
const isDeletedPost = error.response?.status === 404;
1616

1717
return isDeletedPost ? (
1818
<S.Container>
1919
<S.Title>삭제된 게시글입니다.</S.Title>
20-
<S.RetryButton type="button" onClick={() => replace('HomePage', {}, { animate: false })}>
21-
홈으로 이동하기
20+
<S.RetryButton type="button" onClick={() => pop()}>
21+
목록으로 이동하기
2222
</S.RetryButton>
2323
</S.Container>
2424
) : (

services/ahhachul.com/src/components/domain/community/postDetail/error/CommunityErrorPage.styled.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ export const Container = styled.div`
1111

1212
export const Title = styled.p`
1313
text-align: center;
14-
font-size: 20px;
15-
font-weight: 700;
14+
${({ theme }) => css`
15+
${theme.fonts.labelMedium};
16+
`}
1617
`;
1718

1819
export const Description = styled.p`
1920
text-align: center;
2021
${({ theme }) => css`
21-
${theme.fonts.labelMedium};
22+
${theme.fonts.bodyMedium};
23+
color: ${theme.colors.gray[80]};
2224
`}
2325
`;
2426

services/ahhachul.com/src/components/domain/complaint/postDetail/error/ComplaintErrorPage.styled.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ export const Container = styled.div`
1111

1212
export const Title = styled.p`
1313
text-align: center;
14-
font-size: 20px;
15-
font-weight: 700;
14+
${({ theme }) => css`
15+
${theme.fonts.labelMedium};
16+
`}
1617
`;
1718

1819
export const Description = styled.p`
1920
text-align: center;
2021
${({ theme }) => css`
21-
${theme.fonts.labelMedium};
22+
${theme.fonts.bodyMedium};
23+
color: ${theme.colors.gray[80]};
2224
`}
2325
`;
2426

services/ahhachul.com/src/components/domain/lostFound/postDetail/error/LostFoundErrorPage.styled.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ export const Container = styled.div`
1111

1212
export const Title = styled.p`
1313
text-align: center;
14-
font-size: 20px;
15-
font-weight: 700;
14+
${({ theme }) => css`
15+
${theme.fonts.labelMedium};
16+
`}
1617
`;
1718

1819
export const Description = styled.p`
1920
text-align: center;
2021
${({ theme }) => css`
21-
${theme.fonts.labelMedium};
22+
${theme.fonts.bodyMedium};
23+
color: ${theme.colors.gray[80]};
2224
`}
2325
`;
2426

services/ahhachul.com/src/components/domain/lostFound/postDetail/template/LostFoundDetail.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const LostFoundDetail = ({ id }: LostFoundDetailProps) => {
9494
</S.CompleteWrapper>
9595
)}
9696

97-
<S.ContentContainer>
97+
<S.ContentContainer isFromLost112={post.isFromLost112}>
9898
{post.isFromLost112 || !isLexicalContent(post.content) ? (
9999
<S.TextContent>{formatLost112Content(post.content)}</S.TextContent>
100100
) : (

services/ahhachul.com/src/components/domain/lostFound/postDetail/template/LostFoundDetail.styled.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ export const CompleteText = styled.span`
9292
`}
9393
`;
9494

95-
export const ContentContainer = styled.div`
96-
padding: 24px 20px 0;
95+
export const ContentContainer = styled.div<{ isFromLost112: boolean }>`
96+
${({ isFromLost112 }) => css`
97+
padding: ${isFromLost112 ? '0 20px' : '24px 20px 0'};
98+
`}
9799
`;
98100

99101
export const TextContent = styled.div`

0 commit comments

Comments
 (0)