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 { 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 BENEFITS = [ 'Comprehensive insurance. Medical, dental, and vision coverage for you and your family.', 'Unlimited vacation. Three weeks per year minimum.', 'Flexible hours and liberal work-from-home-policy.', 'Relocation Assistance.', 'Whole team offsites and community / hackathon events (often international).', 'Monthly transportation and phone reimbursement.', 'Meals and snacks provided in-office daily.', ]; interface Value { iconSrc: string; text: string; } const VALUES: Value[] = [ { iconSrc: 'images/jobs/heart-icon.svg', text: 'Do the right thing', }, { iconSrc: 'images/jobs/ship-icon.svg', text: 'Consistently ship', }, { iconSrc: 'images/jobs/calendar-icon.svg', text: 'Focus on long term impact', }, ]; export interface BenefitsProps { screenWidth: ScreenWidths; } export const Benefits = (props: BenefitsProps) => { const isSmallScreen = props.screenWidth === ScreenWidths.Sm; return ( {!isSmallScreen ? ( ) : ( )} ); }; const Header: React.StatelessComponent = ({ children }) => ( {children} ); const BenefitsList = () => { return (
Benefits
{_.map(BENEFITS, benefit => )}
); }; interface BenefitItemProps { description: string; } const BenefitItem: React.StatelessComponent = ({ description }) => (
{description}
); const openMissionAndValuesBlogPost = () => { utils.openUrl(constants.URL_MISSION_AND_VALUES_BLOG_POST); }; const ValuesList = () => { return (
Our Values
{_.map(VALUES, value => )} We care deeply about our mission and encourage you to{' '} read more here .
); }; type ValueItemProps = Value; const ValueItem: React.StatelessComponent = ({ iconSrc, text }) => { return (
{text}
); };