aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/sections/landing/cta.tsx
blob: ec5a58a58ec7b7f72f6a5a3dc55fc8fbac1e9b6d (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
import * as React from 'react';

import { BlockIconLink } from 'ts/components/blockIconLink';
import { Section } from 'ts/components/newLayout';

import { AnimatedChatIcon } from 'ts/components/animatedChatIcon';
import { AnimatedCompassIcon } from 'ts/components/animatedCompassIcon';
import { WebsitePaths } from 'ts/types';

interface Props {
    onContactClick?: () => void;
}

export const SectionLandingCta = (props: Props) => (
    <Section isPadded={false} isFlex={true} maxWidth="auto" wrapWidth="100%" flexBreakpoint="900px">
        <BlockIconLink
            iconComponent={<AnimatedCompassIcon />}
            title="Ready to build on 0x?"
            linkLabel="Get Started"
            linkUrl={WebsitePaths.Docs}
        />
        <BlockIconLink
            iconComponent={<AnimatedChatIcon />}
            title="Want help from the 0x team?"
            linkLabel="Get in Touch"
            linkAction={props.onContactClick}
        />
    </Section>
);