1
1
import * as React from "react" ;
2
2
import styled from 'styled-components' ;
3
3
import { FiLinkedin , FiGithub , FiChevronLeft , FiChevronRight } from 'react-icons/fi' ;
4
+ import { MdWeb } from 'react-icons/md'
4
5
import { GatsbyImage } from "gatsby-plugin-image" ;
5
6
6
7
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
8
9
9
10
// handle carousel navigation
10
11
const handlePrev = ( ) => {
@@ -30,8 +31,18 @@ export default function CarouselCard({ member, index, count, teamIndex, setTeamI
30
31
< p className = "text-sm sm:text-xl" > { title } </ p >
31
32
</ div >
32
33
< 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
+ }
35
46
</ div >
36
47
</ div >
37
48
{ /* Highlights for large screens, show all */ }
0 commit comments