-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathindex.js
More file actions
69 lines (66 loc) · 1.63 KB
/
Copy pathindex.js
File metadata and controls
69 lines (66 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import Image from 'next/image';
import styles from './Member.module.scss';
export default function Member({
image,
name,
title,
position,
about,
linkedIn,
portfolio,
}) {
return (
<div className={styles.card}>
{image && (
<div className={styles.imageWrapper}>
<Image
src={image}
alt={name}
fill
sizes='(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw'
/>
</div>
)}
<h2 className={styles.name}>{name}</h2>
<h3 className={styles.title}>{title}</h3>
<h3 className={styles.position}>{position}</h3>
<div className={styles.content}>
{linkedIn && (
<div className={styles.linkWrapper}>
<Image
src='/images/svg/linkedin-portfolio.svg'
alt='LinkedIn'
height={25}
width={25}
/>
<a
href={`https://linkedin.com/in/${linkedIn}`}
target='_blank'
rel='noopener noreferrer'
>
{linkedIn}
</a>
</div>
)}
{portfolio && (
<div className={styles.linkWrapper}>
<Image
src='/images/svg/globe.svg'
alt='Web Site'
height={25}
width={25}
/>
<a
href={`https://${portfolio}`}
target='_blank'
rel='noopener noreferrer'
>
{portfolio}
</a>
</div>
)}
<p className={styles.paragraph}>{about}</p>
</div>
</div>
);
}