Skip to content

Commit

Permalink
feat: 사이드바 추가중 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lavegaa committed Nov 29, 2020
1 parent 26f6cfc commit 8d2e3f9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
1 change: 1 addition & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

body {
font-family: 'AppleSDGothicNeoM00';
margin: 0;
}

::-webkit-scrollbar {
Expand Down
43 changes: 28 additions & 15 deletions src/pages/QuestionListPage/QuestionListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ import NoList from './NoList';
import IsQuestionList from './IsQuestionList';
import { get } from '../../utils/snippet';
import ProfileMenuContiner from '../../components/ProfileMenuContainer';
import Sidebar from '../../components/Sidebar';

const PageWrapper = styled.div`
display: flex;
`;

const ContentWrapper = styled.div`
width: 100%;
`;

const ProfileWrapper = styled.div`
float: right;
Expand Down Expand Up @@ -61,21 +71,24 @@ export default function QuestionListPage() {
<>
{loading
&& (
<>
<ProfileWrapper>
<ProfileMenuContiner name={authSelector.name} />
</ProfileWrapper>
<Wrapper>
<Title>
{authSelector.name}
님이 등록한 질문 리스트입니다.
</Title>
<Select>연습하고 싶은 질문 리스트를 선택해주세요.</Select>
{questionList && questionList.length === 0
? <NoList />
: <IsQuestionList questionList={questionList} />}
</Wrapper>
</>
<PageWrapper>
<Sidebar />
<ContentWrapper>
<ProfileWrapper>
<ProfileMenuContiner name={authSelector.name} />
</ProfileWrapper>
<Wrapper>
<Title>
{authSelector.name}
님이 등록한 질문 리스트입니다.
</Title>
<Select>연습하고 싶은 질문 리스트를 선택해주세요.</Select>
{questionList && questionList.length === 0
? <NoList />
: <IsQuestionList questionList={questionList} />}
</Wrapper>
</ContentWrapper>
</PageWrapper>
)}
</>
);
Expand Down

0 comments on commit 8d2e3f9

Please sign in to comment.