Skip to content

Commit

Permalink
[홈화면] 슬라이드 뷰, Application 뷰 컴포넌트 #25 solve view overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dwdjjj committed Oct 31, 2022
1 parent c280bcb commit d1b8e4d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/layout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { Outlet } from "react-router-dom";
import { MainContainer } from "../../styles/layout/layout";
import Footer from "./Footer";
import Header from "./Header";

const Layout = () => {
return (
<>
<MainContainer>
<Header authenticated={false} profile={null} />
<Outlet />
<Footer />
</>
</MainContainer>
);
};

Expand Down
1 change: 1 addition & 0 deletions src/styles/activity/modal/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const ModalContainer = styled.div`
background-color: rgba(105, 105, 105, 0.9);
position: fixed;
top: 0;
/* z-index: 996; */
`;

const ModalTemplate = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/styles/layout/footer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const FooterBox = styled.div`
display: flex;
flex-direction: column;
align-items: center;
z-index: 999;
z-index: 997;
width: 100%;
height: 318px;
left: 0px;
Expand Down
11 changes: 10 additions & 1 deletion src/styles/layout/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@ const GlobalContainer = styled.main`
padding: 145px 0 0 0;
`;

export { GlobalContainer };
const MainContainer = styled.main`
width: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
overflow: hidden;
`;

export { GlobalContainer, MainContainer };

0 comments on commit d1b8e4d

Please sign in to comment.