Skip to content

Instantly share code, notes, and snippets.

@treyhuffine
Created December 10, 2019 01:17
Show Gist options
  • Save treyhuffine/1cf316e44fa0e9a0df043138c9074516 to your computer and use it in GitHub Desktop.
Save treyhuffine/1cf316e44fa0e9a0df043138c9074516 to your computer and use it in GitHub Desktop.
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