aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/jobs/benefits.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/ts/pages/jobs/benefits.tsx')
-rw-r--r--packages/website/ts/pages/jobs/benefits.tsx184
1 files changed, 107 insertions, 77 deletions
diff --git a/packages/website/ts/pages/jobs/benefits.tsx b/packages/website/ts/pages/jobs/benefits.tsx
index 006facc83..c8024068f 100644
--- a/packages/website/ts/pages/jobs/benefits.tsx
+++ b/packages/website/ts/pages/jobs/benefits.tsx
@@ -1,109 +1,139 @@
import * as _ from 'lodash';
import * as React from 'react';
+import { Circle } from 'ts/components/ui/circle';
+import { Container } from 'ts/components/ui/container';
import { FilledImage } from 'ts/components/ui/filled_image';
-import { HeaderItem } from 'ts/pages/jobs/list/header_item';
-import { ListItem } from 'ts/pages/jobs/list/list_item';
+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';
+import { constants } from 'ts/utils/constants';
+import { utils } from 'ts/utils/utils';
-const IMAGE_PATHS = ['/images/jobs/location1.png', '/images/jobs/location2.png', '/images/jobs/location3.png'];
-const BENEFIT_ITEM_PROPS_LIST: BenefitItemProps[] = [
- {
- bulletColor: '#6FCF97',
- description:
- 'Donec eget auctor mauris, a imperdiet ante. Ut a tellus ullamcorper, pharetra nibh sed, dignissim mauris. Quisque vel magna vitae nisi scelerisque commodo sed eget dolor. Maecenas vehicula orci',
- },
- {
- bulletColor: '#56CCF2',
- description:
- 'Donec eget auctor mauris, a imperdiet ante. Ut a tellus ullamcorper, pharetra nibh sed, dignissim mauris. Quisque vel magna vitae nisi scelerisque commodo sed eget dolor. Maecenas vehicula orci',
- },
+const BENEFITS = [
+ 'Comprehensive insurance. Medical, dental, and vision coverage for you and your family.',
+ 'Unlimited vacation. Three weeks per year minimum.',
+ 'Flexible hours and libteral work-from-home-policy.',
+ 'Relocation Assistance.',
+ 'Whole team offsites and community / hackathon events (often international).',
+ 'Monthly transportation and phone reimbursement.',
+ 'Meals and snacks prvided in-office daily',
+];
+
+interface Value {
+ iconSrc: string;
+ text: string;
+}
+const VALUES: Value[] = [
{
- bulletColor: '#EB5757',
- description:
- 'Donec eget auctor mauris, a imperdiet ante. Ut a tellus ullamcorper, pharetra nibh sed, dignissim mauris. Quisque vel magna vitae nisi scelerisque commodo sed eget dolor. Maecenas vehicula orci',
+ iconSrc: 'images/jobs/heart-icon.svg',
+ text: 'Do the right thing',
},
{
- bulletColor: '#6FCF97',
- description:
- 'Donec eget auctor mauris, a imperdiet ante. Ut a tellus ullamcorper, pharetra nibh sed, dignissim mauris. Quisque vel magna vitae nisi scelerisque commodo sed eget dolor. Maecenas vehicula orci',
+ iconSrc: 'images/jobs/ship-icon.svg',
+ text: 'Consistently ship',
},
{
- bulletColor: '#56CCF2',
- description:
- 'Donec eget auctor mauris, a imperdiet ante. Ut a tellus ullamcorper, pharetra nibh sed, dignissim mauris. Quisque vel magna vitae nisi scelerisque commodo sed eget dolor. Maecenas vehicula orci',
+ iconSrc: 'images/jobs/calendar-icon.svg',
+ text: 'Focus on long term impact',
},
];
-const LARGE_LAYOUT_HEIGHT = 937;
-const LARGE_LAYOUT_BENEFITS_LIST_PADDING_LEFT = 205;
-const HEADER_TEXT = 'Benefits';
-const BENEFIT_ITEM_MIN_HEIGHT = 150;
export interface BenefitsProps {
screenWidth: ScreenWidths;
}
-export const Benefits = (props: BenefitsProps) => (
- <div style={{ backgroundColor: colors.jobsPageBackground }}>
- {props.screenWidth === ScreenWidths.Sm ? <SmallLayout /> : <LargeLayout />}
- </div>
-);
-
-const LargeLayout = () => (
- <div className="flex" style={{ height: LARGE_LAYOUT_HEIGHT }}>
- <div style={{ width: '43%', height: '100%' }}>
- <ImageGrid />
- </div>
- <div
- className="pr4"
- style={{ paddingLeft: LARGE_LAYOUT_BENEFITS_LIST_PADDING_LEFT, width: '57%', height: '100%' }}
- >
- <BenefitsList />
- </div>
- </div>
-);
+export const Benefits = (props: BenefitsProps) => {
+ const isSmallScreen = props.screenWidth === ScreenWidths.Sm;
+ return (
+ <Container className="flex flex-column items-center py4" backgroundColor={colors.white}>
+ {!isSmallScreen ? (
+ <Container className="flex" maxWidth="800px">
+ <BenefitsList />
+ <Container marginLeft="200px">
+ <ValuesList />
+ </Container>
+ </Container>
+ ) : (
+ <Container className="flex-column pl3">
+ <BenefitsList />
+ <Container marginTop="50px">
+ <ValuesList />
+ </Container>
+ </Container>
+ )}
+ </Container>
+ );
+};
-const SmallLayout = () => (
- <div>
- <FilledImage src={_.head(IMAGE_PATHS)} />
- <BenefitsList />
- </div>
+const Header: React.StatelessComponent = ({ children }) => (
+ <Container marginBottom="51px">
+ <Text fontFamily="Roboto Mono" fontSize="24px" fontColor={colors.black}>
+ {children}
+ </Text>
+ </Container>
);
-export const BenefitsList = () => {
+const BenefitsList = () => {
return (
- <div>
- <HeaderItem headerText={HEADER_TEXT} />
- {_.map(BENEFIT_ITEM_PROPS_LIST, valueItemProps => <BenefitItem {...valueItemProps} />)}
- </div>
+ <Container maxWidth="360px">
+ <Header>Benefits</Header>
+ {_.map(BENEFITS, benefit => <BenefitItem description={benefit} />)}
+ </Container>
);
};
interface BenefitItemProps {
- bulletColor: string;
description: string;
}
-const BenefitItem: React.StatelessComponent<BenefitItemProps> = ({ bulletColor, description }) => (
- <div style={{ minHeight: BENEFIT_ITEM_MIN_HEIGHT }}>
- <ListItem bulletColor={bulletColor}>
- <div style={{ fontSize: 16, lineHeight: 1.5 }}>{description}</div>
- </ListItem>
- </div>
-);
-
-const ImageGrid = () => (
- <div style={{ width: '100%', height: '100%' }}>
- <div className="flex" style={{ height: '67%' }}>
- <FilledImage src={IMAGE_PATHS[0]} />
- </div>
- <div className="clearfix" style={{ height: '33%' }}>
- <div className="col lg-col-6 md-col-6 col-12" style={{ height: '100%' }}>
- <FilledImage src={IMAGE_PATHS[1]} />
- </div>
- <div className="col lg-col-6 md-col-6 col-12" style={{ height: '100%' }}>
- <FilledImage src={IMAGE_PATHS[2]} />
+const BenefitItem: React.StatelessComponent<BenefitItemProps> = ({ description }) => (
+ <Container marginBottom="30px">
+ <div className="flex">
+ <Circle className="flex-none pr2 pt1" diameter={8} fillColor={colors.black} />
+ <div className="flex-auto">
+ <Text fontSize="14px" lineHeight="24px">
+ {description}
+ </Text>
</div>
</div>
- </div>
+ </Container>
);
+
+const openMissionAndValuesBlogPost = () => {
+ utils.openUrl(constants.URL_MISSION_AND_VALUES_BLOG_POST);
+};
+const ValuesList = () => {
+ return (
+ <Container maxWidth="360px">
+ <Header>Our Values</Header>
+ {_.map(VALUES, value => <ValueItem {...value} />)}
+ <Text fontSize="14px" lineHeight="26px">
+ We care deeply about our mission and encourage you to{' '}
+ <a
+ style={{ color: colors.mediumBlue }}
+ target="_blank"
+ href={constants.URL_MISSION_AND_VALUES_BLOG_POST}
+ >
+ read more here
+ </a>.
+ </Text>
+ </Container>
+ );
+};
+
+type ValueItemProps = Value;
+const ValueItem: React.StatelessComponent<ValueItemProps> = ({ iconSrc, text }) => {
+ return (
+ <Container marginBottom="45px">
+ <div className="flex items-center">
+ <Image className="flex-none pr2" width="20px" src={iconSrc} />
+ <div className="flex-auto">
+ <Text fontSize="14px" lineHeight="24px" fontWeight="bold">
+ {text}
+ </Text>
+ </div>
+ </div>
+ </Container>
+ );
+};