Skip to content

Commit

Permalink
Remove callForSpeaker + session date
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Feb 5, 2025
1 parent 34ce2be commit a4857c9
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 46 deletions.
35 changes: 18 additions & 17 deletions public/locales/fr/speakers.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"title": "Appel à speakers",
"subtitle": "Vous êtes expert du e-commerce ou passionné de Magento ?",
"description": "Partagez vos connaissances sur la scène de Meet Magento 2025 France, le 25 mars à Paris.",
"isRegistrationEnabled": false,
"registrationLabel": "Rejoignez les conférenciers de MM25FR",
"registrationFormUrl": "https://forms.gle/M6Y8V2xP7PGw5VD8A",
"speakers": [
Expand Down Expand Up @@ -80,22 +81,22 @@
"description": "Une plongée inspirante dans les coulisses d'un partenariat gagnant-gagnant, avec des enseignements applicables à d'autres collaborations stratégiques.",
"lang": "fr",
"track": "Business",
"room": "orion",
"start": "9h00",
"end": "10h30",
"tags": ["Ouverture", "Business", "Expertise"],
"room": null,
"start": null,
"end": null,
"tags": ["Business", "Expertise"],
"speakers": [1],
"eventUrl": "/TETS"
"eventUrl": null
},
{
"id": 2,
"title": "200 Domains on a Single Magento Instance with a $300 Hosting Bill",
"description": "A fascinating story about a unique customer business model with a Magento store where each product segment has its dedicated domain and technology behind it.",
"lang": "en",
"track": "Technical",
"room": "orion",
"start": "9h00",
"end": "10h30",
"room": null,
"start": null,
"end": null,
"tags": ["Technical", "Expertise"],
"speakers": [2],
"eventUrl": null
Expand All @@ -106,9 +107,9 @@
"description": "Et si vous personnalisiez Magento sans jamais toucher à son code ? Découvrez une approche innovante basée sur les addons, en exploitant Adobe App Builder et Runtime I/O pour transformer l’expérience Magento.",
"lang": "fr",
"track": "Technical",
"room": "orion",
"start": "9h00",
"end": "10h30",
"room": null,
"start": null,
"end": null,
"tags": ["Technical", "Expertise"],
"speakers": [3],
"eventUrl": null
Expand All @@ -119,9 +120,9 @@
"description": "Réinventer le frontend Magento en l'alignant sur les meilleures pratiques modernes : une opportunité d’optimiser la stack, d’attirer de nouveaux talents et de dynamiser la communauté grâce à une collaboration renforcée entre backend et frontend.",
"lang": "fr",
"track": "Technical",
"room": "orion",
"start": "9h00",
"end": "10h30",
"room": null,
"start": null,
"end": null,
"tags": ["Technical", "Expertise"],
"speakers": [4],
"eventUrl": null
Expand All @@ -132,9 +133,9 @@
"description": "Maintenir un projet open source, c’est bien plus que coder : découvrez les défis invisibles qui pèsent sur les créateurs et comment trouver un équilibre durable.",
"lang": "fr",
"track": "Technical",
"room": "orion",
"start": "9h00",
"end": "10h30",
"room": null,
"start": null,
"end": null,
"tags": ["Technical", "Expertise"],
"speakers": [5],
"eventUrl": null
Expand Down
32 changes: 20 additions & 12 deletions src/components/Speakers/Session/Session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,26 @@ const Session = ({
{session.title}
</Typography>
<div className="flex items-center font-medium text-black">
<Image
src={`/images/speakers/rooms/${session.room}.svg`}
alt={t(`speakers:data.rooms.${session.room}`)}
width={18}
height={20}
className="object-fit mr-1"
/>
<span>{t(`speakers:data.rooms.${session.room}`)}</span>
<span className="mx-2 text-primary">|</span>
<span>{session.start}</span>
<span className="mx-1 text-primary">&bull;</span>
<span>{session.end}</span>
{!!session.room && (
<>
<Image
src={`/images/speakers/rooms/${session.room}.svg`}
alt={t(`speakers:data.rooms.${session.room}`)}
width={18}
height={20}
className="object-fit mr-1"
/>
<span>{t(`speakers:data.rooms.${session.room}`)}</span>
</>
)}
{!!session.start && session.end && (
<>
<span className="mx-2 text-primary">|</span>
<span>{session.start}</span>
<span className="mx-1 text-primary">&bull;</span>
<span>{session.end}</span>
</>
)}
{onPopInClick && (
<BsFillInfoCircleFill
className="text-pink mx-1 hover:cursor-pointer"
Expand Down
6 changes: 3 additions & 3 deletions src/components/Speakers/Session/SessionProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export type SessionProps = {
description: string;
lang: string;
track: string;
room: string;
start: string;
end: string;
room?: string;
start?: string;
end?: string;
tags: string[];
speakers: number[];
eventUrl?: string;
Expand Down
27 changes: 15 additions & 12 deletions src/components/Speakers/Speakers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,21 @@ const Speakers = ({ data }: { data: SpeakersProps }) => {
</Typography>
</div>
</div>
<div className="bg-[url(/images/pattern_speakers.svg)] bg-cover flex items-center justify-center w-full h-64 p-5 md:h-auto md:w-1/2">
<ButtonLink
variant="secondary"
href={data.registrationFormUrl}
target="_blank"
rel="noopener"
iconPosition="right"
icon={<IoIosArrowForward />}
>
{data.registrationLabel}
</ButtonLink>
</div>
{data.isRegistrationEnabled && (
<div
className="bg-[url(/images/pattern_speakers.svg)] bg-cover flex items-center justify-center w-full h-64 p-5 md:h-auto md:w-1/2">
<ButtonLink
variant="secondary"
href={data.registrationFormUrl}
target="_blank"
rel="noopener"
iconPosition="right"
icon={<IoIosArrowForward/>}
>
{data.registrationLabel}
</ButtonLink>
</div>
)}
</div>
</div>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/components/Speakers/SpeakersProps.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {ReactNode} from "react";
import {PersonProps} from "@/components/Person/PersonProps";
import { ReactNode } from "react";
import { PersonProps } from "@/components/Person/PersonProps";

export type SpeakersProps = {
title: ReactNode,
subtitle: ReactNode,
description: ReactNode,
isRegistrationEnabled: boolean,
registrationLabel: ReactNode,
registrationFormUrl: string,
speakers: PersonProps[]
Expand Down

0 comments on commit a4857c9

Please sign in to comment.