Skip to content

Commit

Permalink
[#2] Add Header Init
Browse files Browse the repository at this point in the history
- Header 추가
- HeaderMenu 추가
- HeaderTitle 추가
  • Loading branch information
JoGeumJu committed Jan 14, 2023
1 parent d531dfd commit a01fbec
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
26 changes: 26 additions & 0 deletions components/header/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import styled from "styled-components";
import { HeaderMenu } from "./HeaderMenu";
import { HeaderTitle } from "./HeaderTitle";

export const Header = () => {
return (
<Wrapper>
<WrapperInner>
<HeaderTitle />
<HeaderMenu />
</WrapperInner>
</Wrapper>
);
};

const Wrapper = styled.section`
display: flex;
flex-direction: column;
width: 100%;
align-items: center;
`;
const WrapperInner = styled.div`
display: flex;
flex-direction: column;
max-width: 1024px;
`;
11 changes: 11 additions & 0 deletions components/header/HeaderMenu.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import styled from "styled-components";

export const HeaderMenu = () => {
return <Wrapper>헤더</Wrapper>;
};

const Wrapper = styled.section`
display: flex;
flex-direction: column;
width: 100%;
`;
13 changes: 13 additions & 0 deletions components/header/HeaderTitle.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import styled from "styled-components";

export const HeaderTitle = () => {
return <Wrapper></Wrapper>;
};

const Wrapper = styled.section`
display: flex;
flex-direction: column;
width: 100%;
padding: 0 12px;
height: 40px;
`;

0 comments on commit a01fbec

Please sign in to comment.