This repository has been archived by the owner on Feb 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Team.js
134 lines (127 loc) · 3.4 KB
/
Team.js
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import { Heading, Box, Text, Image } from 'grommet';
import { Row, Col } from 'react-grid-system';
import { withTranslation } from '../i18n';
const teamMembers = [
{
name: 'Sarah Friend',
image: 'images/team/sarahf.png',
},
{
name: 'Blanka Vay',
image: 'images/team/blankav.png',
},
{
name: 'Julio Linares',
image: 'images/team/juliol.png',
},
{
name: '@adz',
image: 'images/team/adz.png',
},
{
name: 'Martin Köppelmann',
image: 'images/team/martink.png',
},
{
name: 'Saraswathi Subbaraman',
image: 'images/team/swathi.png',
},
];
const contributors = [
'Andy Milenius',
'Anne Walther',
'Ashoka Finley',
'David Terry',
'Ed Murphy',
'Emin Durak',
'Franziska Börner-Zobel',
'Harriet von Froreich',
'Jacob Hühn',
'Javier Alaves',
'Justyna Trivedi',
'Karenina Schröder',
'Malthus John',
'Martin Lundfall',
'Ronit Kory',
'Wouter Kampmann',
];
const Team = ({ t }) => {
return (
<Box
id="team"
margin={{ top: 'large' }}
style={{
background: `linear-gradient(180deg, #fff 0%, rgb(243, 208, 223) 20%, #fff 40%, #fff 50%, rgb(243, 208, 223)) 100%`,
position: 'relative',
}}
>
<Heading
alignSelf="center"
color="dark-1"
margin={{ top: 'large', bottom: 'small' }}
level={1}
textAlign="center"
>
{t('team-title')}
</Heading>
<Text textAlign="center" margin={{ bottom: 'medium' }}>
<em>{t('team-subtitle')}</em>
</Text>
<Box margin={{ left: 'large', right: 'large', bottom: 'large' }}>
<Row>
{teamMembers.map((member) => (
<Col md={4} key={member.name}>
<Box pad="medium" gap="small" align="center" alignSelf="center">
<Box>
<Image width="220px" src={member.image} alt={member.name} />
</Box>
<Box alignSelf="center">
<Text textAlign="center">{member.name}</Text>
<Text textAlign="center">
<em>{t(`${member.name} title`)}</em>
</Text>
</Box>
</Box>
</Col>
))}
</Row>
</Box>
<Box
pad="medium"
width="100%"
style={{
backgroundImage: `url('/images/team-back-left.svg'), url('/images/team-back-right.svg')`,
backgroundRepeat: 'no-repeat, no-repeat',
backgroundPosition: 'bottom left, bottom right',
backgroundSize: '50% 50%',
}}
>
<Text textAlign="center" margin={{ top: 'xlarge', bottom: 'large' }}>
<em>{t('team-extra-subtitle')}</em>
</Text>
<Box
size="large"
alignSelf="center"
direction="row"
margin={{ bottom: 'large' }}
>
<Box pad={{ horizontal: 'large' }} gap="small">
{contributors
.filter((c, i) => i < contributors.length / 2)
.map((c) => (
<Text key={c}>{c}</Text>
))}
</Box>
<Box pad={{ horizontal: 'large' }} gap="small">
{contributors
.filter((c, i) => i >= contributors.length / 2)
.map((c) => (
<Text key={c}>{c}</Text>
))}
</Box>
</Box>
</Box>
</Box>
);
};
export default withTranslation('team')(Team);