From 41455c2131b785f84375b541601415ca9610b819 Mon Sep 17 00:00:00 2001 From: Thomas Catinaud Taris Date: Tue, 30 Sep 2025 21:59:58 +0200 Subject: [PATCH] feat: add video donation --- frontend/src/app/[locale]/donations/donation.tsx | 16 +++++++++------- .../LargeTextImageDonation.tsx | 6 +----- .../components/molecules/TalkCard/TalkCard.tsx | 2 +- .../molecules/ThematicsCard/ThematicsCard.tsx | 2 +- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/frontend/src/app/[locale]/donations/donation.tsx b/frontend/src/app/[locale]/donations/donation.tsx index 01b5451f..30f57888 100644 --- a/frontend/src/app/[locale]/donations/donation.tsx +++ b/frontend/src/app/[locale]/donations/donation.tsx @@ -69,19 +69,21 @@ export default function DonationsPage({ data }: DonationProps) { iframe={
} - image={data.banner_video?.url} background="purple" className="my-lg" internalClassName='min-h-[850px]' /> - +
+ {data.banner_video?.url &&
} -
-
- -
- + +
+
+ +
+ +
= ({ titleLevel = 2, content, iframe, - image, citation, citationAuthor, citationAuthorImage, @@ -42,7 +39,6 @@ const LargeTextImageDonation: React.FC = ({ className={clsx( 'overflow-hidden grid grid-cols-1 grid-rows-[200px_1fr] md:grid-cols-2 md:grid-rows-1 h-full', `text-white bg-[url("/images/donation-background.jpg")]`, - // `text-white bg-[url("/images/bg-donation.jpg")]`, internalClassName, )} > diff --git a/frontend/src/components/molecules/TalkCard/TalkCard.tsx b/frontend/src/components/molecules/TalkCard/TalkCard.tsx index ec59f347..08a86409 100644 --- a/frontend/src/components/molecules/TalkCard/TalkCard.tsx +++ b/frontend/src/components/molecules/TalkCard/TalkCard.tsx @@ -41,7 +41,7 @@ const TalkCard: React.FC = ({ imagePosition === 'right' && 'sm:order-2', )}>
= ({