Skip to content

Commit

Permalink
Style: 덧글과 게시글 사이 구분선 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
soulchicken committed Oct 18, 2023
1 parent 7a96cc7 commit 5af3b7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/components/community/PostHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ const headerCSS = css`
z-index: 100; // 채팅보다 위에 존재해야하기 때문에 필요함
width: 100%;
max-width: 400px;
padding-left: 1.25rem;
padding-right: 0.6rem;
padding-top: 0.6rem; display: flex;
padding: 1rem 1rem;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
Expand Down
9 changes: 6 additions & 3 deletions src/pages/community/[character_id]/[post_id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { PostData } from '@/types/post';
import PostHeader from '@/components/community/PostHeader';
import Image from 'next/image';
import PostStatus from '@/components/community/postDetail/PostStatus';
import DivideLine from '@/components/common/divideLine/DivideLine';

const Post = () => {
const router = useRouter();
Expand All @@ -30,8 +31,8 @@ const Post = () => {
return (
<>
<SEO title="Community - Post" />
<PostHeader />
<section css={pageCSS}>
<PostHeader />
<div css={postCSS}>
{post ? (
<div>
Expand All @@ -52,6 +53,8 @@ const Post = () => {
)
: <Loading />}
</div>
<DivideLine />
<div>덧글은 추후에 제공될 예정입니다 :)</div>
</section>
<BottomNavBar pageName="Community" />
</>
Expand All @@ -64,12 +67,12 @@ const pageCSS = css`
display: flex;
flex-direction: column;
align-items: center;
padding: 0.5rem;
padding: 0 3rem;
`;

const postCSS = css`
width: 100%;
padding: 1rem 3rem;
padding: 1rem 0;
`;

const titleCSS = css`
Expand Down

0 comments on commit 5af3b7b

Please sign in to comment.