File tree Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -69,19 +69,21 @@ export default function DonationsPage({ data }: DonationProps) {
69
69
iframe = { < div className = 'p-4 [&>iframe]:rounded-2xl' ref = { donationSectionRef } >
70
70
< a href = "https://soutenir.dataforgood.fr/native-/#iraiser_native" > </ a >
71
71
</ div > }
72
- image = { data . banner_video ?. url }
73
72
background = "purple"
74
73
className = "my-lg"
75
74
internalClassName = 'min-h-[850px]'
76
75
/>
77
76
78
- < EditoCard contentClassName = " md:max-w-[80%] md:mx-auto" className = "my-lg" >
77
+ < div className = "container-lg mx-auto flex flex-col lg:flex-row items-center gap-12" >
78
+ { data . banner_video ?. url && < div className = "shadow-lg bg-building w-full lg:max-w-60 rotate-[-2deg]" dangerouslySetInnerHTML = { { __html : data . banner_video ?. url ?? '' } } /> }
79
79
80
- < div className = "prose prose--big leading-tight text-[1.5rem] text-left font-tertiary" dangerouslySetInnerHTML = { { __html : data . introduction_text ?? '' } } />
81
- < div className = "flex justify-center mt-sm" >
82
- < DonationButton />
83
- </ div >
84
- </ EditoCard >
80
+ < EditoCard contentClassName = "flex-1 md:max-w-[80%] md:mx-auto" className = "my-lg" >
81
+ < div className = "prose prose--big leading-tight text-[1.5rem] text-left font-tertiary" dangerouslySetInnerHTML = { { __html : data . introduction_text ?? '' } } />
82
+ < div className = "flex justify-center mt-sm" >
83
+ < DonationButton />
84
+ </ div >
85
+ </ EditoCard >
86
+ </ div >
85
87
86
88
< div className = "bg-violet-light py-lg" >
87
89
< TalksBlock
Original file line number Diff line number Diff line change 1
1
import clsx from 'clsx' ;
2
- import Image from 'next/image' ;
3
- import { Button , Title , TitleProps } from '@/components' ;
2
+ import { Title , TitleProps } from '@/components' ;
4
3
5
4
export type LargeTextImageDonationProps = {
6
5
id ?: string ;
7
6
title ?: string ;
8
7
titleLevel ?: TitleProps [ 'level' ] ;
9
8
content ?: React . ReactNode ;
10
9
iframe ?: React . ReactNode ;
11
- image ?: string ;
12
10
citation ?: string ;
13
11
citationAuthor ?: string ;
14
12
citationAuthorImage ?: string ;
@@ -23,7 +21,6 @@ const LargeTextImageDonation: React.FC<LargeTextImageDonationProps> = ({
23
21
titleLevel = 2 ,
24
22
content,
25
23
iframe,
26
- image,
27
24
citation,
28
25
citationAuthor,
29
26
citationAuthorImage,
@@ -42,7 +39,6 @@ const LargeTextImageDonation: React.FC<LargeTextImageDonationProps> = ({
42
39
className = { clsx (
43
40
'overflow-hidden grid grid-cols-1 grid-rows-[200px_1fr] md:grid-cols-2 md:grid-rows-1 h-full' ,
44
41
`text-white bg-[url("/images/donation-background.jpg")]` ,
45
- // `text-white bg-[url("/images/bg-donation.jpg")]`,
46
42
internalClassName ,
47
43
) }
48
44
>
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const TalkCard: React.FC<TalkCardProps> = ({
41
41
imagePosition === 'right' && 'sm:order-2' ,
42
42
) } >
43
43
< div className = { clsx (
44
- 'relative inline- flex before:absolute before:content-[""] before:bg-black before:-z-1 before:w-full before:h-full before:top-3 before:left-3' ,
44
+ 'relative flex before:absolute before:content-[""] before:bg-black before:-z-1 before:w-full before:h-full before:top-3 before:left-3' ,
45
45
imagePosition === 'right' ? 'rotate-3' : '-rotate-3' ,
46
46
) } >
47
47
< Image
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ const ThematicsCard: React.FC<ThematicsCardProps> = ({
43
43
< Image
44
44
src = { image }
45
45
alt = ""
46
- className = "absolute m-auto left-0 right-0 top-0 pb-lg justify-center h-fit -z-30 object-cover"
46
+ className = "absolute m-auto left-0 right-0 top-0 bottom-0 lg:bottom-auto pb-lg justify-center h-full lg:h- fit -z-30 object-contain lg: object-cover"
47
47
loading = "lazy"
48
48
width = "301"
49
49
height = "401"
You can’t perform that action at this time.
0 commit comments