-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
10 changed files
with
150 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
const Header = styled.div` | ||
height: 68px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
`; | ||
|
||
const HeaderLeft = styled.div``; | ||
|
||
const HeaderRight = styled.div``; | ||
|
||
export default { | ||
Header, | ||
HeaderLeft, | ||
HeaderRight, | ||
}; |
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,18 @@ | ||
import React from 'react'; | ||
import Styled from './Header.styles'; | ||
|
||
interface HeaderProps { | ||
left?: React.ReactNode; | ||
right?: React.ReactNode; | ||
} | ||
|
||
const Header = ({ left, right }: HeaderProps) => { | ||
return ( | ||
<Styled.Header> | ||
<Styled.HeaderLeft>{left}</Styled.HeaderLeft> | ||
<Styled.HeaderRight>{right}</Styled.HeaderRight> | ||
</Styled.Header> | ||
); | ||
}; | ||
|
||
export default Header; |
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,31 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
const Layout = styled.div` | ||
background-color: ${({ theme }) => theme.palette.grey.g00}; | ||
`; | ||
|
||
const HeaderContainer = styled.div` | ||
background-color: ${({ theme }) => theme.palette.grey.w}; | ||
border-bottom: 1px solid ${({ theme }) => theme.palette.grey.g30}; | ||
`; | ||
|
||
const Header = styled.header` | ||
width: ${({ theme }) => theme.breakpoint.desktop}; | ||
margin: 0 auto; | ||
padding: 0 20px; | ||
`; | ||
|
||
const ContentContainer = styled.div``; | ||
|
||
const Content = styled.div` | ||
width: ${({ theme }) => theme.breakpoint.desktop}; | ||
margin: 0 auto; | ||
`; | ||
|
||
export default { | ||
Layout, | ||
HeaderContainer, | ||
Header, | ||
ContentContainer, | ||
Content, | ||
}; |
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,23 @@ | ||
import Styled from './Layout.styles'; | ||
|
||
interface LayoutProps { | ||
children: React.ReactNode; | ||
header?: React.ReactNode; | ||
} | ||
|
||
const Layout = ({ children, header }: LayoutProps) => { | ||
return ( | ||
<Styled.Layout> | ||
{header && ( | ||
<Styled.HeaderContainer> | ||
<Styled.Header>{header}</Styled.Header> | ||
</Styled.HeaderContainer> | ||
)} | ||
<Styled.ContentContainer> | ||
<Styled.Content>{children}</Styled.Content> | ||
</Styled.ContentContainer> | ||
</Styled.Layout> | ||
); | ||
}; | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import styled from '@emotion/styled'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
const Logo = styled.div` | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: ${({ theme }) => theme.palette.grey.g40}; | ||
width: 174px; | ||
height: 44px; | ||
`; | ||
|
||
const LogoutLink = styled(Link)` | ||
display: inline-flex; | ||
align-items: center; | ||
height: 44px; | ||
padding: 0 18px; | ||
${({ theme }) => theme.typo.sh1}; | ||
color: ${({ theme }) => theme.palette.grey.g90}; | ||
`; | ||
|
||
const HomePage = styled.div``; | ||
|
||
export default { | ||
Logo, | ||
LogoutLink, | ||
HomePage, | ||
}; |
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,21 @@ | ||
import Header from '../../components/Header/Header'; | ||
import Layout from '../../components/Layout/Layout'; | ||
import { PATH } from '../../constants/routes'; | ||
import Styled from './HomePage.styles'; | ||
|
||
const HomePage = () => { | ||
return ( | ||
<Layout | ||
header={ | ||
<Header | ||
left={<Styled.Logo>Boolti Logo</Styled.Logo>} | ||
right={<Styled.LogoutLink to={PATH.LOGIN}>로그아웃</Styled.LogoutLink>} | ||
/> | ||
} | ||
> | ||
<h2>HomePage</h2> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default HomePage; |
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,5 @@ | ||
const breakpoint = { | ||
desktop: '1280px', | ||
} as const; | ||
|
||
export default breakpoint; |
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