StealThis .dev
Pages Medium

LMS — Course Detail

A polished e-learning course detail page with a gradient preview hero, instructor credit, star rating and enroll CTA. Tabbed overview, curriculum and reviews sections sit beside a sticky buy box with price, countdown and live progress ring. The curriculum is an accordion of modules with checkable lessons that update your completion percentage, plus a study (dark) reading mode, rating distribution bars, learner reviews and a sticky enroll bar on scroll.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Course Detail

A full course landing page for an online learning platform. The hero pairs the course title, difficulty pills, star rating and instructor credit with a gradient video-preview poster and a play button. A sticky sidebar buy box carries the discounted price, a live sale countdown, enroll and save actions, an includes list and a progress block that tracks your completion.

The body is organized into three tabs — Overview, Curriculum and Reviews — switchable by click or arrow keys. Curriculum is an accordion of eight modules; each expands to reveal lessons with durations and a checkbox. Ticking lessons recalculates the progress percentage and animates the progress bar in real time, and an “Expand all” control opens every module at once. Reviews shows a rating distribution with animated bars and a list of learner testimonials.

Everything is vanilla JS: an IntersectionObserver reveals a sticky enroll bar once the buy box scrolls away, a toast helper confirms actions, and a study (dark) reading mode swaps the calm light theme for a low-glare palette. The layout is responsive down to ~360px and the interactive elements are keyboard-usable with appropriate ARIA.

Illustrative UI only — fictional courses, not a real learning platform.