From 67650698bf2bede5e48ddf431a2966137674cd13 Mon Sep 17 00:00:00 2001 From: n3p-tun3 Date: Tue, 27 Oct 2026 17:42:48 +0300 Subject: [PATCH] =?UTF-8?q?feat(player):=20lesson=20player=20polish=20L1?= =?UTF-8?q?=E2=80=93L7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - L1: focus mode while watching: site links and the marketing footer are hidden - L2: the video comes first (edge to edge on phones, right under the header); course, chapter and lesson title sit under it, the course name doubling as the way back - L3: the lesson bar's next button reads "Next" so it no longer wraps - L4: when a lesson ends, "up next" appears over the video with a 5-second countdown (play now / cancel / Escape); the card below the video only shows after cancelling - L5: the notes card only appears for lessons that have notes, not the course blurb - L6: the "5 / 7" button opens the lesson list as a bottom sheet instead of scrolling the page away from the video; picking a lesson closes it - L7: chapter markers are round like lesson markers - The sidebar and the sheet share one CourseContents component - i18n: player.nextShort, playNow, autoNext (om/ti drafts) --- packages/features/src/student.tsx | 136 ++++++++++++++++++++---------- packages/features/src/styles.css | 37 +++++++- packages/i18n/messages/am.json | 3 + packages/i18n/messages/en.json | 3 + packages/i18n/messages/om.json | 3 + packages/i18n/messages/ti.json | 3 + 6 files changed, 139 insertions(+), 46 deletions(-) diff --git a/packages/features/src/student.tsx b/packages/features/src/student.tsx index e55c8e2..bab0400 100644 --- a/packages/features/src/student.tsx +++ b/packages/features/src/student.tsx @@ -99,9 +99,10 @@ export function StudentApp() { const tabs: [string, string, string][] = [['', 'home', t('nav.home')], ['courses', 'grid', t('nav.courses')], ['my', 'book', t('nav.myCourses')], ['help', 'help', t('nav.help')], ['profile', 'user', t('nav.profile')]]; const links = tabs.filter(([p]) => p !== 'profile' && (p !== 'my' || signedIn)); const current = (s: string) => (s === section || (s === 'courses' && (section === 'course')) || (s === 'profile' && (section === 'progress' || section === 'history')) ? 'page' : undefined); + const focus = section === 'learn'; // L1: watching a lesson drops the site links and the marketing footer return ( -
+
@@ -142,7 +143,7 @@ export function StudentApp() { {settings.maintenanceBanner &&
{settings.maintenanceBanner}
} -