1- import React from ' react'
2- import Heading from ' ../Typography/heading'
3- import Paragraph from ' ../Typography/paragraph'
4- import Image from ' next/image'
1+ import React from " react" ;
2+ import Heading from " ../Typography/heading" ;
3+ import Paragraph from " ../Typography/paragraph" ;
4+ import Image from " next/image" ;
55
66function Agenda ( { city } ) {
77 return (
8- < div className = '' data-test = "agenda-com" >
9- < div className = 'flex flex-col justify-center items-center' >
10-
11- < Heading className = 'text-[30px] text-white' >
12- Agenda
13- </ Heading >
14- { ! city . agenda && < div className = 'w-[720px] lg:w-full mt-[140px] text-center' >
15- < Heading typeStyle = 'lg' className = 'text-white text-[30px]' >
16- Agenda Coming Soon - Stay Tuned!
17- </ Heading >
18- </ div > }
19- </ div >
20-
21- { city . agenda && < div className = 'mt-[40px]' >
22- < Heading
23- typeStyle = 'heading-md'
24- className = 'text-gradient text-2xl'
25- level = 'h3' >
26- { city . date }
27- </ Heading >
28-
29- < div className = 'mt-[40px]' >
30- { city . agenda . map ( ( talk ) => {
31- return < div key = { talk . time } className = { `flex sm:flex-col justify-between mt-[50px] ${ ! talk . speaker && 'countdown-text-gradient' } ` } >
32- < Paragraph typeStyle = 'body-md' >
33- { talk . time }
34- </ Paragraph >
35- < div className = 'flex justify-between lg:flex-col w-[75%] lg:w-full' >
36- < div className = 'w-[50%] lg:w-full' >
37- < Paragraph typeStyle = 'body-sm' className = '' >
38- { talk . type }
39- </ Paragraph >
40- < Heading level = 'h3' typeStyle = 'heading-md-semibold' className = 'mt-[23px] text-white text-[20px] sm:text-[18px]' >
41- { talk . session }
42- </ Heading >
43- </ div >
44- { talk . speaker && typeof talk . speaker === 'number' ? < div className = 'flex items-center lg:mt-4' >
45- < div className = 'w-[94px] h-[94px]' >
46- < Image src = { city . speakers [ talk . speaker - 1 ] . img } alt = { city . speakers [ talk . speaker - 1 ] . name } width = { 0 } height = { 0 } className = 'object-cover rounded-full w-[100%] h-[100%]' />
47- </ div >
48- < div className = 'ml-4 w-[300px] sm:w-[250px]' >
49- < Heading typeStyle = 'heading-sm-semibold' className = 'text-white' >
50- { city . speakers [ talk . speaker - 1 ] . name }
51- </ Heading >
52- < Paragraph typeStyle = 'body-sm' className = "mt-2" >
53- { city . speakers [ talk . speaker - 1 ] . title }
54- </ Paragraph >
55- </ div >
56- </ div > : < div > </ div > }
57- { talk . speaker && typeof talk . speaker === 'object' && < div className = 'flex flex-col' >
58- { talk . speaker . map ( ( speak , i ) => < div key = { i } className = 'mt-6' >
59- < div className = 'flex items-center lg:mt-4' >
60- < div className = 'w-[94px] h-[94px]' >
61- < Image src = { city . speakers [ speak - 1 ] . img } alt = { city . speakers [ speak - 1 ] . name } width = { 0 } height = { 0 } className = 'object-cover rounded-full w-[100%] h-[100%]' />
62- </ div >
63- < div className = 'ml-4 w-[300px] sm:w-[250px]' >
64- < Heading typeStyle = 'heading-sm-semibold' className = 'text-white' >
65- { city . speakers [ speak - 1 ] . name }
66- </ Heading >
67- < Paragraph typeStyle = 'body-sm' className = "mt-2" >
68- { city . speakers [ speak - 1 ] . title }
69- </ Paragraph >
70- </ div >
71- </ div >
72- </ div > )
73- }
74- </ div > }
75- </ div >
76- </ div >
77- } ) }
78- </ div >
79- </ div > }
80- </ div >
81- ) ;
8+ < div className = "" data-test = "agenda-com" >
9+ < div className = "flex flex-col justify-center items-center" >
10+ { ! city . agenda ? (
11+ < div className = "w-[720px] lg:w-full mt-[10px] text-center" >
12+ < Heading typeStyle = "lg" className = "text-white text-[30px]" >
13+ Agenda Coming Soon - Stay Tuned!
14+ </ Heading >
15+ </ div >
16+ ) : (
17+ < Heading className = "text-[30px] text-white" > Agenda</ Heading >
18+ ) }
19+ </ div >
20+
21+ { city . agenda && (
22+ < div className = "mt-[40px]" >
23+ < Heading
24+ typeStyle = "heading-md"
25+ className = "text-gradient text-2xl"
26+ level = "h3"
27+ >
28+ { city . date }
29+ </ Heading >
30+
31+ < div className = "mt-[40px]" >
32+ { city . agenda . map ( ( talk ) => {
33+ return (
34+ < div
35+ key = { talk . time }
36+ className = { `flex sm:flex-col justify-between mt-[50px] ${ ! talk . speaker && "countdown-text-gradient" } ` }
37+ >
38+ < Paragraph typeStyle = "body-md" > { talk . time } </ Paragraph >
39+ < div className = "flex justify-between lg:flex-col w-[75%] lg:w-full" >
40+ < div className = "w-[50%] lg:w-full" >
41+ < Paragraph typeStyle = "body-sm" className = "" >
42+ { talk . type }
43+ </ Paragraph >
44+ < Heading
45+ level = "h3"
46+ typeStyle = "heading-md-semibold"
47+ className = "mt-[23px] text-white text-[20px] sm:text-[18px]"
48+ >
49+ { talk . session }
50+ </ Heading >
51+ </ div >
52+ { talk . speaker && typeof talk . speaker === "number" ? (
53+ < div className = "flex items-center lg:mt-4" >
54+ < div className = "w-[94px] h-[94px]" >
55+ < Image
56+ src = { city . speakers [ talk . speaker - 1 ] . img }
57+ alt = { city . speakers [ talk . speaker - 1 ] . name }
58+ width = { 0 }
59+ height = { 0 }
60+ className = "object-cover rounded-full w-[100%] h-[100%]"
61+ />
62+ </ div >
63+ < div className = "ml-4 w-[300px] sm:w-[250px]" >
64+ < Heading
65+ typeStyle = "heading-sm-semibold"
66+ className = "text-white"
67+ >
68+ { city . speakers [ talk . speaker - 1 ] . name }
69+ </ Heading >
70+ < Paragraph typeStyle = "body-sm" className = "mt-2" >
71+ { city . speakers [ talk . speaker - 1 ] . title }
72+ </ Paragraph >
73+ </ div >
74+ </ div >
75+ ) : (
76+ < div > </ div >
77+ ) }
78+ { talk . speaker && typeof talk . speaker === "object" && (
79+ < div className = "flex flex-col" >
80+ { talk . speaker . map ( ( speak , i ) => (
81+ < div key = { i } className = "mt-6" >
82+ < div className = "flex items-center lg:mt-4" >
83+ < div className = "w-[94px] h-[94px]" >
84+ < Image
85+ src = { city . speakers [ speak - 1 ] . img }
86+ alt = { city . speakers [ speak - 1 ] . name }
87+ width = { 0 }
88+ height = { 0 }
89+ className = "object-cover rounded-full w-[100%] h-[100%]"
90+ />
91+ </ div >
92+ < div className = "ml-4 w-[300px] sm:w-[250px]" >
93+ < Heading
94+ typeStyle = "heading-sm-semibold"
95+ className = "text-white"
96+ >
97+ { city . speakers [ speak - 1 ] . name }
98+ </ Heading >
99+ < Paragraph typeStyle = "body-sm" className = "mt-2" >
100+ { city . speakers [ speak - 1 ] . title }
101+ </ Paragraph >
102+ </ div >
103+ </ div >
104+ </ div >
105+ ) ) }
106+ </ div >
107+ ) }
108+ </ div >
109+ </ div >
110+ ) ;
111+ } ) }
112+ </ div >
113+ </ div >
114+ ) }
115+ </ div >
116+ ) ;
82117}
83118
84- export default Agenda
119+ export default Agenda ;
0 commit comments