Skip to content

Commit 0d22f36

Browse files
authored
Merge pull request #6 from pythonpizza/orgs-improvements
Refactor orgs section a bit, add Jake pic
2 parents 45f4cdf + ef38040 commit 0d22f36

4 files changed

Lines changed: 25 additions & 10 deletions

File tree

public/organizers/jake.png

340 KB
Loading

src/data/organizers.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
export type Organizer = {
2+
name: string;
3+
image: string;
4+
index: number;
5+
};
6+
7+
export const ORGANIZERS: Organizer[] = [
8+
{
9+
name: "Anežka Müller",
10+
image: "speakers/pizza-square.png",
11+
index: 1
12+
},
13+
{
14+
name: "Moisés Guimarães de Medeiros",
15+
image: "organizers/moises.jpg",
16+
index: 2,
17+
},
18+
{
19+
name: "Jake Baláš",
20+
image: "organizers/jake.png",
21+
index: 3
22+
},
23+
];

src/sections/organizers.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,8 @@ import React from "react";
22
import { Container, Grid, Heading, Paragraph } from "theme-ui";
33

44
import Organizer from "./organizer";
5+
import { ORGANIZERS } from "~/data/organizers";
56

6-
const orgData = [
7-
{ name: "Anežka Müller", image: "speakers/pizza-square.png", index: 1 },
8-
{
9-
name: "Moisés Guimarães de Medeiros",
10-
image: "speakers/moises.jpg",
11-
index: 2,
12-
},
13-
{ name: "Jake Baláš", image: "speakers/pizza-square.png", index: 3 },
14-
];
157

168
export const OrganizerSection = () => {
179
return (
@@ -34,7 +26,7 @@ export const OrganizerSection = () => {
3426
}}
3527
>
3628
<Grid columns={[2, 2, 2, 3]} gap="primary">
37-
{orgData.map((org) => (
29+
{ORGANIZERS.map((org) => (
3830
<Organizer key={org.index} name={org.name} image={org.image} />
3931
))}
4032
</Grid>

0 commit comments

Comments
 (0)