From ee7e6b5c1b1abbb3b72491d7d2f96a313d43d7a6 Mon Sep 17 00:00:00 2001 From: kirukib Date: Tue, 20 Oct 2026 15:18:57 +0300 Subject: [PATCH] feat: player sidebar and completion states, payment marquee, international phone on sign-in - Player sidebar: progress ring header, collapsible chapters with done count and length, lesson rows with done / now-playing (animated) / number / lock states and a partial-watch bar - Completion: lesson-complete card with animated check and an Up next button; course-complete celebration with confetti and next steps; "Mark as watched (demo)" on placeholder videos only - Landing payments: greyscale logo marquee that pauses and shows colour on hover; plain list for screen readers; static row under reduced motion - Sign-in: country dial-code picker (Ethiopia first, default from the browser region) - Light theme: footer powered-by line stays readable on the dark footer frame Co-Authored-By: Claude Opus 5.5 --- packages/features/src/student.tsx | 86 +++++++++++++++++++++---------- packages/features/src/styles.css | 86 +++++++++++++++++++++++++++++++ packages/i18n/messages/am.json | 12 ++++- packages/i18n/messages/en.json | 12 ++++- packages/i18n/messages/om.json | 12 ++++- packages/i18n/messages/ti.json | 12 ++++- 6 files changed, 186 insertions(+), 34 deletions(-) diff --git a/packages/features/src/student.tsx b/packages/features/src/student.tsx index 883848e..46c2b5f 100644 --- a/packages/features/src/student.tsx +++ b/packages/features/src/student.tsx @@ -434,10 +434,9 @@ function Landing() {

{t('landing.payTitle')}

-
{PAY_GROUPS.map(([k, ids]) =>
- {t(`landing.${k}`)} -
    {ids.map((id) =>
  • {methodName(id)}
  • )}
-
)}
+
    {PAY_GROUPS.flatMap(([k, ids]) => ids.map((id) =>
  • {methodName(id)} ({t(`landing.${k}`)})
  • ))}
+ {/* Logos drift past in greyscale; hover brings back their colour and pauses the strip. */} +
{[0, 1, 2, 3].flatMap((r) => PAY_GROUPS.flatMap(([k, ids]) => ids.map((id) => {methodName(id)}{t(`landing.${k}`)})))}

{t('landing.payNote')}

@@ -670,12 +669,16 @@ function LessonRow({ c, l, current }: { c: Course; l: Lesson; current?: boolean const access = lessonAccess(c, l, me, courses); const done = isCompleted(me, l.id); const n = lessonNumber(c, l.id); + const seen = !done && l.durationSec ? Math.min(100, ((me?.progress?.[l.id]?.maxPositionSec ?? 0) / l.durationSec) * 100) : 0; return ( - ); } @@ -826,15 +829,24 @@ function Player({ slug, lessonId }: { slug?: string; lessonId?: string }) {

{notes || ct(c, locale).subtitle || ct(c, locale).description}

-