-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathTeam.jsx
More file actions
338 lines (313 loc) · 11.5 KB
/
Team.jsx
File metadata and controls
338 lines (313 loc) · 11.5 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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
'use client'
import CedricRischeProfile2024 from "../../assets/images/team/2024/cedric_rische.webp"
import MathildaHeiseProfile2024 from "../../assets/images/team/2024/mathilda_heise.webp"
import MattiSchmidtProfile2024 from "../../assets/images/team/2024/matti_schmidt.webp"
import NikolasRiegerProfile2024 from "../../assets/images/team/2024/nikolas_rieger.webp"
import TanjaLehmannProfile2024 from "../../assets/images/team/2024/tanja_lehmann.webp"
import TheoKlinkeProfile2024 from "../../assets/images/team/2024/theo_klinke.webp"
import ViktorKalvodaProfile2024 from "../../assets/images/team/2024/viktor_kalvoda.webp"
import GeromeQuantmeyerProfile2024 from "../../assets/images/team/2024/gerome_quantmeyer.webp"
import UliPrantzProfile2024 from "../../assets/images/team/2024/uli_prantz.webp"
import CedricRischeProfile2025 from "../../assets/images/team/2025/cedric_rische.jpg"
import ConstantinSachseProfile2025 from "../../assets/images/team/2025/constantin_sachse.jpg"
import DanielKissProfile2025 from "../../assets/images/team/2025/daniel_kiss.jpg"
import GeromeQuantmeyerProfile2025 from "../../assets/images/team/2025/gerome_quantmeyer.jpg"
import GritManssenProfile2025 from "../../assets/images/team/2025/grit_manssen.jpg"
import JeanneAueProfile2025 from "../../assets/images/team/2025/jeanne_aue.jpg"
import MathildaHeiseProfile2025 from "../../assets/images/team/2025/mathilda_heise.jpg"
import MaximilianPiperProfile2025 from "../../assets/images/team/2025/maximilian_piper.jpg"
import NikolasRiegerProfile2025 from "../../assets/images/team/2025/nikolas_rieger.jpg"
import TanjaLehmannProfile2025 from "../../assets/images/team/2025/tanja_lehmann.jpg"
import ViktorKalvodaProfile2025 from "../../assets/images/team/2025/viktor_kalvoda.jpg"
import AlyssaHilgendorf2026 from "../../assets/images/team/2026/alyssa_hilgendorf.jpg"
import HenriBecker2026 from "../../assets/images/team/2026/henri_becker.jpg"
import JolandaBolt2026 from "../../assets/images/team/2026/jolanda_bolt.jpg"
import KlaraPrigge2026 from "../../assets/images/team/2026/klara_prigge.jpg"
import {Avatar, Box, Card, Container, Grid, Link, Stack, Typography, useMediaQuery, useTheme} from "@mui/material";
import {LinkedIn} from "@mui/icons-material";
import {useEffect, useState} from "react";
const teamMembers24 = [
{
name: "Cedric Rische",
position: "Team Member",
linkedIn: "cedric-rische",
profilePicture: CedricRischeProfile2024
},
{
name: "Mathilda Heise",
position: "Team Member",
linkedIn: "mathilda-heise-9203a3258",
profilePicture: MathildaHeiseProfile2024
},
{
name: "Matti Schmidt",
position: "Professioneller Gitarrenspieler",
linkedIn: "matti-schmidt-ac",
profilePicture: MattiSchmidtProfile2024
},
{
name: "Nikolas Rieger",
position: "Team Member",
linkedIn: "nikolas-rieger",
profilePicture: NikolasRiegerProfile2024
},
{
name: "Tanja Lehmann",
position: "Team Member",
linkedIn: "tanja-lehmann-36713a265",
profilePicture: TanjaLehmannProfile2024
},
{
name: "Theo Klinke",
position: "Team Member",
linkedIn: "theo-klinke",
profilePicture: TheoKlinkeProfile2024
},
{
name: "Viktor Kalvoda",
position: "Team Member",
linkedIn: "viktor-kalvoda-3ab0b62a2",
profilePicture: ViktorKalvodaProfile2024
},
{
name: "Gerome Quantmeyer",
position: "Team Member",
linkedIn: "gerome-quantmeyer-44a90322b",
profilePicture: GeromeQuantmeyerProfile2024
},
{
name: "Uli Prantz",
position: "Team Member",
linkedIn: "uli-prantz-100234227",
profilePicture: UliPrantzProfile2024
},
]
const teamMembers25 = [
{
name: "Cedric Rische",
position: "Team Member",
linkedIn: "cedric-rische",
profilePicture: CedricRischeProfile2025
},
{
name: "Mathilda Heise",
position: "Team Member",
linkedIn: "mathilda-heise-9203a3258",
profilePicture: MathildaHeiseProfile2025
},
{
name: "Grit Manssen",
position: "Team Member",
linkedIn: "grit-manssen-0270b023a",
profilePicture: GritManssenProfile2025
},
{
name: "Nikolas Rieger",
position: "Team Member",
linkedIn: "nikolas-rieger",
profilePicture: NikolasRiegerProfile2025
},
{
name: "Tanja Lehmann",
position: "Team Member",
linkedIn: "tanja-lehmann-36713a265",
profilePicture: TanjaLehmannProfile2025
},
{
name: "Viktor Kalvoda",
position: "Team Member",
linkedIn: "viktor-kalvoda-3ab0b62a2",
profilePicture: ViktorKalvodaProfile2025
},
{
name: "Maximilian Piper",
position: "Team Member",
linkedIn: "maximilian-piper-101088229",
profilePicture: MaximilianPiperProfile2025
},
{
name: "Daniel Kiss",
position: "Team Member",
linkedIn: "kdaniel21",
profilePicture: DanielKissProfile2025
},
{
name: "Gerome Quantmeyer",
position: "Team Member",
linkedIn: "gerome-quantmeyer-44a90322b",
profilePicture: GeromeQuantmeyerProfile2025
},
{
name: "Jeanne Aue",
position: "Team Member",
linkedIn: "jeanne-aue",
profilePicture: JeanneAueProfile2025
},
{
name: "Constantin Sachse",
position: "Team Member",
linkedIn: "",
profilePicture: ConstantinSachseProfile2025
},
]
const teamMembers26 = [
{
name: "Cedric Rische",
position: "Team Member",
linkedIn: "cedric-rische",
profilePicture: CedricRischeProfile2025,
},
{
name: "Grit Manssen",
position: "Team Member",
linkedIn: "grit-manssen-0270b023a",
profilePicture: GritManssenProfile2025,
},
{
name: "Tanja Lehmann",
position: "Team Member",
linkedIn: "tanja-lehmann-36713a265",
profilePicture: TanjaLehmannProfile2025,
},
{
name: "Daniel Kiss",
position: "Team Member",
linkedIn: "kdaniel21",
profilePicture: DanielKissProfile2025,
},
{
name: "Jeanne Aue",
position: "Team Member",
linkedIn: "jeanne-aue",
profilePicture: JeanneAueProfile2025,
},
{
name: "Constantin Sachse",
position: "Team Member",
linkedIn: "",
profilePicture: ConstantinSachseProfile2025,
},
{
name: "Alyssa Hilgendorf",
position: "Team Member",
linkedIn: "alyssa-hilgendorf-835a45346",
profilePicture: AlyssaHilgendorf2026,
},
{
name: "Henri Becker",
position: "Team Member",
linkedIn: "henri-aldo-becker-06a265297",
profilePicture: HenriBecker2026,
},
{
name: "Jolanda Bolt",
position: "Team Member",
linkedIn: "jolanda-bolt-6480a5222",
profilePicture: JolandaBolt2026,
},
{
name: "Klara Prigge",
position: "Team Member",
linkedIn: "klara-luise-prigge-8b73a830a",
profilePicture: KlaraPrigge2026,
},
];
function stringToColor(string) {
let hash = 0;
let i;
/* eslint-disable no-bitwise */
for (i = 0; i < string.length; i += 1) {
hash = string.charCodeAt(i) + ((hash << 5) - hash);
}
let color = '#';
for (i = 0; i < 3; i += 1) {
const value = (hash >> (i * 8)) & 0xff;
color += `00${value.toString(16)}`.slice(-2);
}
/* eslint-enable no-bitwise */
return color;
}
function stringAvatar(name) {
return {
sx: {
fontSize: "2rem",
},
children: `${name.split(' ')[0][0]}${name.split(' ')[1][0]}`,
};
}
function Team() {
const theme = useTheme()
const matches = useMediaQuery(theme.breakpoints.up("sm"));
const [imageSize, setImageSize] = useState("9rem")
useEffect(() => {
setImageSize(matches ? "9rem" : "7rem")
}, [matches]);
return (
<Container sx={{paddingTop: 10, paddingBottom: 10}}>
<Typography variant={"h2"} component={"h1"} gutterBottom>Meet the team</Typography>
<Grid container spacing={3}>
{teamMembers26.sort((a, b) => {
const nameA = a.name.toUpperCase(); // ignore upper and lowercase
const nameB = b.name.toUpperCase(); // ignore upper and lowercase
if (nameA < nameB) {
return -1;
}
if (nameA > nameB) {
return 1;
}
// names must be equal
return 0;
}).map(teamMember => {
const avatarPrep = stringAvatar(teamMember.name);
return (
<Grid item xs={6} md={3} key={teamMember.name}>
<Card elevation={5}
sx={{padding: 2, mt: "calc(" + imageSize + " / 2)", overflow: "inherit"}}>
<Box sx={{position: "relative"}}>
<Box sx={{
position: "absolute",
transform: "translate(0%,calc(-" + imageSize + " / 2 - " + theme.spacing(2) + "))",
width: "100%",
height: "auto",
display: "flex",
justifyContent: "center",
}}
>
<Avatar src={teamMember.profilePicture?.src} sx={{
height: imageSize,
width: imageSize,
boxShadow: 7,
mb: 2,
...avatarPrep.sx
}}
alt={"Image of " + teamMember.name}
>
</Avatar>
</Box>
</Box>
<Typography pt={"calc( " + imageSize + " / 2)"}>{teamMember.name}</Typography>
{/*<Typography color={"text.disabled"}>{teamMember.position}</Typography>*/}
<Stack direction={"row"} spacing={1} pt={2}>
{/* {teamMember.mail ? <Link href={"mailto:" + teamMember.mail}
color={"inherit"}><Mail/></Link> : null} */}
{teamMember.linkedIn ?
<Link href={"https://linkedin.com/in/" + teamMember.linkedIn}
target={"_blank"}
color={"inherit"}>
<LinkedIn/>
</Link> :
<Link href={null}
style={{ color: "gray" }}>
<LinkedIn/>
</Link>
}
</Stack>
</Card>
</Grid>
)
})}
</Grid>
</Container>
)
}
export default Team