blob: b460796c1beaa13ca8541edea56c369bfcb6e8e4 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
import * as React from 'react';
import { Container } from 'ts/components/ui/container';
import { Image } from 'ts/components/ui/image';
import { Text } from 'ts/components/ui/text';
import { colors } from 'ts/style/colors';
import { ScreenWidths } from 'ts/types';
export interface FeatureProps {
screenWidth: ScreenWidths;
}
export const Features = (props: FeatureProps) => (
<Container backgroundColor={colors.instantSecondaryBackground} className="py3 flex flex-column">
<FeatureItem
imgSrc="images/instant/snt_screenshot.png"
title="Support ERC-20 and ERC-721 tokens"
description="Seamlessly integrate token purchasing into your product experience by offering digital assets ranging from in-game items to stablecoins."
linkInfos={[]}
screenWidth={props.screenWidth}
/>
<FeatureItem
imgSrc="images/instant/snt_screenshot.png"
title="Generate revenue for your business"
description="With just a few lines of code, you can earn up to 5% in affiliate fees on every transaction from your crypto wallet or dApp."
linkInfos={[]}
screenWidth={props.screenWidth}
/>
<FeatureItem
imgSrc="images/instant/snt_screenshot.png"
title="Easy and Flexible Integration"
description="Use our out-of-the-box design or customize the user interface by integrating the AssetBuyer engine. You can also tap into 0x networked liquidity or choose your own liquidity pool."
linkInfos={[]}
screenWidth={props.screenWidth}
/>
</Container>
);
interface LinkInfo {
linkSrc: string;
displayText: string;
}
interface FeatureItemProps {
imgSrc: string;
title: string;
description: string;
linkInfos: LinkInfo[];
screenWidth: ScreenWidths;
}
const FeatureItem = (props: FeatureItemProps) => {
const { imgSrc, title, description, linkInfos, screenWidth } = props;
const isLargeScreen = screenWidth === ScreenWidths.Lg;
const image = <Container backgroundColor={colors.instantPrimaryBackground} width="425px" height="225px" />;
const info = (
<Container maxWidth="500px">
<Text fontSize="24px" lineHeight="34px" fontColor={colors.white} fontWeight={500}>
{title}
</Text>
<Container marginTop="28px">
<Text fontFamily="Roboto Mono" fontSize="14px" lineHeight="2em" fontColor={colors.grey500}>
{description}
</Text>
</Container>
</Container>
);
return (
<Container className="flex flex-column items-center py4 px3">
{isLargeScreen ? (
<Container className="flex">
{image}
<Container marginLeft="115px">{info}</Container>
</Container>
) : (
<Container className="flex flex-column items-center">
{image}
<Container className="center" marginTop="32px">
{info}
</Container>
</Container>
)}
</Container>
);
};
|