aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/jobs/bulleted_item_list.tsx
blob: 108f31e0075de3e62502b50b91654d19046d50ab (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
import { colors } from '@0xproject/react-shared';
import * as _ from 'lodash';
import * as React from 'react';

import { BulletedItem, BulletedItemProps } from 'ts/pages/jobs/bulleted_item';

export interface BulletedItemListProps {
    headerText: string;
    bulletedItems: BulletedItemProps[];
}
export const BulletedItemList = (props: BulletedItemListProps) => {
    return (
        <div className="mx-auto max-width-4">
            <div className="h2 lg-py4 md-py4 sm-py3" style={{ paddingLeft: 90, fontFamily: 'Roboto Mono' }}>
                {props.headerText}
            </div>
            <div className="px2">
                {_.map(props.bulletedItems, bulletedItemProps => {
                    return (
                        <BulletedItem
                            bulletColor={bulletedItemProps.bulletColor}
                            title={bulletedItemProps.title}
                            description={bulletedItemProps.description}
                        />
                    );
                })}
            </div>
        </div>
    );
};