Skip to content

Commit

Permalink
feat: 최상위 컨테이너 구조 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Bumang-Cyber committed Jan 3, 2024
1 parent 18f2afa commit c17eb0a
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,46 @@
import { Outlet } from "react-router-dom";
import styled from "styled-components";

function App() {
return <Outlet />;
return (
<SContainer>
{/* <SHeader/> */}
<SWrapper>
<Outlet />
</SWrapper>
{/* <SFooter/> */}
</SContainer>
);
}

export default App;

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

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

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

0 comments on commit c17eb0a

Please sign in to comment.