aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/header.tsx
blob: a6bbe4d653cdd4a48b6003ce575aa6f31790e7c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import _ from 'lodash';
import * as React from 'react';
import { Link as ReactRouterLink } from 'react-router-dom';
import styled from 'styled-components';

import { Button, ButtonWrap, Link } from 'ts/@next/components/button';
import { Section, Wrap } from 'ts/@next/components/layout';
import { Logo } from 'ts/@next/components/logo';

interface HeaderProps {
}

const links = [
    { url: '/next/why', text: 'Why 0x' },
    { url: '/next/0x-instant', text: 'Products' },
    { url: '#', text: 'Developers' },
    { url: '/next/about/mission', text: 'About' },
    { url: '#', text: 'Blog' },
];

export const Header: React.StatelessComponent<HeaderProps> = ({}) => (
      <StyledHeader>
        <HeaderWrap>
          <ReactRouterLink to="/next">
              <Logo/>
          </ReactRouterLink>

          <ButtonWrap>
              {_.map(links, (link, index) => (
                <Link
                    key={`hb-${index}`}
                    href={link.url}
                    isTransparent={true}
                    isNoBorder={true}
                >
                    {link.text}
                </Link>
              ))}
          </ButtonWrap>

          <Button href="#">Trade on 0x</Button>
        </HeaderWrap>
    </StyledHeader>
);

const StyledHeader = Section.withComponent('header');
const HeaderWrap = styled(Wrap)`
  justify-content: space-between;
  align-items: center;
`;