This learning app home screen greets the student, puts the current course first with a progress ring, tracks a daily streak and suggests new courses in a horizontal row with topic chips. It is an HTML mobile template for mobile sites and PWAs, built with Bootstrap 5, Bootstrap Icons and Poppins in white with a purple accent, and it can be packaged with Capacitor. Use it as an e-learning app UI or online course app home screen.
How it works
The root .lah-app is a centred app column (max 430 px). A greeting that follows the time of day sits in the top bar, followed by .lah-search, the .lah-continue card, the .lah-streak card and the .lah-rec section; the .lah-tabs bar sticks to the bottom.
The progress ring is an SVG circle with pathLength="100", so the percentage maps directly to stroke-dasharray. "Resume" opens the offcanvas #lah-lesson from the bottom; "Start lesson" simulates loading, moves to the next lesson, updates the ring and adds minutes to today's goal. The streak card reads data-lah-streak, data-lah-goal and data-lah-today, fills the goal bar and builds the .lah-week row for the last seven days from today's date. "Goal" opens #lah-goal-sheet, where radio cards change the daily target.
Topic chips (data-lah-topic) and the search text filter the .lah-course cards together and show .lah-empty when nothing matches. Bookmarks toggle aria-pressed and update the badge on the My courses tab.
Customization
--lah-purple,--lah-purple-darkand--lah-purple-softon.lah-app: the brand colour for the continue card, chips, active tab and buttons.--lah-orangeon.lah-app: the streak colour for the flame, goal bar and today's marker.--lah-radiuson.lah-app: corner radius of cards and course tiles (18 px).data-lah-streak,data-lah-goalanddata-lah-todayon.lah-app: the starting streak, daily goal in minutes and minutes learned today.data-lah-progresson.lah-ringandTOTAL_LESSONSinscript.js: the starting progress and lesson count..lah-art--violet,.lah-art--tealand the other.lah-art--*classes: the colour of each course tile.- The
setTimeoutin the "Start lesson" handler: open your lesson player there and report progress withfetch().
Use cases
- Online course platforms: students resume the last lesson in one tap.
- Language and skills apps: streaks and minute goals keep learners coming back.
- Corporate training portals: employees see assigned and recommended courses.
- School and university PWAs: a mobile home for coursework and progress.
Accessibility
The ring has role="img" with a percentage label, the goal bar is a progressbar with aria-valuenow, and each day in the week row has hidden text with the date and status. Chips and bookmarks use aria-pressed, the active tab uses aria-current="page", and filter, bookmark, lesson and goal changes are announced in a polite aria-live region. Touch targets are at least 44 px. Both sheets close with Escape, the close button or a tap on the backdrop.
Usage notes
Requires the Bootstrap 5.3 bundle for the offcanvas sheets. Course tiles use icons, so there are no photos to replace.