Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save treyhuffine/d0e21e56ec5e82a82f9481e1851d23c3 to your computer and use it in GitHub Desktop.
Save treyhuffine/d0e21e56ec5e82a82f9481e1851d23c3 to your computer and use it in GitHub Desktop.
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> &sdot; </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