From c2fd6745eeebbe3bfcc016f2f1f9b7d96cf8dcb0 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Tue, 27 Nov 2018 16:53:04 -0800 Subject: chore(website): random fixes for mobile optimization --- packages/website/ts/pages/instant/features.tsx | 28 ++++++--- packages/website/ts/pages/instant/instant.tsx | 2 +- .../ts/pages/instant/introducing_0x_instant.tsx | 67 +++++++++++++--------- packages/website/ts/pages/instant/screenshots.tsx | 2 +- 4 files changed, 63 insertions(+), 36 deletions(-) (limited to 'packages') diff --git a/packages/website/ts/pages/instant/features.tsx b/packages/website/ts/pages/instant/features.tsx index 96256d337..9b61df354 100644 --- a/packages/website/ts/pages/instant/features.tsx +++ b/packages/website/ts/pages/instant/features.tsx @@ -2,6 +2,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'; @@ -13,7 +14,7 @@ export interface FeatureProps { export const Features = (props: FeatureProps) => ( ( screenWidth={props.screenWidth} /> ( screenWidth={props.screenWidth} /> { const { imgSrc, title, description, linkInfos, screenWidth } = props; const isLargeScreen = screenWidth === ScreenWidths.Lg; - const image = ; + const maxWidth = isLargeScreen ? '500px' : undefined; + const image = ( + + + + ); const info = ( - + {title} @@ -92,7 +98,13 @@ const FeatureItem = (props: FeatureItemProps) => { window.open(linkInfo.linkSrc, '_blank'); }; return ( - + {linkInfo.displayText} @@ -118,9 +130,9 @@ const FeatureItem = (props: FeatureItemProps) => { {info} ) : ( - + {image} - {info} + {info} )} diff --git a/packages/website/ts/pages/instant/instant.tsx b/packages/website/ts/pages/instant/instant.tsx index 8c0afa298..4eac251f4 100644 --- a/packages/website/ts/pages/instant/instant.tsx +++ b/packages/website/ts/pages/instant/instant.tsx @@ -53,7 +53,7 @@ export class Instant extends React.Component { isNightVersion={true} /> - + diff --git a/packages/website/ts/pages/instant/introducing_0x_instant.tsx b/packages/website/ts/pages/instant/introducing_0x_instant.tsx index 50a7a1b2d..92183ba98 100644 --- a/packages/website/ts/pages/instant/introducing_0x_instant.tsx +++ b/packages/website/ts/pages/instant/introducing_0x_instant.tsx @@ -4,32 +4,47 @@ import { Button } from 'ts/components/ui/button'; import { Container } from 'ts/components/ui/container'; import { Text } from 'ts/components/ui/text'; import { colors } from 'ts/style/colors'; +import { ScreenWidths } from 'ts/types'; -export const Introducing0xInstant = () => ( -
-
- - - Introducing 0x Instant - - - - - A free and flexible way to offer simple crypto -
purchasing in any app or website. -
-
-
- +export interface Introducing0xInstantProps { + screenWidth: ScreenWidths; +} + +export const Introducing0xInstant = (props: Introducing0xInstantProps) => { + const isSmallScreen = props.screenWidth === ScreenWidths.Sm; + const title = isSmallScreen ? ( +
+ Introducing
0x Instant +
+ ) : ( +
Introducing 0x Instant
+ ); + return ( +
+
+ + + {title} + + + + + A free and flexible way to offer simple crypto +
purchasing in any app or website. +
+
+
+ +
-
-); + ); +}; diff --git a/packages/website/ts/pages/instant/screenshots.tsx b/packages/website/ts/pages/instant/screenshots.tsx index fe9ca03b9..7dcf17fd1 100644 --- a/packages/website/ts/pages/instant/screenshots.tsx +++ b/packages/website/ts/pages/instant/screenshots.tsx @@ -28,7 +28,7 @@ export const Screenshots = (props: ScreenshotsProps) => { return ( {_.map(images, image => { - return ; + return ; })} ); -- cgit v1.2.3