From 3c073bc360f88129bd59e7e3d0d7fbcf69828da4 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Sun, 10 Jun 2018 20:45:18 -0700 Subject: Benefits section --- packages/website/ts/pages/jobs/benefits.tsx | 84 +++++++++++++++++++--- .../website/ts/pages/jobs/bulleted_item_list.tsx | 1 + packages/website/ts/pages/jobs/jobs.tsx | 2 +- 3 files changed, 75 insertions(+), 12 deletions(-) (limited to 'packages/website') diff --git a/packages/website/ts/pages/jobs/benefits.tsx b/packages/website/ts/pages/jobs/benefits.tsx index fa4edb240..03a906a10 100644 --- a/packages/website/ts/pages/jobs/benefits.tsx +++ b/packages/website/ts/pages/jobs/benefits.tsx @@ -1,22 +1,84 @@ +import * as _ from 'lodash'; import * as React from 'react'; +import { BulletedItemProps } from 'ts/pages/jobs/bulleted_item'; +import { BulletedItemList } from 'ts/pages/jobs/bulleted_item_list'; import { FilledImage } from 'ts/pages/jobs/filled_image'; +import { FloatingImage } from 'ts/pages/jobs/floating_image'; +import { colors } from 'ts/style/colors'; +import { ScreenWidths } from 'ts/types'; -export const Benefits = () => ( +const IMAGE_PATHS = ['/images/jobs/location1.png', '/images/jobs/location2.png', '/images/jobs/location3.png']; +const BULLETED_ITEMS: BulletedItemProps[] = [ + { + bulletColor: '#6FCF97', + title: 'Ethics/Doing the right thing', + description: 'orem ipsum dolor sit amet, consectetur adipiscing elit.', + }, + { + bulletColor: '#56CCF2', + title: 'Consistently ship', + description: 'orem ipsum dolor sit amet, consectetur adipiscing elit.', + }, + { + bulletColor: '#EB5757', + title: 'Focus on long term impact', + description: 'orem ipsum dolor sit amet, consectetur adipiscing elit.', + }, + { + bulletColor: '#6FCF97', + title: 'Test test yo', + description: 'orem ipsum dolor sit amet, consectetur adipiscing elit.', + }, + { + bulletColor: '#56CCF2', + title: 'Waddle Waddle', + description: 'orem ipsum dolor sit amet, consectetur adipiscing elit.', + }, +]; + +export interface BenefitsProps { + screenWidth: ScreenWidths; +} + +export const Benefits = (props: BenefitsProps) => ( +
+ {props.screenWidth === ScreenWidths.Sm ? : } +
+); + +const LargeLayout = () => (
-
- + +
+
+ +
+
+); + +const SmallLayout = () => ( +
+ + +
+); + +const BenefitsList = () => ; + +const ImageGrid = () => ( +
+
+ +
+
+
+
-
-
- -
-
- -
+
+
-
); diff --git a/packages/website/ts/pages/jobs/bulleted_item_list.tsx b/packages/website/ts/pages/jobs/bulleted_item_list.tsx index 108f31e00..30dd126d1 100644 --- a/packages/website/ts/pages/jobs/bulleted_item_list.tsx +++ b/packages/website/ts/pages/jobs/bulleted_item_list.tsx @@ -18,6 +18,7 @@ export const BulletedItemList = (props: BulletedItemListProps) => { {_.map(props.bulletedItems, bulletedItemProps => { return ( { )} - +