File tree Expand file tree Collapse file tree
app/[locale]/projects/[slug]
organisms/ProjectProcesses Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,10 +143,18 @@ export default function ProjectDetailPage({ project }: ProjectPageProps) {
143143 className = 'my-lg'
144144 />
145145
146- { project . demo_video && < BannerVideo
147- video = { project . demo_video_embed }
148- className = 'my-lg'
149- /> }
146+ { project . video ?. url ? (
147+ < BannerVideo
148+ url = { project . video . url }
149+ format = { project . video . orientation as 'paysage' | 'portrait' }
150+ className = 'my-lg'
151+ />
152+ ) : project . demo_video_embed ? (
153+ < BannerVideo
154+ video = { project . demo_video_embed }
155+ className = 'my-lg'
156+ />
157+ ) : null }
150158
151159 { presentationContent . length > 0 && < Banner
152160 content = { presentationContent }
@@ -189,12 +197,6 @@ export default function ProjectDetailPage({ project }: ProjectPageProps) {
189197 className = "my-lg"
190198 /> }
191199
192- { project . video && < BannerVideo
193- url = { project . video . url }
194- format = { project . video . orientation as 'paysage' | 'portrait' }
195- className = 'my-lg'
196- /> }
197-
198200 </ >
199201 ) ;
200202}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const BannerVideo: React.FC<BannerVideoProps> = ({
4141 const embedUrl = `https://www.youtube.com/embed/${ videoId } ` ;
4242
4343 return (
44- < div className = { clsx ( 'mx-auto shadow-lg' , className ) } { ...props } >
44+ < div className = { clsx ( 'mx-auto shadow-lg w-fit ' , className ) } { ...props } >
4545 < iframe
4646 className = { clsx (
4747 'max-w-full' ,
@@ -63,7 +63,7 @@ const BannerVideo: React.FC<BannerVideoProps> = ({
6363 }
6464
6565 return (
66- < div className = { clsx ( 'mx-auto shadow-lg' , className ) } { ...props } >
66+ < div className = { clsx ( 'mx-auto shadow-lg w-fit ' , className ) } { ...props } >
6767 < div
6868 className = { clsx (
6969 'max-w-full' ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const ProjectProcesses: React.FC<ProjectProcessesProps> = ({
3333 return (
3434 < div
3535 className = { clsx (
36- "prose prose--big my-xs max-w-4xl ml-0 " ,
36+ "prose prose--big my-xs max-w-4xl mx-auto " ,
3737 className ,
3838 ) }
3939 { ...props }
You can’t perform that action at this time.
0 commit comments