Skip to content

Commit

Permalink
Style: CommunityPage.tsx 스타일 수정 (#2)
Browse files Browse the repository at this point in the history
- UI 개선을 위한 여백, 폰트 크기 및 정렬 스타일 조정
  • Loading branch information
sunglitter committed Nov 21, 2024
1 parent 23f6d31 commit 3098bbd
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions src/components/pages/community/CommunityPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useState } from 'react';
import styled from 'styled-components';
import CategoryWrapper from '../../common/CategoryWrapper';
import PostList from '../../common/PostList';
import ScrollToTopButton from '../../common/ScrollToTopButton';
Expand All @@ -8,14 +9,32 @@ const CommunityPage = () => {

return (
<div>
<h1>공구 모집 및 진행</h1>
<CategoryWrapper
onCategoryChange={(categoryName) => setSelectedCategory(categoryName)}
/>
<PostList selectedCategory={selectedCategory} />
<CommunityPageContainer>
<ContentWrapper>
<h1>공구 모집 및 진행</h1>
<CategoryWrapper
onCategoryChange={(categoryName) =>
setSelectedCategory(categoryName)
}
/>
<PostList selectedCategory={selectedCategory} />
</ContentWrapper>
</CommunityPageContainer>
<ScrollToTopButton />
</div>
);
};

export default CommunityPage;

const CommunityPageContainer = styled.div`
display: flex;
justify-content: center;
padding: 20px;
`;

const ContentWrapper = styled.div`
width: 100%;
max-width: 1120px;
margin: 0 auto;
`;

0 comments on commit 3098bbd

Please sign in to comment.