Skip to content

Commit

Permalink
Merge pull request #30 from codestates-seb/dev-client#29/MainLayout
Browse files Browse the repository at this point in the history
[Feat] #29 폴더 구조 및 메인페이지 레이아웃 세팅
  • Loading branch information
novice1993 authored Aug 30, 2023
2 parents 58eb6cd + f42a4d9 commit f17a06c
Show file tree
Hide file tree
Showing 10 changed files with 2,298 additions and 240 deletions.
4 changes: 2 additions & 2 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>StockHolm</title>
</head>
<body>
<div id="root"></div>
Expand Down
2,473 changes: 2,237 additions & 236 deletions client/package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"styled-components": "^6.0.7"
},
"devDependencies": {
"@types/react": "^18.2.15",
Expand Down
3 changes: 2 additions & 1 deletion client/src/App.tsx
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 added client/src/asset/README.md
Empty file.
Empty file added client/src/components/README.md
Empty file.
Empty file added client/src/hooks/README.md
Empty file.
Empty file added client/src/models/README.md
Empty file.
55 changes: 55 additions & 0 deletions client/src/page/MainPage.tsx
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 added client/src/utils/README.md
Empty file.

0 comments on commit f17a06c

Please sign in to comment.