Created
December 10, 2019 01:19
-
-
Save treyhuffine/d5106bb40083a8ecc0dd9eb98643cd2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Layout from '../../components/Layout'; | |
import { SectionTitle, Paragraph } from '../../styles'; | |
import { WorkItem, WorkTitle, JobTitle } from './styles'; | |
const Work = ({ user }) => { | |
return ( | |
<Layout user={user}> | |
<div> | |
<SectionTitle>Work</SectionTitle> | |
<ul> | |
{user.work.map((work, i) => ( | |
<WorkItem key={i}> | |
<WorkTitle>{work.position}</WorkTitle> | |
<div> | |
<JobTitle>{work.company}</JobTitle> <span>{work.location}</span> | |
<span> ⋅ </span> | |
<span> | |
{work.start.year} to {work.end.year} | |
</span> | |
</div> | |
<Paragraph>{work.summary}</Paragraph> | |
</WorkItem> | |
))} | |
</ul> | |
</div> | |
</Layout> | |
); | |
}; | |
export default Work; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment