From f9016fd732111e62879077e61f7e768432184118 Mon Sep 17 00:00:00 2001 From: "parth.ramani" Date: Tue, 9 Sep 2025 17:38:12 +0530 Subject: [PATCH] worked on the course modal --- src/pages/learner/CourseTimeline.tsx | 156 +++++++++++++-------------- 1 file changed, 75 insertions(+), 81 deletions(-) diff --git a/src/pages/learner/CourseTimeline.tsx b/src/pages/learner/CourseTimeline.tsx index 273ec14..9ac962d 100644 --- a/src/pages/learner/CourseTimeline.tsx +++ b/src/pages/learner/CourseTimeline.tsx @@ -9,7 +9,7 @@ import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '.. import { Avatar, AvatarFallback, AvatarImage } from '../../components/ui/avatar'; import { Separator } from '../../components/ui/separator'; import { Alert, AlertDescription } from '../../components/ui/alert'; -import { +import { Play, Pause, CheckCircle, @@ -385,12 +385,12 @@ function VideoPlayer({ course, isPlaying, onPlayPause }: { return (
- {course.title} - + {/* Play button overlay */}
- +
-
- + {formatTime(currentTime)} / {formatTime(duration)} - + - + - - + - + - + {expandedModules.has(module.id) && (
@@ -923,11 +919,10 @@ function ReviewsContent({ course }: { course: Course }) { {[...Array(5)].map((_, i) => ( ))}
@@ -937,14 +932,14 @@ function ReviewsContent({ course }: { course: Course }) {
- - @@ -1285,16 +1279,16 @@ export function CourseTimeline({ userType = 'individual' }: CourseTimelineProps)
{/* Right Sidebar - Learning Plan */} -
+

Learning plan

- +
I'm committed to learning 1 day a week on Coursera.
- + {/* Current Week */}
@@ -1320,7 +1314,7 @@ export function CourseTimeline({ userType = 'individual' }: CourseTimelineProps) {/* Timeline */}
Course timeline
- +
@@ -1331,7 +1325,7 @@ export function CourseTimeline({ userType = 'individual' }: CourseTimelineProps)
Your goal deadline
- +
2 @@ -1341,7 +1335,7 @@ export function CourseTimeline({ userType = 'individual' }: CourseTimelineProps)
Due in 3 days
- +
📅