-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpeakers.tsx
32 lines (29 loc) · 1.02 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
import * as React from 'react';
import Container, { Sizes } from '@/Components/Container';
import Grid from '@/Components/Grid';
import SpeakerCard from '@/Components/SpeakerCard';
import { KEYSPEAKERS } 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(KEYSPEAKERS).map((speaker, i) => (
<SpeakerCard key={i} speaker={speaker} />
))}
</Grid>
}
</Container>
</section>
);
}
}