From fc2a9a756a8f12965d814830f36126b8f0a963de Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 21 Feb 2018 09:59:09 -0800 Subject: Mobile optimize translated landing page --- packages/website/ts/pages/landing/landing.tsx | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'packages/website/ts/pages') diff --git a/packages/website/ts/pages/landing/landing.tsx b/packages/website/ts/pages/landing/landing.tsx index a7f90f169..5a231b99d 100644 --- a/packages/website/ts/pages/landing/landing.tsx +++ b/packages/website/ts/pages/landing/landing.tsx @@ -218,6 +218,7 @@ export class Landing extends React.Component { } private _renderHero() { const isSmallScreen = this.state.screenWidth === ScreenWidths.Sm; + const isMediumScreen = this.state.screenWidth === ScreenWidths.Md; const buttonLabelStyle: React.CSSProperties = { textTransform: 'none', fontSize: isSmallScreen ? 12 : 14, @@ -239,10 +240,9 @@ export class Landing extends React.Component {
@@ -266,7 +266,7 @@ export class Landing extends React.Component { > {this.props.translate.get(Key.TopTagline)}
-
+
{ style={{ color: colors.darkestGrey, height: 364, lineHeight: '364px' }} >
{this.props.translate.get(Key.TokenizedSectionHeader, Deco.Cap)} @@ -418,7 +418,10 @@ export class Landing extends React.Component { lineHeight: '430px', }} > -
+
{ const isSmallScreen = this.state.screenWidth === ScreenWidths.Sm; const boxStyle: React.CSSProperties = { maxWidth: 253, - height: 392, + height: 402, backgroundColor: colors.grey50, borderRadius: 5, padding: '10px 24px 24px', @@ -733,7 +736,8 @@ export class Landing extends React.Component { lineHeight: '33px', height: 49, }; - const callToActionClassNames = 'lg-pr3 md-pr3 lg-right-align md-right-align sm-center sm-px3 h4'; + const callToActionClassNames = + 'lg-pr3 md-pr3 lg-right-align md-right-align sm-center sm-px3 h4 lg-table-cell md-table-cell'; return (
@@ -744,12 +748,11 @@ export class Landing extends React.Component { fontFamily: 'Roboto Mono', color: colors.white, lineHeight: isSmallScreen ? 1.7 : 3, - display: 'table-cell', }} > {this.props.translate.get(Key.FinalCallToAction, Deco.Cap)}
-
+