Skip to content

Commit

Permalink
feat: (#16) 모바일용 짧은 헤더 템플릿 컴포넌트 생성
Browse files Browse the repository at this point in the history
- 내용을 children 프롭스로 전달받도록 구현
- 상단 고정 등 공동의 스타일 공유하기 위해 컴포넌트 제작
  • Loading branch information
chsua committed Jul 13, 2023
1 parent 8c07073 commit edc637f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/components/common/NarrowTemplateHeader/index.tsx
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 frontend/src/components/common/NarrowTemplateHeader/style.ts
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;
`;

0 comments on commit edc637f

Please sign in to comment.