-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,226 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
data/sessions/code_case___les_methodes_de_la_crim_adaptees_au_code_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
data/sessions/redecouvrir_la_cooperation___atelier_de_mob_programming.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...essions/survie_dans_les_tenebres_du_rendu_frontend__une_exploration_terrifiante______.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
key: morgan_blanloeil | ||
name: Morgan Blanloeil | ||
feature: false | ||
company: WeScale | ||
companyLogo: /images/partners/wescale.png | ||
photoUrl: https://lh3.googleusercontent.com/a/AEdFTp6KwXl6tyzkS5jZS9_sB9sXYPgX1ZPX_5YWmbxd=s96-c | ||
socials: | ||
twitter: morganBlan | ||
bio: |+ | ||
Cloud Native Developer chez WeScale | ||
Développeur Backend avec une forte appétence pour les sujets d'automatisation et de conteneurisation ! | ||
Je fais également partie de ceux qui pensent que le DevOps est bien une philosophie et non un métier ! | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
import { | ||
Brush, | ||
Cloud, | ||
Code, Computer, DeveloperBoard, | ||
Language, | ||
Lightbulb, | ||
PhoneAndroid, | ||
Security, | ||
SmartToy, | ||
} from "@mui/icons-material"; | ||
import { Avatar, Chip, Tooltip } from "@mui/material"; | ||
import { graphql, useStaticQuery } from "gatsby"; | ||
import React from "react"; | ||
import { | ||
Rooms, | ||
Session, | ||
} from "../../../json_schemas/interfaces/schema_sessions"; | ||
import { Slot } from "../../../json_schemas/interfaces/schema_slots"; | ||
import { Speaker } from "../../../json_schemas/interfaces/schema_speakers"; | ||
import { MyLink } from "../../helpers/links"; | ||
import "./schedule.scss"; | ||
|
||
export type PartialSession = Omit<Session, "abstract"> & { slot: Slot }; | ||
export type PartialSpeaker = Pick<Speaker, "key" | "name" | "photoUrl">; | ||
|
||
export const rooms: Rooms[] = [ | ||
"Jules Verne", | ||
"Titan", | ||
"Belem", | ||
"Tour de Bretagne", | ||
"Les Machines", | ||
"Hangar", | ||
"L'Atelier", | ||
]; | ||
|
||
const tagLabels = { | ||
iot_hardware: { | ||
label: "IoT & Hardware", | ||
icon: <DeveloperBoard />, | ||
}, | ||
mobile: { | ||
label: "Mobile", | ||
icon: <PhoneAndroid />, | ||
}, | ||
web: { | ||
label: "Web", | ||
icon: <Language />, | ||
}, | ||
discovery: { | ||
label: "Discovery", | ||
icon: <Lightbulb />, | ||
}, | ||
cloud_devops: { | ||
label: "Cloud & DevOps", | ||
icon: <Cloud />, | ||
}, | ||
languages: { | ||
label: "Languages", | ||
icon: <Code />, | ||
}, | ||
bigdata_ai: { | ||
label: "BigData & AI", | ||
icon: <SmartToy />, | ||
}, | ||
security: { | ||
label: "SECURITY", | ||
icon: <Security />, | ||
}, | ||
ux_ui: { | ||
label: "UX / UI", | ||
icon: <Brush />, | ||
}, | ||
}; | ||
export const Tags: React.FC<{ | ||
tags: string[]; | ||
color?: "primary" | "secondary"; | ||
}> = ({ tags, color = "primary" }) => { | ||
return ( | ||
<div className="tags"> | ||
{tags.map((tag) => ( | ||
<Chip | ||
icon={tagLabels[tag].icon} | ||
key={tag} | ||
label={tagLabels[tag].label} | ||
variant="outlined" | ||
size="small" | ||
color={color} | ||
sx={{ fontSize: "10px" }} | ||
/> | ||
))} | ||
</div> | ||
); | ||
}; | ||
export const SessionComplexity: React.FC<{ | ||
complexity: "Beginner" | "Intermediate" | "Advanced"; | ||
}> = ({ complexity }) => { | ||
return ( | ||
<Chip | ||
label={complexity} | ||
variant="outlined" | ||
size="small" | ||
color="secondary" | ||
sx={{ fontSize: "10px" }} | ||
/> | ||
); | ||
}; | ||
|
||
export const Speakers: React.FC<{ speakers: string[] }> = ({ speakers }) => { | ||
const { allSpeakersYaml } = useStaticQuery(graphql` | ||
query { | ||
allSpeakersYaml { | ||
edges { | ||
node { | ||
key | ||
name | ||
photoUrl | ||
} | ||
} | ||
} | ||
} | ||
`); | ||
|
||
const speakersFull: PartialSpeaker[] = speakers.map( | ||
(key) => { | ||
const speaker = allSpeakersYaml.edges.find((edge) => edge.node.key === key); | ||
if (!speaker) { | ||
throw new Error(key + " not found") | ||
} | ||
return speaker.node; | ||
} | ||
); | ||
|
||
return ( | ||
<div className="speakers"> | ||
{speakers.length === 1 ? ( | ||
<MyLink to={"/speakers/" + speakersFull[0].key}> | ||
<div className="speaker"> | ||
<AvatarSpeaker speaker={speakersFull[0]} /> | ||
{speakersFull[0].name} | ||
</div> | ||
</MyLink> | ||
) : ( | ||
<> | ||
{speakersFull.map((speaker) => ( | ||
<MyLink to={"/speakers/" + speaker.key} key={speaker.key}> | ||
<div className="speaker"> | ||
<AvatarSpeaker speaker={speaker} /> | ||
</div> | ||
</MyLink> | ||
))} | ||
</> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export const AvatarSpeaker: React.FC<{ | ||
speaker: PartialSpeaker; | ||
size?: "small" | "medium" | "large"; | ||
}> = ({ speaker, size = "small" }) => { | ||
const sizePx = size == "large" ? "150px" : size == "medium" ? "50px" : "24px"; | ||
return ( | ||
<MyLink to={"/speakers/" + speaker.key}> | ||
<Tooltip title={speaker.name}> | ||
<Avatar | ||
alt={speaker.name} | ||
src={speaker.photoUrl} | ||
sx={{ width: sizePx, height: sizePx, margin: "4px 4px" }} | ||
/> | ||
</Tooltip> | ||
</MyLink> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { graphql, useStaticQuery } from "gatsby"; | ||
import React from "react"; | ||
import slots from "../../../data/slots.json"; | ||
import { Slot } from "../../../json_schemas/interfaces/schema_slots"; | ||
import { PartialSession } from "./common"; | ||
import { LargeSchedule } from "./large"; | ||
import { MobileSchedule } from "./mobile"; | ||
import "./schedule.scss"; | ||
|
||
const typedSlots = slots.slots as Slot[]; | ||
|
||
export const Schedule: React.FC<{ day: 1 | 2 }> = ({ day }) => { | ||
const { allSessionsYaml } = useStaticQuery(graphql` | ||
query { | ||
allSessionsYaml { | ||
edges { | ||
node { | ||
key | ||
slot | ||
speakers | ||
tags | ||
talkType | ||
title | ||
room | ||
language | ||
complexity | ||
} | ||
} | ||
} | ||
} | ||
`); | ||
|
||
const sessions: PartialSession[] = allSessionsYaml.edges | ||
.map((x) => x.node) | ||
.filter((s) => s.slot.startsWith("day-" + day)) | ||
.map((s) => ({ | ||
...s, | ||
slot: typedSlots.find((slot) => s.slot === slot.key), | ||
})); | ||
|
||
const allHoursSlots: Slot[] = typedSlots // | ||
.filter((s) => s.key.startsWith("day-" + day)) // | ||
.filter((s) => s.type !== "codelab"); | ||
const fixedSlots: Slot[] = allHoursSlots.filter((s) => | ||
["opening", "lunch", "break", "keynote", "party"].includes(s.type) | ||
); | ||
|
||
return ( | ||
<> | ||
<MobileSchedule | ||
sessions={sessions} | ||
allHoursSlots={allHoursSlots} | ||
fixedSlots={fixedSlots} | ||
/> | ||
<LargeSchedule | ||
sessions={sessions} | ||
allHoursSlots={allHoursSlots} | ||
fixedSlots={fixedSlots} | ||
/> | ||
</> | ||
); | ||
}; |
Oops, something went wrong.