-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
956fbc8
commit 257cf77
Showing
3 changed files
with
55 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { css } from "@emotion/react"; | ||
import { Fragment, PropsWithChildren } from "react"; | ||
|
||
export function DefaultLayout({ children }: PropsWithChildren) { | ||
return ( | ||
<Fragment> | ||
{/* FIXME: 헤더 컴포넌트 작업 시, 해당 헤더 엘리먼트 제거 */} | ||
<header | ||
css={css` | ||
height: 4.6rem; | ||
`} | ||
/> | ||
<main | ||
css={css` | ||
flex: 1 1 0; | ||
display: flex; | ||
flex-direction: column; | ||
`} | ||
> | ||
{children} | ||
</main> | ||
</Fragment> | ||
); | ||
} |
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,26 @@ | ||
import { css } from "@emotion/react"; | ||
import { Outlet } from "react-router-dom"; | ||
|
||
export default function GlobalLayout() { | ||
return ( | ||
<div | ||
css={css` | ||
width: 100vw; | ||
max-width: 48rem; | ||
min-height: 100dvh; | ||
box-shadow: | ||
0 0.1rem 0.3rem 0 rgb(0 0 0 / 0.1), | ||
0 0.1rem 0.2rem -0.1rem rgb(0 0 0 / 0.1); | ||
margin: 0 auto; | ||
padding: 0 2rem; | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-direction: column; | ||
background-color: #f1f3f5; | ||
`} | ||
> | ||
<Outlet /> | ||
</div> | ||
); | ||
} |
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