@@ -300,7 +300,7 @@ const CollaborativeDetailClient = () => {
300300 { href : '#' , label : CollaborativeDetailsData ?. collaborativeBySlug ?. title || '' } ,
301301 ] }
302302 />
303- < div className = " bg-onSurfaceDefault " >
303+ < div className = " bg-primaryBlue " >
304304 < div className = "container flex flex-row" >
305305 < div className = "w-full border-solid border-greyExtralight py-8 pr-8 lg:w-3/4 lg:border-r-2 lg:py-10 lg:pr-8" >
306306 < PrimaryDetails data = { CollaborativeDetailsData } isLoading = { isLoading } />
@@ -309,130 +309,7 @@ const CollaborativeDetailClient = () => {
309309 < Metadata data = { CollaborativeDetailsData } />
310310 </ div >
311311 </ div >
312- { /* Use Cases Section */ }
313- { useCases . length > 0 && (
314- < div className = "container py-8 lg:py-14" >
315- < div className = " flex flex-col gap-1 " >
316- < Text variant = "headingXl" > Use Cases</ Text >
317- < Text variant = "bodyLg" fontWeight = "regular" >
318- Use Cases associated with this Collaborative
319- </ Text >
320- </ div >
321- < div className = "grid grid-cols-1 gap-6 pt-10 md:grid-cols-2 lg:grid-cols-3 " >
322- { useCases . map ( ( useCase : TypeUseCase ) => (
323- < Card
324- key = { useCase . id }
325- title = { useCase . title || '' }
326- variation = { 'collapsed' }
327- iconColor = { 'success' }
328- metadataContent = { [
329- {
330- icon : Icons . calendar ,
331- label : 'Started' ,
332- value : formatDate ( useCase . startedOn ) ,
333- } ,
334- {
335- icon : Icons . activity ,
336- label : 'Status' ,
337- value : useCase . runningStatus ?. split ( '_' ) . join ( ' ' ) || 'N/A' ,
338- } ,
339- {
340- icon : Icons . globe ,
341- label : 'Geography' ,
342- value :
343- useCase . metadata ?. find (
344- ( meta : any ) =>
345- meta . metadataItem ?. label === 'Geography'
346- ) ?. value || '' ,
347- } ,
348- ] }
349- href = { `/usecases/${ useCase . slug } ` }
350- footerContent = { [
351- {
352- icon : useCase . sectors && useCase . sectors [ 0 ] ?. name
353- ? `/Sectors/${ useCase . sectors [ 0 ] . name } .svg`
354- : '/Sectors/default.svg' ,
355- label : 'Sectors' ,
356- } ,
357- {
358- icon : useCase . isIndividualUsecase
359- ? useCase ?. user ?. profilePicture
360- ? `${ process . env . NEXT_PUBLIC_BACKEND_URL } /${ useCase . user . profilePicture . url } `
361- : '/profile.png'
362- : useCase ?. organization ?. logo
363- ? `${ process . env . NEXT_PUBLIC_BACKEND_URL } /${ useCase . organization . logo . url } `
364- : '/org.png' ,
365- label : 'Published by' ,
366- } ,
367- ] }
368- description = { useCase . summary || '' }
369- />
370- ) ) }
371- </ div >
372- </ div >
373- ) }
374-
375- { /* Datasets Section */ }
376- < div className = "container py-8 lg:py-14" >
377- < div className = " flex flex-col gap-1 " >
378- < Text variant = "headingXl" > Datasets in this Collaborative</ Text >
379- < Text variant = "bodyLg" fontWeight = "regular" >
380- Explore datasets related to this collaborative{ ' ' }
381- </ Text >
382- </ div >
383- < div className = "grid grid-cols-1 gap-6 pt-10 md:grid-cols-2 lg:grid-cols-3 " >
384- { datasets . length > 0 &&
385- datasets . map ( ( dataset : TypeDataset ) => (
386- < Card
387- key = { dataset . id }
388- title = { dataset . title }
389- variation = { 'collapsed' }
390- iconColor = { 'warning' }
391- metadataContent = { [
392- {
393- icon : Icons . calendar ,
394- label : 'Date' ,
395- value : formatDate ( dataset . modified ) ,
396- } ,
397- {
398- icon : Icons . download ,
399- label : 'Download' ,
400- value : dataset . downloadCount . toString ( ) ,
401- } ,
402- {
403- icon : Icons . globe ,
404- label : 'Geography' ,
405- value :
406- dataset . metadata ?. find (
407- ( meta : any ) =>
408- meta . metadataItem ?. label === 'Geography'
409- ) ?. value || '' ,
410- } ,
411- ] }
412- href = { `/datasets/${ dataset . id } ` }
413- footerContent = { [
414- {
415- icon : `/Sectors/${ dataset . sectors [ 0 ] ?. name } .svg` ,
416- label : 'Sectors' ,
417- } ,
418- {
419- icon : dataset . isIndividualDataset
420- ? dataset ?. user ?. profilePicture
421- ? `${ process . env . NEXT_PUBLIC_BACKEND_URL } /${ dataset . user . profilePicture . url } `
422- : '/profile.png'
423- : dataset ?. organization ?. logo
424- ? `${ process . env . NEXT_PUBLIC_BACKEND_URL } /${ dataset . organization . logo . url } `
425- : '/org.png' ,
426- label : 'Published by' ,
427- } ,
428- ] }
429- description = { dataset . description || '' }
430- />
431- ) ) }
432- </ div >
433- </ div >
434- </ div >
435- { ( hasSupportingOrganizations ||
312+ { ( hasSupportingOrganizations ||
436313 hasPartnerOrganizations ||
437314 hasContributors ) && (
438315 < div className = " bg-primaryBlue" >
@@ -528,7 +405,132 @@ const CollaborativeDetailClient = () => {
528405 </ div >
529406 ) }
530407 </ div >
408+ ) }
409+ </ div >
410+ < div className = "container py-8 lg:py-14" color = "onBgDefault" >
411+ { /* Use Cases Section */ }
412+ { useCases . length > 0 && (
413+ < div className = "container py-8 lg:py-14" >
414+ < div className = " flex flex-col gap-1 " >
415+ < Text variant = "headingXl" > Use Cases</ Text >
416+ < Text variant = "bodyLg" fontWeight = "regular" >
417+ Use Cases associated with this Collaborative
418+ </ Text >
419+ </ div >
420+ < div className = "grid grid-cols-1 gap-6 pt-10 md:grid-cols-2 lg:grid-cols-3 " >
421+ { useCases . map ( ( useCase : TypeUseCase ) => (
422+ < Card
423+ key = { useCase . id }
424+ title = { useCase . title || '' }
425+ variation = { 'collapsed' }
426+ iconColor = { 'success' }
427+ metadataContent = { [
428+ {
429+ icon : Icons . calendar ,
430+ label : 'Started' ,
431+ value : formatDate ( useCase . startedOn ) ,
432+ } ,
433+ {
434+ icon : Icons . activity ,
435+ label : 'Status' ,
436+ value : useCase . runningStatus ?. split ( '_' ) . join ( ' ' ) || 'N/A' ,
437+ } ,
438+ {
439+ icon : Icons . globe ,
440+ label : 'Geography' ,
441+ value :
442+ useCase . metadata ?. find (
443+ ( meta : any ) =>
444+ meta . metadataItem ?. label === 'Geography'
445+ ) ?. value || '' ,
446+ } ,
447+ ] }
448+ href = { `/usecases/${ useCase . slug } ` }
449+ footerContent = { [
450+ {
451+ icon : useCase . sectors && useCase . sectors [ 0 ] ?. name
452+ ? `/Sectors/${ useCase . sectors [ 0 ] . name } .svg`
453+ : '/Sectors/default.svg' ,
454+ label : 'Sectors' ,
455+ } ,
456+ {
457+ icon : useCase . isIndividualUsecase
458+ ? useCase ?. user ?. profilePicture
459+ ? `${ process . env . NEXT_PUBLIC_BACKEND_URL } /${ useCase . user . profilePicture . url } `
460+ : '/profile.png'
461+ : useCase ?. organization ?. logo
462+ ? `${ process . env . NEXT_PUBLIC_BACKEND_URL } /${ useCase . organization . logo . url } `
463+ : '/org.png' ,
464+ label : 'Published by' ,
465+ } ,
466+ ] }
467+ description = { useCase . summary || '' }
468+ />
469+ ) ) }
470+ </ div >
471+ </ div >
531472 ) }
473+ { /* Datasets Section */ }
474+ < div className = "container py-8 lg:py-14" >
475+ < div className = " flex flex-col gap-1 " >
476+ < Text variant = "headingXl" > Datasets in this Collaborative</ Text >
477+ < Text variant = "bodyLg" fontWeight = "regular" >
478+ Explore datasets related to this collaborative{ ' ' }
479+ </ Text >
480+ </ div >
481+ < div className = "grid grid-cols-1 gap-6 pt-10 md:grid-cols-2 lg:grid-cols-3 " >
482+ { datasets . length > 0 &&
483+ datasets . map ( ( dataset : TypeDataset ) => (
484+ < Card
485+ key = { dataset . id }
486+ title = { dataset . title }
487+ variation = { 'collapsed' }
488+ iconColor = { 'warning' }
489+ metadataContent = { [
490+ {
491+ icon : Icons . calendar ,
492+ label : 'Date' ,
493+ value : formatDate ( dataset . modified ) ,
494+ } ,
495+ {
496+ icon : Icons . download ,
497+ label : 'Download' ,
498+ value : dataset . downloadCount . toString ( ) ,
499+ } ,
500+ {
501+ icon : Icons . globe ,
502+ label : 'Geography' ,
503+ value :
504+ dataset . metadata ?. find (
505+ ( meta : any ) =>
506+ meta . metadataItem ?. label === 'Geography'
507+ ) ?. value || '' ,
508+ } ,
509+ ] }
510+ href = { `/datasets/${ dataset . id } ` }
511+ footerContent = { [
512+ {
513+ icon : `/Sectors/${ dataset . sectors [ 0 ] ?. name } .svg` ,
514+ label : 'Sectors' ,
515+ } ,
516+ {
517+ icon : dataset . isIndividualDataset
518+ ? dataset ?. user ?. profilePicture
519+ ? `${ process . env . NEXT_PUBLIC_BACKEND_URL } /${ dataset . user . profilePicture . url } `
520+ : '/profile.png'
521+ : dataset ?. organization ?. logo
522+ ? `${ process . env . NEXT_PUBLIC_BACKEND_URL } /${ dataset . organization . logo . url } `
523+ : '/org.png' ,
524+ label : 'Published by' ,
525+ } ,
526+ ] }
527+ description = { dataset . description || '' }
528+ />
529+ ) ) }
530+ </ div >
531+ </ div >
532+ </ div >
533+
532534 </ >
533535 ) }
534536 </ div >
0 commit comments