From b3f91600d3774a4f8a6c82e0b785439a7f65cc87 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 8 Feb 2018 17:53:31 -0800 Subject: Center header above relayers --- packages/website/ts/pages/landing/landing.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'packages/website/ts/pages/landing/landing.tsx') diff --git a/packages/website/ts/pages/landing/landing.tsx b/packages/website/ts/pages/landing/landing.tsx index a239bcf14..5ccfd8dd2 100644 --- a/packages/website/ts/pages/landing/landing.tsx +++ b/packages/website/ts/pages/landing/landing.tsx @@ -218,10 +218,10 @@ export class Landing extends React.Component { style={{ backgroundColor: colors.heroGrey, position: 'relative' }} /> {this._renderHero()} - {this._renderProjects(relayersAndDappProjects, 'Projects building on 0x', colors.projectsGrey)} + {this._renderProjects(relayersAndDappProjects, 'Projects building on 0x', colors.projectsGrey, false)} {this._renderTokenizationSection()} {this._renderProtocolSection()} - {this._renderProjects(relayerProjects, 'Relayers building on 0x', colors.heroGrey)} + {this._renderProjects(relayerProjects, 'Relayers building on 0x', colors.heroGrey, true)} {this._renderInfoBoxes()} {this._renderBuildingBlocksSection()} {this._renderUseCases()} @@ -311,7 +311,7 @@ export class Landing extends React.Component { ); } - private _renderProjects(projects: Project[], title: string, backgroundColor: string) { + private _renderProjects(projects: Project[], title: string, backgroundColor: string, isTitleCenter: boolean) { const isSmallScreen = this.state.screenWidth === ScreenWidths.Sm; const isMediumScreen = this.state.screenWidth === ScreenWidths.Md; const projectList = _.map(projects, (project: Project, i: number) => { @@ -319,11 +319,11 @@ export class Landing extends React.Component { let colWidth: number; switch (this.state.screenWidth) { case ScreenWidths.Sm: - colWidth = isRelayersOnly ? 4 : 4; + colWidth = 4; break; case ScreenWidths.Md: - colWidth = isRelayersOnly ? 3 : 3; + colWidth = 3; break; case ScreenWidths.Lg: @@ -351,9 +351,9 @@ export class Landing extends React.Component { letterSpacing: 3, }; return ( -
+
-
+
{title}
{projectList}
@@ -610,7 +610,7 @@ export class Landing extends React.Component { }; return (
-
+
Benefits of 0x
-- cgit