Skip to content

Commit aa38ae1

Browse files
authored
Styling (#41)
* Course page merged with main * some styling changes * more styling --------- Co-authored-by: Kacper Lisik <lisik@kth.se>
1 parent e8ef0d6 commit aa38ae1

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

my-app/src/views/Components/CoursePagePopup.jsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ import React from 'react';
22

33
function CoursePagePopup({ isOpen, onClose, course, prerequisiteTree }) {
44
if (!isOpen || !course) return null; // Don't render if not open or course not selected
5-
65
return (
76
<div
87
className="fixed backdrop-blur-sm inset-0 bg-transparent flex justify-end z-50"
98
onClick={onClose}
109
>
1110
<div
12-
className="bg-indigo-400/70 backdrop-blur-sm h-full w-3/4 flex flex-col overflow-auto"
11+
className="bg-indigo-300/75 backdrop-blur-lg h-full w-3/4 flex flex-col overflow-auto"
1312
onClick={(e) => e.stopPropagation()}
1413
>
1514
<div className="flex-1">
1615
<div className="px-10 py-10 md:px-20 md:py-16 text-slate-900 space-y-12 font-sans">
1716
{/* Course Title Section */}
1817
<div>
19-
<h2 className="text-5xl font-extrabold text-[#2e2e4f]">
20-
{course.code} - {course.name}
21-
<span className="ml-4 text-lg text-violet-900">({course.credits} Credits)</span> {/* Display Credits */}
18+
<h2 className="text-5xl font-extrabold text-[#2e2e4f] ">
19+
<span className="text-violet-700">{course.code}</span> - {course.name}
20+
<span className="ml-4 text-lg text-violet-700">({course.credits} Credits)</span>
2221
</h2>
22+
<div className="my-6 h-1.5 w-full bg-violet-500"></div>
2323
</div>
2424
<div>
2525
<button
@@ -37,30 +37,30 @@ function CoursePagePopup({ isOpen, onClose, course, prerequisiteTree }) {
3737

3838
{/* Description Section */}
3939
<div>
40-
<h3 className="text-2xl font-bold text-[#3d3d68] mb-4">Course Description</h3>
40+
<h3 className="text-2xl font-bold text-[#2e2e4f] mb-0.5">Course Description</h3>
41+
<div className="mb-3 h-0.5 w-full bg-violet-500"></div>
4142
<div
42-
className="text-lg leading-8 text-[#2c2c2c] tracking-wide prose prose-slate max-w-full"
43+
className="text-lg leading-8 text-[#2e2e4f] font-semibold tracking-wide prose prose-slate max-w-full"
4344
dangerouslySetInnerHTML={{ __html: course.description }}
4445
/>
46+
4547
</div>
4648

4749
{/* Prerequisite Graph Tree Section */}
4850
<div>
49-
<h3 className="text-2xl font-semibold text-[#2e2e4f]">Prerequisite Graph Tree</h3>
50-
<p className="text-lg text-slate-700 leading-7">Graph tree or prerequisite info will go here...</p>
51+
<h3 className="text-2xl font-semibold text-[#2e2e4f] mb-0.5">Prerequisite Graph Tree</h3>
52+
<div className="mb-4 h-0.5 w-full bg-violet-500"></div>
53+
<div className="bg-indigo-300/50">
54+
{prerequisiteTree}
55+
</div>
5156
</div>
5257
{/* Reviews Section */}
5358
<div>
54-
<h3 className="text-2xl font-semibold text-[#2e2e4f]">Reviews</h3>
59+
<h3 className="text-2xl font-semibold text-[#2e2e4f] mb-0.5">Reviews</h3>
60+
<div className="mb-4 h-0.5 w-full bg-violet-500"></div>
5561
<p className="text-lg text-slate-700 leading-7">Here would be some reviews of the course...</p>
5662
</div>
5763

58-
{/* Prerequisite Graph Tree Section */}
59-
<div style={{ display: 'flex', flexDirection: 'column', marginBottom: '20px' }}>
60-
<h3 style={{ fontFamily: 'Courier New, monospace', fontSize: '24px' }}>Prerequisite Graph Tree</h3>
61-
{/* Placeholder for graph tree */}
62-
{prerequisiteTree}
63-
</div>
6464
</div>
6565
</div>
6666
<button

0 commit comments

Comments
 (0)