generated from pythonpizza/template-website-v1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSpeakers.tsx
executable file
·48 lines (45 loc) · 1.38 KB
/
Speakers.tsx
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
import * as React from "react";
import Container, { Sizes } from "@/Components/Container";
import Grid from "@/Components/Grid";
import SpeakerCard from "@/Components/SpeakerCard";
import { SPEAKERS } from "@/dataset";
import Speaker from "@/Types/Speaker";
export default class Speakers extends React.Component {
shuffleArray(arr: Speaker[]) {
return [...arr].sort(() => 0.5 - Math.random());
}
render() {
return (
<section id="speakers" className="speakers">
<Container size={Sizes.large}>
<Container size={Sizes.small}>
<h1>Keynotes</h1>
</Container>
{
<Grid>
{this.shuffleArray(SPEAKERS).map((speaker, i) => (
<SpeakerCard key={i} speaker={speaker} />
))}
</Grid>
}
<Container size={Sizes.small}>
<h1>Speakers</h1>
<p>
The{" "}
<a
href="https://forms.gle/Hfdba6uCzeUrbmXM9"
target="_blank"
rel="noopener noreferrer"
>
CFP
</a>{" "}
is open!!! You have until 28th February to apply! Each talk will
be 12 minutes long and we would love to have many first time
speakers!
</p>
</Container>
</Container>
</section>
);
}
}