Created
December 10, 2019 01:21
-
-
Save treyhuffine/d0e21e56ec5e82a82f9481e1851d23c3 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 { EducationItem, Institution, Degree } from './styles'; | |
const Education = ({ user }) => { | |
return ( | |
<Layout user={user}> | |
<div> | |
<SectionTitle>Education</SectionTitle> | |
<ul> | |
{user.education.map((education, i) => ( | |
<EducationItem key={i}> | |
<Institution>{education.position}</Institution> | |
<div> | |
<Degree> | |
{education.studyType}, {education.area} | |
</Degree>{' '} | |
<span> ⋅ </span> | |
<span> | |
{education.start.year} to {education.end.year} | |
</span> | |
</div> | |
<Paragraph>{education.description.replace('\n\n', '\n')}</Paragraph> | |
</EducationItem> | |
))} | |
</ul> | |
</div> | |
</Layout> | |
); | |
}; | |
export default Education; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment