diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-03 18:10:33 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-03 18:10:33 +0800 |
commit | 62eba1e8202925b88932bf10b65c4239131185e5 (patch) | |
tree | 3febd22dfe7598e831af49f6984f34858ae21eeb /packages/website | |
parent | 78703ab370ba829faad2269b76725d1b6001226b (diff) | |
download | dexon-0x-contracts-62eba1e8202925b88932bf10b65c4239131185e5.tar dexon-0x-contracts-62eba1e8202925b88932bf10b65c4239131185e5.tar.gz dexon-0x-contracts-62eba1e8202925b88932bf10b65c4239131185e5.tar.bz2 dexon-0x-contracts-62eba1e8202925b88932bf10b65c4239131185e5.tar.lz dexon-0x-contracts-62eba1e8202925b88932bf10b65c4239131185e5.tar.xz dexon-0x-contracts-62eba1e8202925b88932bf10b65c4239131185e5.tar.zst dexon-0x-contracts-62eba1e8202925b88932bf10b65c4239131185e5.zip |
Uses layout elems in header
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/@next/components/header.tsx | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx index 0e7d8f5cd..b9b04a8c0 100644 --- a/packages/website/ts/@next/components/header.tsx +++ b/packages/website/ts/@next/components/header.tsx @@ -4,8 +4,8 @@ import styled from 'styled-components'; import { Link as ReactRouterLink } from 'react-router-dom'; +import { Section, Wrap } from './layout'; import { Button } from './button'; -import { Container } from './container'; import { Logo } from './logo'; interface HeaderProps { @@ -36,27 +36,24 @@ const Link: React.StatelessComponent<LinkProps> = props => { }; export const Header: React.StatelessComponent<HeaderProps> = ({}) => ( - <Container> - <StyledHeader> - <Link href="/next"> - <Logo/> - </Link> + <StyledHeader> + <HeaderWrap> + <Link href="/next"> + <Logo/> + </Link> - <Links> - {_.map(links, (link, index) => <Link key={index} href={link.url}>{link.text}</Link>)} - </Links> - <TradeButton href="#">Trade on 0x</TradeButton> - </StyledHeader> - </Container> + <Links> + {_.map(links, (link, index) => <Link key={index} href={link.url}>{link.text}</Link>)} + </Links> + <TradeButton href="#">Trade on 0x</TradeButton> + </HeaderWrap> + </StyledHeader> ); -const StyledHeader = styled.header` - display: flex; - flex-wrap: wrap; - text-align: center; - align-items: center; - justify-content: space-between; - padding: 1.666666667rem 0; +const StyledHeader = Section.withComponent('header'); +const HeaderWrap = styled(Wrap)` + justify-content: space-between; + align-items: center; `; const TradeButton = styled(Button)` |