aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/jobs/values.tsx
blob: c7c4d5726d769d2ee6b6b972c55c731fdfa2c20d (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
51
52
53
54
55
56
57
58
59
60
import * as _ from 'lodash';
import * as React from 'react';

import { Text } from 'ts/components/ui/text';
import { HeaderItem } from 'ts/pages/jobs/list/header_item';
import { ListItem } from 'ts/pages/jobs/list/list_item';
import { colors } from 'ts/style/colors';

const VALUE_ITEM_PROPS_LIST: ValueItemProps[] = [
    {
        bulletColor: '#6FCF97',
        title: 'Ethics/Doing the right thing',
        description: 'orem ipsum dolor sit amet, consectetur adipiscing elit.',
    },
    {
        bulletColor: '#56CCF2',
        title: 'Consistently ship',
        description: 'orem ipsum dolor sit amet, consectetur adipiscing elit.',
    },
    {
        bulletColor: '#EB5757',
        title: 'Focus on long term impact',
        description: 'orem ipsum dolor sit amet, consectetur adipiscing elit.',
    },
];

const HEADER_TEXT = 'Our Values';
const VALUE_ITEM_MIN_HEIGHT = 150;

export const Values = () => {
    return (
        <div className="mx-auto max-width-4">
            <HeaderItem headerText={HEADER_TEXT} />
            {_.map(VALUE_ITEM_PROPS_LIST, valueItemProps => <ValueItem {...valueItemProps} />)}
        </div>
    );
};

interface ValueItemProps {
    bulletColor: string;
    title: string;
    description: string;
}

export const ValueItem: React.StatelessComponent<ValueItemProps> = ({ bulletColor, title, description }) => {
    return (
        <div style={{ minHeight: VALUE_ITEM_MIN_HEIGHT }}>
            <ListItem bulletColor={bulletColor}>
                <Text fontWeight="bold" fontSize="16x" fontColor={colors.black}>
                    {title}
                </Text>
            </ListItem>
            <ListItem>
                <Text className="pt1" fontSize="16x" lineHeight="2em" fontColor={colors.black}>
                    {description}
                </Text>
            </ListItem>
        </div>
    );
};