@@ -22,9 +22,7 @@ const CourseTile = (props) => {
22
22
let subtitle ;
23
23
const [ modalIsOpen , setIsOpen ] = React . useState ( false ) ;
24
24
function openModal ( ) {
25
- if ( props . data . open === 1 ) {
26
- setIsOpen ( true ) ;
27
- }
25
+ setIsOpen ( true ) ;
28
26
}
29
27
30
28
function afterOpenModal ( ) {
@@ -114,36 +112,54 @@ const CourseTile = (props) => {
114
112
referrerpolicy = "strict-origin-when-cross-origin"
115
113
className = "rounded-2xl md:w-[750px] md:h-[450px] h-56 w-[350px]"
116
114
> </ iframe >
117
- < div className = "text-center mt-7 mb-10 md:mb-0" >
118
- < a
119
- href = "https://docs.google.com/forms/d/e/1FAIpQLScIqCLD78lfgnJ4n9KbkKtoL_f1tummqCSok_2zyOdvK6yz0w/viewform"
120
- className = "mr-8 ml-2 text-xl hover:bg-[#94d768] text-[#21811d] py-3 px-6 border-2 border-[#1f901c] rounded-full font-mono font-extrabold"
121
- target = "_blank"
122
- rel = "noopener noreferrer"
123
- >
124
- Enroll Now
125
- </ a >
115
+ < div className = "text-center mt-7 mb-7" >
116
+ { props . data . open === 1 ? (
117
+ < a
118
+ href = "https://docs.google.com/forms/d/e/1FAIpQLScIqCLD78lfgnJ4n9KbkKtoL_f1tummqCSok_2zyOdvK6yz0w/viewform"
119
+ className = "mr-8 ml-2 text-xl hover:bg-[#94d768] text-[#21811d] py-3 px-6 border-2 border-[#1f901c] rounded-full font-mono font-extrabold"
120
+ target = "_blank"
121
+ rel = "noopener noreferrer"
122
+ >
123
+ Enroll Now
124
+ </ a >
125
+ ) : (
126
+ < h1
127
+ href = "https://docs.google.com/forms/d/e/1FAIpQLScIqCLD78lfgnJ4n9KbkKtoL_f1tummqCSok_2zyOdvK6yz0w/viewform"
128
+ className = "mr-8 ml-2 text-xl text-gray-500 py-3 px-6 border-2 border-gray-500 rounded-full cursor-not-allowed font-mono font-extrabold"
129
+ target = "_blank"
130
+ rel = "noopener noreferrer"
131
+ >
132
+ Registrations Closed
133
+ </ h1 >
134
+ ) }
126
135
</ div >
127
136
</ div >
128
137
129
138
< div className = "basis-1/3 pr-8" >
130
139
< div className = "text-start" >
131
140
< h1 className = "text-[#21811d] font-mono text-xl font-bold" >
132
- Course Description
141
+ Topics Covered -
133
142
</ h1 >
134
- < p className = "text-base font-serif pt-3 text-justify text-gray-700" >
143
+ { /* <p className="text-base font-serif pt-3 text-justify text-gray-700">
135
144
This course offers a comprehensive introduction to Python,
136
145
covering basics, the main function, small functions,
137
146
simple visualization, and debugging. Students will explore
138
147
scientific packages like NumPy and Pandas, and learn to
139
148
design simple projects, equipping them with practical
140
149
programming skills for data manipulation and analysis.
141
- </ p >
150
+ </p> */ }
151
+ < ol className = "list-disc text-lg font-serif text-gray-700 pt-4 ml-5 marker:text2xl" >
152
+ { props . data . topics . map ( ( top , ind ) => (
153
+ < li key = { ind } className = "pb-2" >
154
+ { top }
155
+ </ li >
156
+ ) ) }
157
+ </ ol >
142
158
</ div >
143
159
144
160
< div className = "text-left text-[#21811d] pt-4 pb-3" >
145
161
< span className = "font-bold text-3xl text-[#21811d]" >
146
- $999
162
+ ${ props . data . price }
147
163
</ span >
148
164
< span className = "text-3xl font-bold" > USD</ span > { " " }
149
165
< span className = "font-bold text-xl" > / session</ span >
@@ -156,48 +172,15 @@ const CourseTile = (props) => {
156
172
{ " " }
157
173
< span className = "font-bold text-2xl" > Session 1: </ span >
158
174
< span className = "text-lg font-bold underline underline-offset-4" >
159
- 7/8/24 to 7/19/24
160
- </ span > { " " }
161
- </ h1 >
162
-
163
- < div className = "flex pt-2" >
164
- < CalendarDaysIcon className = "h-6 w-6 text-[#7dce47]" />
165
- < h1 className = "text-gray-600 text-base" >
166
- { " " }
167
- - 9 Days
168
- </ h1 >
169
- </ div >
170
-
171
- < div className = "flex pt-2" >
172
- < CalendarIcon className = "h-6 w-6 text-[#7dce47]" />
173
- < h1 className = "text-gray-600 text-base" >
174
- { " " }
175
- - Monday to Friday
176
- </ h1 >
177
- </ div >
178
- < div className = "flex pt-2" >
179
- < ClockIcon className = "h-6 w-6 text-[#7dce47]" />
180
- < h1 className = "text-gray-600 text-base" >
181
- { " " }
182
- - 1:30 PM to 4:50 PM EST
183
- </ h1 >
184
- </ div >
185
- </ div >
186
-
187
- < div className = "text-start text-[#21811d] font-mono text-lg font-bold pt-6" >
188
- < h1 >
189
- { " " }
190
- < span className = "font-bold text-2xl" > Session 2: </ span >
191
- < span className = "text-lg font-bold underline underline-offset-4" >
192
- 7/8/24 to 7/19/24
175
+ { props . data . dates }
193
176
</ span > { " " }
194
177
</ h1 >
195
178
196
179
< div className = "flex pt-2" >
197
180
< CalendarDaysIcon className = "h-6 w-6 text-[#7dce47]" />
198
181
< h1 className = "text-gray-600 text-base" >
199
182
{ " " }
200
- - 10 Days
183
+ - { props . data . duration }
201
184
</ h1 >
202
185
</ div >
203
186
0 commit comments