Skip to content

Commit 8edf031

Browse files
author
Carms Ng
authored
Merge pull request #38 from coderbunker/add-portfolio-link
Add the option to link one's portfolio to member card
2 parents 7ef2b29 + 7e528c2 commit 8edf031

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

src/assets/content/members/04_angdi_chu.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Angdi \"Andie\" Chu",
44
"title": "UI/UX Designer & Creative Developer",
55
"linkedin": "https://www.linkedin.com/in/cad0420/",
6-
"github": "http://andiechu.com",
6+
"website": "http://andiechu.com",
77
"image": "04_angdi_chu.jpg",
88
"highlights": [
99
"Designing & building creative experience with product thinking",
@@ -20,7 +20,7 @@
2020
"name": "Angdi \"Andie\" Chu",
2121
"title": "UI/UX Designer & Développeuse Créative",
2222
"linkedin": "https://www.linkedin.com/in/cad0420/",
23-
"github": "http://andiechu.com",
23+
"website": "http://andiechu.com",
2424
"image": "04_angdi_chu.jpg",
2525
"highlights": [
2626
"Design et construire l'expérience créative avec le Product Thinking",

src/components/carousel-card.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import * as React from "react";
22
import styled from 'styled-components';
33
import { FiLinkedin, FiGithub, FiChevronLeft, FiChevronRight } from 'react-icons/fi';
4+
import { MdWeb } from 'react-icons/md'
45
import { GatsbyImage } from "gatsby-plugin-image";
56

67
export default function CarouselCard({ member, index, count, teamIndex, setTeamIndex }) {
7-
const { name, title, image, linkedin, github, highlights } = member
8+
const { name, title, image, linkedin, github, website, highlights } = member
89

910
// handle carousel navigation
1011
const handlePrev = () => {
@@ -30,8 +31,18 @@ export default function CarouselCard({ member, index, count, teamIndex, setTeamI
3031
<p className="text-sm sm:text-xl">{title}</p>
3132
</div>
3233
<div className="text-sm sm:text-2xl md:text-3xl flex">
33-
<a href={linkedin} aria-label="social media icon Linkedin" target="_blank" rel="noreferrer"><FiLinkedin className="mr-3"/></a>
34-
<a href={github} aria-label="social media icon Github" target="_blank" rel="noreferrer"><FiGithub className="md:ml-3"/></a>
34+
{
35+
linkedin &&
36+
<a href={linkedin} aria-label="social media icon Linkedin" target="_blank" rel="noreferrer"><FiLinkedin className="mr-3"/></a>
37+
}
38+
{
39+
github &&
40+
<a href={github} aria-label="social media icon Github" target="_blank" rel="noreferrer"><FiGithub className="md:ml-3"/></a>
41+
}
42+
{
43+
website &&
44+
<a href={website} aria-label="social media icon Website" target="_blank" rel="noreferrer"><MdWeb className="md:ml-3"/></a>
45+
}
3546
</div>
3647
</div>
3748
{/* Highlights for large screens, show all */}

src/components/carousel.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export default function Carousel({ teamIndex, setTeamIndex, locale }) {
1111
name
1212
title
1313
linkedin
14+
website
15+
github
1416
image {
1517
childImageSharp {
1618
gatsbyImageData(
@@ -22,12 +24,13 @@ export default function Carousel({ teamIndex, setTeamIndex, locale }) {
2224
}
2325
}
2426
highlights
25-
github
2627
}
2728
fr {
2829
name
2930
title
3031
linkedin
32+
website
33+
github
3134
image {
3235
childImageSharp {
3336
gatsbyImageData(
@@ -38,7 +41,6 @@ export default function Carousel({ teamIndex, setTeamIndex, locale }) {
3841
}
3942
}
4043
highlights
41-
github
4244
}
4345
}
4446
}

0 commit comments

Comments
 (0)