-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from codestates-seb/dev-client#29/MainLayout
[Feat] #29 폴더 구조 및 메인페이지 레이아웃 세팅
- Loading branch information
Showing
10 changed files
with
2,298 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import "./App.css"; | ||
import MainPage from "./page/MainPage"; | ||
|
||
function App() { | ||
return <div></div>; | ||
return <MainPage />; | ||
} | ||
|
||
export default App; |
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { styled } from "styled-components"; | ||
|
||
const MainPage = () => { | ||
return ( | ||
<Container> | ||
<Header /> | ||
<Main> | ||
<LeftSection></LeftSection> | ||
<CentralSection></CentralSection> | ||
<RightSection></RightSection> | ||
</Main> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default MainPage; | ||
|
||
const Container = styled.div` | ||
width: 100vw; | ||
height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
`; | ||
|
||
const Header = styled.header` | ||
width: 100%; | ||
height: 51px; | ||
border: 1px solid black; | ||
`; | ||
|
||
const Main = styled.main` | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
`; | ||
|
||
const LeftSection = styled.section` | ||
min-width: 248px; | ||
height: 100%; | ||
border: 1px solid black; | ||
`; | ||
|
||
const RightSection = styled.section` | ||
flex: 3.3 0 0; | ||
min-width: 400px; | ||
height: 100%; | ||
border: 1px solid black; | ||
`; | ||
|
||
const CentralSection = styled.section` | ||
flex: 6.7 0 0; | ||
min-width: 630px; | ||
height: 100%; | ||
`; |
Empty file.