Skip to content

Commit

Permalink
feat: RightBar top,bottom 칸 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
krokerdile committed Nov 11, 2023
1 parent 6883968 commit 2ae8fb8
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/page/MainPage.jsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import styled from "styled-components";

const Main = () => {
const MainPage = () => {
return (
<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;
}
`;
export default Main;

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 2ae8fb8

Please sign in to comment.