Skip to content

Commit

Permalink
feat: add 2024 review
Browse files Browse the repository at this point in the history
  • Loading branch information
ginifizz committed Oct 7, 2024
1 parent e3459df commit 426710f
Show file tree
Hide file tree
Showing 59 changed files with 1,949 additions and 46 deletions.
6 changes: 3 additions & 3 deletions pwa/app/(common)/events/components/EventsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ export default function EventsPage({ events }: EventsPageProps) {
city: "Lille",
},
startDate: {
date: "2024-09-19",
date: "2025-09-18",
},
endDate: {
date: "2024-09-20",
date: "2025-09-19",
},
picture: `/images/con/og-2021.png`,
title: "API Platform Conference 2024",
title: "API Platform Conference 2025",
slug: "api-con",
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function ReviewList() {
<ReviewItem
edition="2023"
imageId="days"
big
size="lg"
title={
<>
<strong>2</strong>
Expand Down Expand Up @@ -53,7 +53,7 @@ export default function ReviewList() {
<ReviewItem
edition="2023"
imageId="speakers"
big
size="lg"
title={
<>
<strong>25</strong>
Expand Down Expand Up @@ -94,7 +94,7 @@ export default function ReviewList() {
<ReviewItem
edition="2023"
imageId="sponsors"
big
size="lg"
title={
<>
<strong>14</strong>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function ReviewList() {
<ReviewItem
edition="2023"
imageId="days"
big
size="lg"
title={
<>
<strong>2</strong>
Expand Down Expand Up @@ -55,7 +55,7 @@ export default function ReviewList() {
<ReviewItem
edition="2023"
imageId="speakers"
big
size="lg"
title={
<>
<strong>25</strong>
Expand Down Expand Up @@ -102,7 +102,7 @@ export default function ReviewList() {
<ReviewItem
edition="2023"
imageId="sponsors"
big
size="lg"
title={
<>
<strong>14</strong>
Expand Down
29 changes: 29 additions & 0 deletions pwa/app/(con)/[locale]/con/2024/components/AfterMovie.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"use client";
import SectionTitle from "components/con/common/typography/SectionTitle";
import Section from "components/con/home/Section";
import { useContext } from "react";
import { LanguageContext } from "contexts/con/LanguageContext";
import SectionSubTitle from "components/con/common/typography/SectionSubtitle";

export default function AfterMovie() {
const { t, Translate } = useContext(LanguageContext);
return (
<Section section="aftermovie">
<div className="container text-center flex flex-col items-center">
<SectionTitle dark>
<Translate translationKey="2024.aftermovie.title" />
</SectionTitle>
<SectionSubTitle dark>{t("2024.aftermovie.subtitle")}</SectionSubTitle>
<iframe
className="aspect-video w-full max-w-2xl border-white border-8 shadow-2xl"
src="https://www.youtube.com/embed/XXj8NCvLuis?si=hWGWKS81UriUkJ3R&amp;controls=0"
title="YouTube video player"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
></iframe>
</div>
</Section>
);
}
7 changes: 5 additions & 2 deletions pwa/app/(con)/[locale]/con/2024/components/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ const HomePage = ({ speakers, partners, images }: HomePageProps) => {
{t("last_places")}
</BuyButton>
)}
<Button className="pink" to={`/${locale}/con`}>
{t("back_to_current_edition")}
</Button>
</div>
</div>
<Wave className="absolute opacity-30 z-0 bottom-0 h-[60vh] right-[6%] top-[38%] -translate-y-1/2 -rotate-[4deg]" />
Expand Down Expand Up @@ -284,7 +287,7 @@ const HomePage = ({ speakers, partners, images }: HomePageProps) => {
) : null}
</div>
</Section>
{
{currentEdition === "2024" && (
<Section
className="relative py-10 before:bg-grey before:h-[calc(100%-500px)] before:absolute before:left-0 before:bottom-0 before:w-full after:bg-wave2 after:w-[1300px] after:h-[800px] after:absolute after:top-24 after:left-1/2 after:bg-top after:bg-contain after:opacity-50 after:bg-no-repeat after:-translate-x-1/2 after:rotate-6"
section="pricing"
Expand Down Expand Up @@ -321,7 +324,7 @@ const HomePage = ({ speakers, partners, images }: HomePageProps) => {
</div>
</div>
</Section>
}
)}
<Venue subtitle={t("2024.venue.subtitle")} />
<Section section="sponsorship" className="py-8">
<div className="container text-center">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"use client";
import ReviewCoverBase from "components/con/review/ReviewCover";
import { useContext } from "react";
import { LanguageContext } from "contexts/con/LanguageContext";

export default function ReviewCover() {
const { t, Translate } = useContext(LanguageContext);
return (
<ReviewCoverBase
edition="2024"
title={t("2024.review.title")}
baseline={
<>
<p>{t("2024.review.subtitle_1")}</p>
<Translate
className="text-sm mt-4"
translationKey="2024.review.subtitle_2"
translationParams={{
link: (
<a
className="font-bold underline"
href="https://forms.gle/kNpkFsEZshYnfJST6"
target="_blank"
rel="noreferrer noopener"
>
{t("2024.review.link")}
</a>
),
}}
/>
</>
}
/>
);
}
Loading

0 comments on commit 426710f

Please sign in to comment.