-
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.
- 내용을 children 프롭스로 전달받도록 구현 - 상단 고정 등 공동의 스타일 공유하기 위해 컴포넌트 제작
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
frontend/src/components/common/NarrowTemplateHeader/index.tsx
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,7 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
import * as S from './style'; | ||
|
||
export default function NarrowTemplateHeader({ children }: { children: ReactNode }) { | ||
return <S.Container>{children}</S.Container>; | ||
} |
17 changes: 17 additions & 0 deletions
17
frontend/src/components/common/NarrowTemplateHeader/style.ts
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,17 @@ | ||
import { styled } from 'styled-components'; | ||
|
||
export const Container = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
gap: 20px; | ||
width: 100%; | ||
height: 55px; | ||
padding: 0 20px; | ||
position: absolute; | ||
top: 0; | ||
background-color: #1f1f1f; | ||
`; |