Skip to content

Commit

Permalink
fix: 2025 texts
Browse files Browse the repository at this point in the history
  • Loading branch information
ginifizz committed Oct 7, 2024
1 parent fb6f042 commit bcd5c21
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 25 deletions.
4 changes: 2 additions & 2 deletions pwa/app/(con)/[locale]/con/2024/components/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ type HomePageProps = {
images: string[];
};

const HomePage = ({ speakers, partners, images }: HomePageProps) => {
const { t, Translate, locale } = useContext(LanguageContext);
const HomePage = ({ speakers, partners }: HomePageProps) => {
const { t, Translate } = useContext(LanguageContext);
const { isVisible } = useContext(SectionsContext);
return (
<>
Expand Down
51 changes: 38 additions & 13 deletions pwa/app/(con)/[locale]/con/2025/components/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ const HomePage = ({ speakers, partners, images }: HomePageProps) => {
<Logo />
</div>
<div className="flex-1 flex flex-col items-center md:items-start">
<span className="flex-1 text-lg md:text-xl font-extrabold pb-6 lg:text-3xl md:text-left">
{t("2024.baseline")}
</span>
<p className="flex-1 text-lg md:text-xl font-extrabold pb-6 lg:text-3xl md:text-left">
{t("2025.baseline")}
</p>
<p className="flex-1 text-sm md:text-md font-extrabold pb-6 lg:text-lg md:text-left">
{t("2025.subbaseline")}
</p>
<div className="flex gap-2">
<Button className="pink" to={`/${locale}/con/2024/review`}>
{t("footer.previous_edition.title")}
{t("2025.previous_edition")}
</Button>
</div>
</div>
Expand All @@ -64,12 +67,12 @@ const HomePage = ({ speakers, partners, images }: HomePageProps) => {
</SectionTitle>
<SectionSubTitle>
<Translate
translationKey="last_edition.subtitle"
translationKey="2025.see_review.subtitle"
translationParams={{
edition: "2024",
link: (
<a href={`/${locale}/con/2024/review`} className="link">
{t("last_edition.subtitle_link")}
{t("2025.see_review.link")}
</a>
),
}}
Expand Down Expand Up @@ -106,13 +109,29 @@ const HomePage = ({ speakers, partners, images }: HomePageProps) => {
translationParams={{ edition: "2024" }}
/>
</SectionTitle>
<SectionSubTitle>{t("missing_conferences.subtitle")}</SectionSubTitle>
<SectionSubTitle>
<Translate
translationKey="2025.missing_conferences.subtitle"
translationParams={{
link: (
<a
className="link"
href="https://www.youtube.com/@coopTilleuls"
target="_blank"
rel="noopener noreferrer"
>
{t("2025.missing_conferences.link")}
</a>
),
}}
/>
</SectionSubTitle>
<Button
className="mx-auto mb-10 opacity-70 pointer-events-none"
className="mx-auto mb-10"
external
to="https://www.youtube.com/playlist?list=PL3hoUDjLa7eSo7-CAyiirYfhJe4h_Wxs4"
to="https://www.youtube.com/@coopTilleuls"
>
{t("coming_soon")}
{t("2025.missing_conferences.subscribe")}
</Button>
</div>
</Section>
Expand All @@ -122,7 +141,7 @@ const HomePage = ({ speakers, partners, images }: HomePageProps) => {
>
<div className="container text-center">
<SectionTitle dark h1>
<Translate translationKey="speakers.title" />
<Translate translationKey="2025.our_speakers.title" />
</SectionTitle>
<SectionSubTitle dark>
<Translate
Expand All @@ -131,7 +150,7 @@ const HomePage = ({ speakers, partners, images }: HomePageProps) => {
edition: "2025",
link: (
<a
href="mailto:[email protected]"
href="https://forms.gle/kNpkFsEZshYnfJST6"
className="link"
target="_blank"
rel="noreferrer nooepener"
Expand All @@ -144,10 +163,16 @@ const HomePage = ({ speakers, partners, images }: HomePageProps) => {
</SectionSubTitle>
<SpeakerList speakers={speakers} max={6} />
{speakers.length > 6 ? (
<Button className="mx-auto my-7" to="/con/2024/speakers">
<Button
className="mx-auto my-7"
to={`/${locale}/con/2025/speakers`}
>
{t("speakers.see_all")}
</Button>
) : null}
<Button className="mx-auto my-7" to={`/${locale}/con/2024/speakers`}>
{t("2025.our_speakers.see_2024")}
</Button>
</div>
</Section>
<Venue subtitle={t("2025.venue.subtitle")} />
Expand Down
2 changes: 1 addition & 1 deletion pwa/components/con/home/LookingSponsorCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function LookingSponsorCard() {
to="mailto:[email protected]"
external
>
{t("become_sponsor")}
{t("sponsorship.become_sponsor", { year: "2025" })}
</Button>
</div>
</div>
Expand Down
23 changes: 18 additions & 5 deletions pwa/i18n/dictionaries/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,25 @@
}
},
"2025": {
"baseline": "The flagship conference dedicated to API Platform and its ecosystem is coming back in 2025.",
"baseline": "Join us on September 18 and 19, 2025, in Lille and online, to celebrate the 10th anniversary of the API Platform framework.",
"subbaseline": "Ticket sales opening: January 6, 2025.",
"previous_edition": "See the 2024 edition",
"date": "September 18-19, 2025 - Lille & online",
"missing_conferences": {
"subtitle": "Subscribe to {{link}} to discover replay videos this winter!",
"link": "our Youtube channel",
"subscribe": "Subscribe"
},
"see_review": {
"subtitle": "Discover a glimpse of our previous edition, and find all the highlights of the event in {{link}}.",
"link": "our review"
},
"our_speakers": {
"speaker": { "coming_soon": "coming soon" },
"subtitle": "Our selected speakers will be revealed in {{edition}}. Want to be part of them? {{link}}",
"subtitle_link": "Contact us!",
"title": "Our <strong>speakers</strong>"
"subtitle": "The call for papers will open in January 2025. {{link}} about the opening!",
"subtitle_link": "Stay updated",
"title": "Become a <strong>speaker</strong>",
"see_2024": "See 2024 speakers"
},
"venue": {
"subtitle": "The on-site edition will take place in Lille, meeting point of European cities and touristic capital of the Flemish region. If you can't come to Lille, you can watch the event online.",
Expand Down Expand Up @@ -195,7 +207,7 @@
"minuts_count": "{{count}} min",
"missing_conferences": {
"subtitle": "Watch the conference recordings on Youtube!",
"title": "<strong>Not registered in {{edition}}?</strong>",
"title": "<strong>Didn't attend the {{edition}} edition?</strong>",
"watch_the_conferences": "Watch the conferences"
},
"nav": {
Expand Down Expand Up @@ -257,6 +269,7 @@
"point_4": "Hire multi-skilled developers",
"why_you_should_partner": "Why you should partner?"
},
"become_sponsor": "Become sponsor in {{year}}",
"they_trust_us": "They trusted us in {{year}}",
"title": "<strong>Sponsorship</strong>"
},
Expand Down
21 changes: 17 additions & 4 deletions pwa/i18n/dictionaries/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,25 @@
}
},
"2025": {
"baseline": "L'événement phare dédié à API Platform et son écosystème revient en 2025 !",
"baseline": "Rejoignez-nous les 18 et 19 septembre 2025, à Lille et en ligne, pour célébrer les 10 ans du framework API Platform.",
"subbaseline": "Ouverture de la billetterie : 6 janvier 2025.",
"date": "18 et 19 septembre 2025 - Lille & en ligne",
"previous_edition": "Voir l'édition 2024",
"see_review": {
"subtitle": "Découvrez un aperçu de notre précédente édition en images, et retrouvez tous les moments forts de cet événement sur {{link}}.",
"link": "notre récap"
},
"our_speakers": {
"speaker": { "coming_soon": "Prochainement" },
"subtitle": "Nos speakers sélectionnés seront annoncés très prochainement. Vous souhaitez proposer un sujet ? {{link}}",
"subtitle_link": "Contactez-nous !",
"title": "Nos <strong>speakers</strong>"
"subtitle": "Le call for papers ouvrira en janvier 2025. {{link}} sur l’ouverture des candidatures !",
"subtitle_link": "Restez informés",
"title": "Devenez <strong>speaker</strong>",
"see_2024": "Voir les speakers de 2024"
},
"missing_conferences": {
"subtitle": "Abonnez-vous à {{link}} pour découvrir les publications du replay cet hiver !",
"link": "notre chaîne Youtube",
"subscribe": "S'abonner"
},
"venue": {
"subtitle": "L'API Platform Conference se déroulera à Lille, capitale des Flandres et carrefour des plus grandes villes européennes. Si vous ne pouvez pas venir sur place, vous pourrez acheter un billet pour suivre les conférences en ligne.",
Expand Down Expand Up @@ -245,6 +257,7 @@
"point_4": "Recrutez un large vivier de devs expérimentés",
"why_you_should_partner": "Pourquoi devenir partenaire ?"
},
"become_sponsor": "Devenir sponsor en {{year}}",
"they_trust_us": "Ils nous ont fait confiance en {{year}}",
"title": "<strong>Sponsoring</strong>"
},
Expand Down

0 comments on commit bcd5c21

Please sign in to comment.