-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathindex.js
More file actions
81 lines (81 loc) · 2.53 KB
/
Copy pathindex.js
File metadata and controls
81 lines (81 loc) · 2.53 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
70
71
72
73
74
75
76
77
78
79
80
81
import styles from './AuthorBio.module.scss';
import Image from 'next/image';
import Container from '@/components/containers/Container';
export default function AuthorBio({ user }) {
return (
<div className={styles['grey-bg']}>
<Container>
<h3>Author Bio</h3>
<div className={styles['flex-container']}>
<div className={styles['image-wrapper']}>
<Image
src={user.profile_image}
alt="Author's profile"
fill
sizes='(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw'
/>
</div>
<div className={styles['split-container']}>
<p>{user.summary}</p>
<div className={styles['logos-container']}>
{user.twitter_username && (
<a
href={`https://x.com/${user.twitter_username}`}
target='_blank'
rel='noopener noreferrer'
>
<Image
src='/images/svg/x.svg'
alt='X logo'
height={48}
width={48}
/>
</a>
)}
{user.github_username && (
<a
href={`https://github.com/${user.github_username}`}
target='_blank'
rel='noopener noreferrer'
>
<Image
src='/images/svg/github-black.svg'
alt='Github Logo'
height={48}
width={48}
/>
</a>
)}
{user.website_url && (
<a
href={user.website_url}
target='_blank'
rel='noopener noreferrer'
>
<Image
src='/images/svg/globe.svg'
alt='Web Site'
height={48}
width={48}
/>
</a>
)}
<a
href={`https://www.linkedin.com/${user.linkedIn}`}
target='_blank'
rel='noopener noreferrer'
>
<Image
src='/images/svg/linkedin-portfolio.svg'
alt='Linkedin account of Web Dev Path'
height={48}
width={48}
/>
</a>
</div>
</div>
</div>
</Container>
</div>
);
}