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 --- .../public/images/instant/bat_screenshot.png | Bin 0 -> 42666 bytes .../public/images/instant/kitty_screenshot.png | Bin 0 -> 76525 bytes .../public/images/instant/leroy_screenshot.png | Bin 0 -> 54666 bytes .../public/images/instant/mkr_screenshot.png | Bin 0 -> 21904 bytes .../public/images/instant/omg_screenshot.png | Bin 0 -> 43351 bytes .../public/images/instant/snt_screenshot.png | Bin 0 -> 41895 bytes 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 +++++ 10 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 packages/website/public/images/instant/bat_screenshot.png create mode 100644 packages/website/public/images/instant/kitty_screenshot.png create mode 100644 packages/website/public/images/instant/leroy_screenshot.png create mode 100644 packages/website/public/images/instant/mkr_screenshot.png create mode 100644 packages/website/public/images/instant/omg_screenshot.png create mode 100644 packages/website/public/images/instant/snt_screenshot.png create mode 100644 packages/website/ts/pages/instant/features.tsx create mode 100644 packages/website/ts/pages/instant/screenshots.tsx (limited to 'packages/website') diff --git a/packages/website/public/images/instant/bat_screenshot.png b/packages/website/public/images/instant/bat_screenshot.png new file mode 100644 index 000000000..71066a30d Binary files /dev/null and b/packages/website/public/images/instant/bat_screenshot.png differ diff --git a/packages/website/public/images/instant/kitty_screenshot.png b/packages/website/public/images/instant/kitty_screenshot.png new file mode 100644 index 000000000..c3342bf26 Binary files /dev/null and b/packages/website/public/images/instant/kitty_screenshot.png differ diff --git a/packages/website/public/images/instant/leroy_screenshot.png b/packages/website/public/images/instant/leroy_screenshot.png new file mode 100644 index 000000000..af8270c3e Binary files /dev/null and b/packages/website/public/images/instant/leroy_screenshot.png differ diff --git a/packages/website/public/images/instant/mkr_screenshot.png b/packages/website/public/images/instant/mkr_screenshot.png new file mode 100644 index 000000000..344fbbc8d Binary files /dev/null and b/packages/website/public/images/instant/mkr_screenshot.png differ diff --git a/packages/website/public/images/instant/omg_screenshot.png b/packages/website/public/images/instant/omg_screenshot.png new file mode 100644 index 000000000..52742a597 Binary files /dev/null and b/packages/website/public/images/instant/omg_screenshot.png differ diff --git a/packages/website/public/images/instant/snt_screenshot.png b/packages/website/public/images/instant/snt_screenshot.png new file mode 100644 index 000000000..aed69dc07 Binary files /dev/null and b/packages/website/public/images/instant/snt_screenshot.png differ 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 { /> + +