Created
December 10, 2019 01:16
-
-
Save treyhuffine/033c74937b70705856b2ecfe4e174c45 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, 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