From 934117bfe4c7ecde3e346d58218b5600d66da15e Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Mon, 10 Dec 2018 15:43:15 +0100 Subject: Refactor positions --- packages/website/ts/@next/pages/about/jobs.tsx | 75 +++++++++++++++++--------- 1 file changed, 51 insertions(+), 24 deletions(-) (limited to 'packages/website/ts') diff --git a/packages/website/ts/@next/pages/about/jobs.tsx b/packages/website/ts/@next/pages/about/jobs.tsx index 42ff75007..c3fec8e2b 100644 --- a/packages/website/ts/@next/pages/about/jobs.tsx +++ b/packages/website/ts/@next/pages/about/jobs.tsx @@ -1,13 +1,61 @@ import * as React from 'react'; +import * as _ from 'lodash'; import { Link as ReactRouterLink } from 'react-router-dom'; import styled from 'styled-components'; import { ChapterLink } from 'ts/@next/components/chapter_link'; import { Column, Section, Wrap } from 'ts/@next/components/layout'; import { Link } from 'ts/@next/components/link'; +import { Separator } from 'ts/@next/components/separator'; import { SiteWrap } from 'ts/@next/components/siteWrap'; import { Heading, Paragraph } from 'ts/@next/components/text'; +interface PositionInterface { + title: string; + location: string; + href: string; +} + +const positions: PositionInterface[] = [ + { + title: 'Product Designer', + location: 'San Francisco, Remote', + href: '#', + }, + { + title: 'Product Designer', + location: 'San Francisco, Remote', + href: '#', + }, + { + title: 'Product Designer', + location: 'San Francisco, Remote', + href: '#', + }, + { + title: 'Open Positition', + location: "We're always interested in talking to talented people. Send us an application if you think you're the right fit.", + href: '#', + }, +]; + +const Position = ({ position }) => ( + <> + + + {position.title} + + + {position.location} + + + Apply + + + + +); + export const NextAboutJobs = () => (
@@ -73,6 +121,8 @@ export const NextAboutJobs = () => (
+ +
@@ -80,30 +130,7 @@ export const NextAboutJobs = () => ( - - - Product Designer - - - San Francisco, Remote - - - Apply - - - - - Open Positition - - - - We're always interested in talking to talented people. Send us an application if you think you're the right fit. - - - - Apply - - + {_.map(positions, (position, index) => )}
-- cgit