Created
December 10, 2019 01:17
-
-
Save treyhuffine/1cf316e44fa0e9a0df043138c9074516 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, Pill } from '../../styles'; | |
import { ProjectItem, ProjectTitle, SkillContainer } from './styles'; | |
const Projects = ({ user }) => { | |
return ( | |
<Layout user={user}> | |
<div> | |
<SectionTitle>Projects</SectionTitle> | |
<ul> | |
{user.projects.map((project, i) => ( | |
<ProjectItem key={i}> | |
<ProjectTitle>{project.name}</ProjectTitle> | |
<p>{project.summary}</p> | |
<SkillContainer> | |
{[...project.languages, ...project.libraries].map((item, j) => ( | |
<Pill key={j}>{item}</Pill> | |
))} | |
</SkillContainer> | |
</ProjectItem> | |
))} | |
</ul> | |
</div> | |
</Layout> | |
); | |
}; | |
export default Projects; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment