From 6c43fa8f7253083bb5e50a3f8940f35d105c8bf1 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Tue, 27 Nov 2018 00:49:49 -0800 Subject: feat(website): add screenshots to instant page --- packages/website/ts/pages/instant/features.tsx | 65 ++++++++++++++++++++++ packages/website/ts/pages/instant/instant.tsx | 4 ++ .../ts/pages/instant/introducing_0x_instant.tsx | 2 +- packages/website/ts/pages/instant/screenshots.tsx | 15 +++++ 4 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 packages/website/ts/pages/instant/features.tsx create mode 100644 packages/website/ts/pages/instant/screenshots.tsx (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 new file mode 100644 index 000000000..205982044 --- /dev/null +++ b/packages/website/ts/pages/instant/features.tsx @@ -0,0 +1,65 @@ +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 const Features = () => ( + + + + + + + + +); + +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 shouldShowImage = screenWidth === ScreenWidths.Lg; + const image = ; + const missionStatementClassName = !shouldShowImage ? 'center' : undefined; + const missionStatement = ( + + + {title} + + + + {description} + + + + ); + return ( +
+ {shouldShowImage ? ( + + {image} + {missionStatement} + + ) : ( + {missionStatement} + )} +
+ ); +}; diff --git a/packages/website/ts/pages/instant/instant.tsx b/packages/website/ts/pages/instant/instant.tsx index 5abfaf4b2..87d6a64d4 100644 --- a/packages/website/ts/pages/instant/instant.tsx +++ b/packages/website/ts/pages/instant/instant.tsx @@ -6,7 +6,9 @@ import { Footer } from 'ts/components/footer'; import { MetaTags } from 'ts/components/meta_tags'; import { TopBar } from 'ts/components/top_bar/top_bar'; import { Container } from 'ts/components/ui/container'; +import { Features } from 'ts/pages/instant/features'; import { Introducing0xInstant } from 'ts/pages/instant/introducing_0x_instant'; +import { Screenshots } from 'ts/pages/instant/screenshots'; import { Dispatcher } from 'ts/redux/dispatcher'; import { colors } from 'ts/style/colors'; import { ScreenWidths } from 'ts/types'; @@ -51,6 +53,8 @@ export class Instant extends React.Component { /> + +