aboutsummaryrefslogblamecommitdiffstats
path: root/packages/website/ts/@next/components/header.tsx
blob: 670b84fa4a0bdad8491c1caadafbb4bf4d4bbf36 (plain) (tree)
































                                        





                                        


               




                                     






                                                                          
                                                                                                     




                                         
import * as _ from 'lodash';
import * as React from 'react';
import styled from 'styled-components';

import { Button } from './button';
import { Container } from './container';
import { Logo } from './logo';

export interface HeaderInterface {
}

const StyledHeader = styled.header`
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    padding: 1.764705882rem 0;
`;

const Text = styled.span`
    font-size: 1rem;
    line-height: 1.375rem;
`;

const Links = styled.div`
    display: flex;
    justify-content: space-around;
`;

const Link = styled.a`
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    margin: 0 1.764705882rem;
    transition: color 0.25s ease-in-out;
    text-decoration: none;

    &:hover {
        color: rgba(255, 255, 255, 1);
    }
`;

const links = [
    { url: '#', text: 'Why 0x' },
    { url: '#', text: 'Products' },
    { url: '#', text: 'Developers' },
    { url: '#', text: 'About' },
    { url: '#', text: 'Blog' },
];

export const Header: React.StatelessComponent<HeaderInterface> = ({}) => (
    <Container>
        <StyledHeader>
            <Logo/>
            <Links>
                {_.map(links, (link, index) => <Link key={index} href={link.url}>{link.text}</Link>)}
            </Links>
            <Button text="Trade on 0x" />
        </StyledHeader>
    </Container>
);