-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCourseView.jsx
More file actions
59 lines (53 loc) · 2.62 KB
/
CourseView.jsx
File metadata and controls
59 lines (53 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// import React from 'react';
// import PrerequisiteTree from "./PrerequisiteTree.jsx";
// // import {model} from '/src/model.js';
// export default function CourseView({ course }) {
// if (!course) return null;
// return (
// <div className="px-10 py-10 md:px-20 md:py-16 text-slate-900 space-y-12 font-sans">
// {/* Course Title Section */}
// <div>
// <h2 className="text-5xl font-extrabold text-[#2e2e4f]">
// {course.code} - {course.name}
// <span className="ml-4 text-lg text-violet-900">({course.credits} Credits)</span> {/* Display Credits */}
// </h2>
// </div>
// <div>
// <button
// className="text-yellow-500 cursor-pointer"
// onClick={(e) => {
// e.stopPropagation(); // prevent popup from opening
// handleFavouriteClick(course.code);
// }}
// >
// {/* {model.favouriteCourses.includes(course.code)
// ? 'Remove from Favourites'
// : 'Add to Favourites'} */}
// </button>
// </div>
// {/* Description Section */}
// <div>
// <h3 className="text-2xl font-bold text-[#3d3d68] mb-4">Course Description</h3>
// <div
// className="text-lg leading-8 text-[#2c2c2c] tracking-wide prose prose-slate max-w-full"
// dangerouslySetInnerHTML={{ __html: course.description }}
// />
// </div>
// {/* Prerequisite Graph Tree Section */}
// <div>
// <h3 className="text-2xl font-semibold text-[#2e2e4f]">Prerequisite Graph Tree</h3>
// <p className="text-lg text-slate-700 leading-7">Graph tree or prerequisite info will go here...</p>
// </div>
// {/* Reviews Section */}
// <div>
// <h3 className="text-2xl font-semibold text-[#2e2e4f]">Reviews</h3>
// <p className="text-lg text-slate-700 leading-7">Here would be some reviews of the course...</p>
// </div>
// {/* Prerequisite Graph Tree Section */}
// <div style={{ display: 'flex', flexDirection: 'column', marginBottom: '20px' }}>
// <h3 style={{ fontFamily: 'Courier New, monospace', fontSize: '24px' }}>Prerequisite Graph Tree</h3>
// {/* Placeholder for graph tree */}
// </div>
// </div>
// );
// }