From 8a75abe6adca7923fa4fa5105d42760f8098d6f5 Mon Sep 17 00:00:00 2001 From: "Laury S." Date: Thu, 5 Sep 2024 11:01:45 +0200 Subject: [PATCH] feat: update con marketing before event (#563) --- pwa/app/(common)/components/ModalCon.tsx | 33 ++++++++++++++----- .../[locale]/con/2024/components/HomePage.tsx | 15 ++------- pwa/components/con/common/BuyButton.tsx | 19 ++++++++++- pwa/components/con/layout/Nav.tsx | 2 +- pwa/components/layout/Preheader.tsx | 17 ++++++++-- pwa/data/con/2024/extraConferences.ts | 11 +++++++ pwa/i18n/dictionaries/en.json | 19 ++++++----- pwa/i18n/dictionaries/fr.json | 1 + 8 files changed, 83 insertions(+), 34 deletions(-) diff --git a/pwa/app/(common)/components/ModalCon.tsx b/pwa/app/(common)/components/ModalCon.tsx index 16d785a45..7fb2fedb6 100644 --- a/pwa/app/(common)/components/ModalCon.tsx +++ b/pwa/app/(common)/components/ModalCon.tsx @@ -20,7 +20,7 @@ export default function ModalCon() { setOpen(false); document.removeEventListener("keydown", handleKeyDown); } - } + }; document.addEventListener("mousedown", handleClickOutside); document.addEventListener("keydown", handleKeyDown); @@ -104,16 +104,33 @@ export default function ModalCon() { The international conference on the API Platform Framework

- API Platform Conference 2024: meet the best PHP, JavaScript and - API experts + Get ready for game-changing announcements for the PHP community!

- Lear more about the event, register for the conference, and get - ready for two days of inspiration, ideas, and knowledge-sharing - with our incredible lineup of renowned specialists and advocates. + The API Platform Conference 2024 is happening soon, and it's close to selling out.
API + Platform 4, Caddy web server, Xdebug, AI... Enjoy two days of + inspiring talks with our friendly community and our amazing + speakers.

- diff --git a/pwa/app/(con)/[locale]/con/2024/components/HomePage.tsx b/pwa/app/(con)/[locale]/con/2024/components/HomePage.tsx index e2a736556..b49254a72 100644 --- a/pwa/app/(con)/[locale]/con/2024/components/HomePage.tsx +++ b/pwa/app/(con)/[locale]/con/2024/components/HomePage.tsx @@ -243,7 +243,7 @@ const HomePage = ({ speakers, partners, images }: HomePageProps) => {
{currentEdition === "2024" && ( - {t("buy_tickets")} + {t("last_places")} )}
@@ -322,18 +322,7 @@ const HomePage = ({ speakers, partners, images }: HomePageProps) => { } - - {t("2024.venue.tip_link")} - - ), - })} - /> +
diff --git a/pwa/components/con/common/BuyButton.tsx b/pwa/components/con/common/BuyButton.tsx index f74a286cf..b4eae6bf4 100644 --- a/pwa/components/con/common/BuyButton.tsx +++ b/pwa/components/con/common/BuyButton.tsx @@ -11,7 +11,24 @@ function BuyButton({ children, id, className, ...props }: BuyButtonProps) { useEventBriteModal(id); return ( - ); diff --git a/pwa/components/con/layout/Nav.tsx b/pwa/components/con/layout/Nav.tsx index 82e13486a..83331ff3f 100644 --- a/pwa/components/con/layout/Nav.tsx +++ b/pwa/components/con/layout/Nav.tsx @@ -110,7 +110,7 @@ export default function Nav({
{isTicketingOpen && currentEdition === edition ? ( diff --git a/pwa/components/layout/Preheader.tsx b/pwa/components/layout/Preheader.tsx index c118e1510..bf122da9f 100644 --- a/pwa/components/layout/Preheader.tsx +++ b/pwa/components/layout/Preheader.tsx @@ -69,8 +69,21 @@ export default function Preheader() { online - diff --git a/pwa/data/con/2024/extraConferences.ts b/pwa/data/con/2024/extraConferences.ts index 29d8b2af0..90d1476e1 100644 --- a/pwa/data/con/2024/extraConferences.ts +++ b/pwa/data/con/2024/extraConferences.ts @@ -70,6 +70,17 @@ const extra = [ track: "1", type: "upcoming", }, + { + title: { + fr: "Lightning talks", + en: "Lightning talks", + }, + date: "2024-09-19", + start: "17:20", + end: "18:00", + track: "2", + type: "upcoming", + }, { title: { en: "Lunch break", diff --git a/pwa/i18n/dictionaries/en.json b/pwa/i18n/dictionaries/en.json index d2c2653f1..cbfdb8696 100644 --- a/pwa/i18n/dictionaries/en.json +++ b/pwa/i18n/dictionaries/en.json @@ -94,20 +94,21 @@ "back_to_current_edition": "< Back to current edition", "become_speaker": "Become speaker", "become_sponsor": "Become sponsor", + "last_places": "Only a few tickets left!", "buy_tickets": "Buy tickets", "coming_soon": "Coming soon", "conferences": { "by_speaker": "by {{speaker}}", "see_speaker_details": "See speaker's details", - "tags": { - "security": "Security", - "performance": "Performance", - "archi": "Architecture", - "good-practices": "Good practices", - "society": "Society", - "feedback": "Feedback", - "ia": "AI" - } + "tags": { + "security": "Security", + "performance": "Performance", + "archi": "Architecture", + "good-practices": "Good practices", + "society": "Society", + "feedback": "Feedback", + "ia": "AI" + } }, "contact_us": "Contact us!", "days_count": "{{count}} day", diff --git a/pwa/i18n/dictionaries/fr.json b/pwa/i18n/dictionaries/fr.json index d32d2a34f..eb9fbf2e8 100644 --- a/pwa/i18n/dictionaries/fr.json +++ b/pwa/i18n/dictionaries/fr.json @@ -93,6 +93,7 @@ "become_speaker": "Devenir speaker", "become_sponsor": "Devenir sponsor", "buy_tickets": "S'inscrire", + "last_places": "Dernières places disponibles!", "coming_soon": "Prochainement", "conferences": { "by_speaker": "par {{speaker}}",