@@ -68,34 +68,38 @@ export default async function HypercertDetails({
6868 < Creator hypercert = { hypercert } />
6969 < ReadMore text = { hypercert ?. metadata ?. description } length = { 280 } />
7070 < ExternalUrl url = { hypercert ?. metadata ?. external_url } />
71- { ( hypercert ?. metadata ?. work_timeframe_from as string ) && (
72- < >
73- < Separator />
74- < h2 className = "uppercase text-sm text-slate-500 font-medium tracking-wider" >
75- TIME OF WORK
76- </ h2 >
77- < TimeFrame
78- from = { hypercert . metadata ?. work_timeframe_from }
79- to = { hypercert . metadata ?. work_timeframe_to }
80- />
81- </ >
82- ) }
8371 </ section >
8472 </ article >
8573
74+ { ( hypercert ?. metadata ?. work_timeframe_from ||
75+ hypercert ?. metadata ?. work_scope ) && (
76+ < >
77+ < Separator />
78+ < section className = "space-y-4 lg:flex lg:space-y-0 lg:space-x-8" >
79+ { hypercert ?. metadata ?. work_timeframe_from && (
80+ < div className = "flex flex-col gap-y-2 w-full max-w-[500px]" >
81+ < h2 className = "uppercase text-sm text-slate-500 font-medium tracking-wider" >
82+ TIME OF WORK
83+ </ h2 >
84+ < TimeFrame
85+ from = { hypercert . metadata ?. work_timeframe_from }
86+ to = { hypercert . metadata ?. work_timeframe_to }
87+ />
88+ </ div >
89+ ) }
90+ { hypercert ?. metadata ?. work_scope && (
91+ < WorkScope hypercert = { hypercert } />
92+ ) }
93+ </ section >
94+ </ >
95+ ) }
8696 < Separator />
8797 < section className = "space-y-4 lg:flex lg:space-y-0 lg:space-x-8" >
8898 { hypercert ?. metadata ?. contributors && (
8999 < Contributors hypercert = { hypercert } />
90100 ) }
91101 < Fractions hypercert = { hypercert } />
92102 </ section >
93- { hypercert ?. metadata ?. work_scope && (
94- < >
95- < Separator />
96- < WorkScope hypercert = { hypercert } />
97- </ >
98- ) }
99103 < Separator />
100104 </ Suspense >
101105 </ section >
0 commit comments