Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/Classes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export function Classes() {
22: 'BOT-101',
23: 'ZOOL-101',
24: 'PHYS-165',
25: 'ENGR-141',
26: 'ENGR-135',
27: 'ENGR-130',
}

useEffect(() => {
Expand Down
52 changes: 49 additions & 3 deletions src/components/Curriculum.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ const Curriculum: React.FC = () => {
</tr>
</thead>
<tbody>
{/* row 1 */}
<tr
className="hover:cursor-pointer"
onClick={() => handleRowClick('/classes/24', 'PHYS-165:')}
Expand All @@ -138,7 +139,7 @@ const Curriculum: React.FC = () => {
<td>PHYS-165: Introductory Physics</td>
<td>54%</td>
</tr>
{/* row 1 */}
{/* row 2 */}

<tr
className="hover:cursor-pointer"
Expand All @@ -148,7 +149,7 @@ const Curriculum: React.FC = () => {
<td>PHYS-101: Mechanics</td>
<td>67%</td>
</tr>
{/* row 2 */}
{/* row 3 */}
<tr
className="hover:cursor-pointer"
onClick={() => handleRowClick('/classes/15', 'PHYS-102:')}
Expand All @@ -157,7 +158,7 @@ const Curriculum: React.FC = () => {
<td>PHYS-102: Waves, Thermodynamics, Optics</td>
<td>79%</td>
</tr>
{/* row 3 */}
{/* row 4 */}
<tr
className="hover:cursor-pointer"
onClick={() => handleRowClick('/classes/16', 'PHYS-103:')}
Expand All @@ -169,6 +170,51 @@ const Curriculum: React.FC = () => {
</tbody>
</table>
</div>
<h2 className="pt-6 pb-2 text-3xl font-semibold leading-snug text-gray-700">
Engineering
</h2>
<div className="overflow-x-auto">
<table className="table">
{/* head */}
<thead>
<tr className="hover">
<th></th>
<th>Name</th>
<th>Pass Rate</th>
</tr>
</thead>
<tbody>
{/* row 1 */}
<tr
className="hover:cursor-pointer"
onClick={() => handleRowClick('/classes/25', 'ENGR-141:')}
>
<th>1</th>
<td>ENGR-141: Circuits</td>
<td>TBD</td>
</tr>
{/* row 2 */}

<tr
className="hover:cursor-pointer"
onClick={() => handleRowClick('/classes/26', 'ENGR-135:')}
>
<th>2</th>
<td>ENGR-135: Statics</td>
<td>TBD</td>
</tr>
{/* row 3 */}
<tr
className="hover:cursor-pointer"
onClick={() => handleRowClick('/classes/27', 'ENGR-130:')}
>
<th>3</th>
<td>ENGR-130: Properties Of Materials</td>
<td>TBD</td>
</tr>
</tbody>
</table>
</div>
<h2 className="pt-6 pb-2 text-3xl font-semibold leading-snug text-gray-700">
Chemistry
</h2>
Expand Down