-
Notifications
You must be signed in to change notification settings - Fork 4
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 abyss-s/main
Refactor, Design: #29 반응형으로 Layout 수정
- Loading branch information
Showing
26 changed files
with
423 additions
and
291 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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 React from "react"; | ||
import styled from "styled-components"; | ||
import { Outlet } from "react-router-dom"; // 중첩 라우터 설정 | ||
|
||
const Layout = () => { | ||
return ( | ||
<LayoutWrapper> | ||
<ContainerWrapper> | ||
<Outlet /> {/* 자식 컴포넌트를 렌더링 */} | ||
</ContainerWrapper> | ||
</LayoutWrapper> | ||
); | ||
}; | ||
|
||
const LayoutWrapper = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; /* 부모 요소의 높이를 100%로 설정 */ | ||
width: 100vw; /* 부모 요소의 너비를 100%로 설정 */ | ||
/* 데스크톱 설정 */ | ||
@media (min-width: 768px) { | ||
} | ||
`; | ||
|
||
const ContainerWrapper = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: #fff; | ||
border-radius: 10px; | ||
width: 320px; | ||
height: 568px; | ||
max-width: 100%; | ||
padding: 0 20px; | ||
margin: 0 auto; | ||
/* 모바일 설정 */ | ||
@media (max-width: 767px) { | ||
width: 100%; | ||
height: auto; | ||
padding-top: 100px; | ||
padding-bottom: 100px; | ||
} | ||
/* 데스크톱 설정 */ | ||
@media (min-width: 768px) { | ||
width: 90%; // 너비 설정 | ||
height: auto; | ||
} | ||
`; | ||
|
||
export default Layout; |
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
Oops, something went wrong.