aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/dropdowns/dropdown_products.tsx
blob: 886cee44acf823cde17318b158baa803886e233e (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
import * as _ from 'lodash';
import * as React from 'react';

import { Link } from 'react-router-dom';
import styled from 'styled-components';
import { Heading, Paragraph } from 'ts/@next/components/text';
import { WebsitePaths } from 'ts/types';

const navData = [
    {
        title: '0x Instant',
        description: 'Simple crypto purchasing',
        url: WebsitePaths.Instant,
    },
    {
        title: '0x Launch Kit',
        description: 'Build on the 0x protocol',
        url: WebsitePaths.LaunchKit,
    },
];

export const DropdownProducts: React.FunctionComponent<{}> = () => (
    <List>
        {_.map(navData, (item, index) => (
            <li key={`productLink-${index}`}>
                <Link to={item.url}>
                    <Heading asElement="h3" color="inherit" isNoMargin={true} size="small">
                        {item.title}
                    </Heading>

                    {item.description && (
                        <Paragraph color="inherit" isNoMargin={true} size="small" isMuted={0.5}>
                            {item.description}
                        </Paragraph>
                    )}
                </Link>
            </li>
        ))}
    </List>
);

const List = styled.ul`
    a {
        padding: 15px 30px;
        display: block;
        color: inherit;
    }
`;