Skip to content

Commit

Permalink
Merge pull request #33 from SCBJ-7/feature/#31-main
Browse files Browse the repository at this point in the history
[#31] 최상위 컨테이너 설정
  • Loading branch information
Bumang-Cyber authored Jan 4, 2024
2 parents 87d77b3 + c516857 commit 5713198
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 47 deletions.
85 changes: 81 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 0 additions & 42 deletions src/App.css

This file was deleted.

11 changes: 10 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import { Outlet } from "react-router-dom";
import * as S from "./components/layout";

function App() {
return <Outlet />;
return (
<S.Container>
{/* <SHeader /> */}
<S.Wrapper>
<Outlet />
</S.Wrapper>
{/* <SFooter/> */}
</S.Container>
);
}

export default App;
Empty file removed src/components/.gitkeep
Empty file.
31 changes: 31 additions & 0 deletions src/components/layout/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { styled } from "styled-components";

export const Container = styled.div`
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: ${({ theme }) => theme.color.greyScale6};
`;

export const Wrapper = styled.div`
max-width: 768px;
min-width: 360px;
width: 100%;
height: 100%;
background-color: white;
`;

/*
SHeader에 들어갈 컴포넌트 예시입니다.
export const SHeader = styled.div`
width: 100%;
height: 56px;
background-color: ${({theme}) => theme.color.greyScale2};
`;
*/

0 comments on commit 5713198

Please sign in to comment.