Skip to content

Commit

Permalink
Merge branch 'feat/issue-#16' into feat/issue-#4
Browse files Browse the repository at this point in the history
  • Loading branch information
krokerdile committed Nov 11, 2023
2 parents 33644fa + 2ae8fb8 commit 475a24d
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/page/MainPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ const MainPage = () => {
<GridContainer>
<LeftBar>sidebar</LeftBar>
<GridItem>main</GridItem>
<RightBar>sidebar</RightBar>
<RightBar>
<RightBarTop>Top</RightBarTop>
<RightBarBottom>Bottom</RightBarBottom>
</RightBar>
</GridContainer>
);
};

const GridContainer = styled.div`
display: grid;
grid-template-columns: 2fr 6fr 2fr;
grid-template-columns: 2fr 4fr 3fr;
grid-template-rows: 1fr;
width: 100vw;
height: 100vh;
Expand Down Expand Up @@ -46,4 +49,16 @@ const RightBar = styled(GridItem)`
grid-row: 3;
}
`;

const RightBarTop = styled.div`
flex: 1;
height: 50%;
background-color: lightblue;
`;

const RightBarBottom = styled.div`
flex: 1;
height: 50%;
background-color: lightgreen;
`;
export default MainPage;

0 comments on commit 475a24d

Please sign in to comment.