Skip to content

Instantly share code, notes, and snippets.

@treyhuffine
Created December 10, 2019 01:16
Show Gist options
  • Select an option

  • Save treyhuffine/033c74937b70705856b2ecfe4e174c45 to your computer and use it in GitHub Desktop.

Select an option

Save treyhuffine/033c74937b70705856b2ecfe4e174c45 to your computer and use it in GitHub Desktop.
import React from 'react';
import Layout from '../../components/Layout';
import { SectionTitle, Paragraph, Pill } from '../../styles';
import { ProfileLink } from './styles';
const Me = ({ user }) => {
return (
<Layout user={user}>
<div>
<SectionTitle>About Me</SectionTitle>
<Paragraph>{user.basics.summary}</Paragraph>
</div>
<div>
<SectionTitle>Skills</SectionTitle>
<div>
{user.skills.map(skill => (
<Pill key={skill.name}>{skill.name}</Pill>
))}
</div>
</div>
<div>
<SectionTitle>Profiles</SectionTitle>
<ul>
{user.basics.profiles.map((profile, i) => (
<ProfileLink key={profile.network}>
{i !== 0 && ' | '}
<a href={profile.url} target="_blank" rel="noreferrer noopener">
{profile.network}
</a>
</ProfileLink>
))}
</ul>
</div>
</Layout>
);
};
export default Me;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment