From 3d88b7f289a9d36887c96a9cb62266ee5cc1065a Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Tue, 27 Nov 2018 11:23:10 -0800 Subject: feature(website): add links to instant marketing page --- packages/website/ts/pages/instant/features.tsx | 59 ++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 8 deletions(-) (limited to 'packages/website/ts/pages/instant') diff --git a/packages/website/ts/pages/instant/features.tsx b/packages/website/ts/pages/instant/features.tsx index b460796c1..3f5d3d8d1 100644 --- a/packages/website/ts/pages/instant/features.tsx +++ b/packages/website/ts/pages/instant/features.tsx @@ -1,7 +1,7 @@ +import * as _ from 'lodash'; 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'; @@ -16,29 +16,52 @@ export const Features = (props: FeatureProps) => ( 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={[]} + linkInfos={[ + { + displayText: 'Get started', + linkSrc: 'google.com', + }, + { + displayText: 'Explore the docs', + linkSrc: 'google.com', + }, + ]} screenWidth={props.screenWidth} /> ); interface LinkInfo { - linkSrc: string; displayText: string; + linkSrc: string; } interface FeatureItemProps { @@ -63,6 +86,28 @@ const FeatureItem = (props: FeatureItemProps) => { {description} + + {_.map(linkInfos, linkInfo => { + const onClick = (event: React.MouseEvent) => { + window.open(linkInfo.linkSrc, '_blank'); + }; + return ( + + + + {linkInfo.displayText} + + + + + + + ); + })} + ); return ( @@ -75,9 +120,7 @@ const FeatureItem = (props: FeatureItemProps) => { ) : ( {image} - - {info} - + {info} )} -- cgit