Skip to content

Commit 2233368

Browse files
Courses Page Update
1 parent dd1f00d commit 2233368

File tree

2 files changed

+280
-152
lines changed

2 files changed

+280
-152
lines changed

src/components/CourseTile.js

+34-51
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ const CourseTile = (props) => {
2222
let subtitle;
2323
const [modalIsOpen, setIsOpen] = React.useState(false);
2424
function openModal() {
25-
if (props.data.open === 1) {
26-
setIsOpen(true);
27-
}
25+
setIsOpen(true);
2826
}
2927

3028
function afterOpenModal() {
@@ -114,36 +112,54 @@ const CourseTile = (props) => {
114112
referrerpolicy="strict-origin-when-cross-origin"
115113
className="rounded-2xl md:w-[750px] md:h-[450px] h-56 w-[350px]"
116114
></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+
)}
126135
</div>
127136
</div>
128137

129138
<div className="basis-1/3 pr-8">
130139
<div className="text-start">
131140
<h1 className="text-[#21811d] font-mono text-xl font-bold">
132-
Course Description
141+
Topics Covered -
133142
</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">
135144
This course offers a comprehensive introduction to Python,
136145
covering basics, the main function, small functions,
137146
simple visualization, and debugging. Students will explore
138147
scientific packages like NumPy and Pandas, and learn to
139148
design simple projects, equipping them with practical
140149
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>
142158
</div>
143159

144160
<div className="text-left text-[#21811d] pt-4 pb-3">
145161
<span className="font-bold text-3xl text-[#21811d]">
146-
$999
162+
${props.data.price}
147163
</span>
148164
<span className="text-3xl font-bold">&nbsp;USD</span>{" "}
149165
<span className="font-bold text-xl">/ session</span>
@@ -156,48 +172,15 @@ const CourseTile = (props) => {
156172
{" "}
157173
<span className="font-bold text-2xl">Session 1: </span>
158174
<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-
&nbsp;- 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-
&nbsp;- 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-
&nbsp;- 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}
193176
</span>{" "}
194177
</h1>
195178

196179
<div className="flex pt-2">
197180
<CalendarDaysIcon className="h-6 w-6 text-[#7dce47]" />
198181
<h1 className="text-gray-600 text-base">
199182
{" "}
200-
&nbsp;- 10 Days
183+
&nbsp;- {props.data.duration}
201184
</h1>
202185
</div>
203186

0 commit comments

Comments
 (0)