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 <noreply@anthropic.com>
This commit is contained in:
kirukib 2026-10-20 15:18:57 +03:00
parent c6dc5d46a8
commit ee7e6b5c1b
6 changed files with 186 additions and 34 deletions

View File

@ -434,10 +434,9 @@ function Landing() {
</ol>
<div className="pay-strip">
<h3>{t('landing.payTitle')}</h3>
<div className="pay-groups">{PAY_GROUPS.map(([k, ids]) => <div key={k} className="pay-group">
<span className="pay-label">{t(`landing.${k}`)}</span>
<ul>{ids.map((id) => <li key={id}><PayLogo id={id} />{methodName(id)}</li>)}</ul>
</div>)}</div>
<ul className="sr-only">{PAY_GROUPS.flatMap(([k, ids]) => ids.map((id) => <li key={id}>{methodName(id)} ({t(`landing.${k}`)})</li>))}</ul>
{/* Logos drift past in greyscale; hover brings back their colour and pauses the strip. */}
<div className="pay-marquee" aria-hidden><div>{[0, 1, 2, 3].flatMap((r) => PAY_GROUPS.flatMap(([k, ids]) => ids.map((id) => <span key={`${r}-${id}`} className="pay-item"><PayLogo id={id} /><span><strong>{methodName(id)}</strong><small>{t(`landing.${k}`)}</small></span></span>)))}</div></div>
<p className="cd-note"><Icon name="lock" size={14} />{t('landing.payNote')}</p>
</div>
</section>
@ -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 (
<button className="lesson-row" aria-current={current} onClick={() => nav(`/${locale}/learn/${c.slug}/${l.id}`)}>
<span className={`ic ${done ? 'done' : ''}`}>{done ? <Icon name="check" size={14} /> : access.ok ? <Icon name="play" size={12} /> : <Icon name="lock" size={14} />}</span>
<span className="grow"><span style={{ display: 'block', fontWeight: 700 }}>{n}. {lessonTitle(l, locale)}</span>
<span className="small muted num">{clock(l.durationSec)}{l.isPreview && !owns(me, c.id) ? ` · ${t('course.preview')}` : ''}{!access.ok && access.reason === 'COMING_SOON' ? ` · ${t('course.comingSoon')}` : ''}</span></span>
<Icon name="chevron" size={16} />
<button className={`lesson-row${current ? ' is-current' : ''}${done ? ' is-done' : ''}${access.ok ? '' : ' is-locked'}`} aria-current={current ? 'step' : undefined} onClick={() => nav(`/${locale}/learn/${c.slug}/${l.id}`)}>
<span className="lr-ic" aria-hidden>{current && !done ? <span className="eq"><i /><i /><i /></span> : done ? <Icon name="check" size={14} /> : access.ok ? <span className="num">{n}</span> : <Icon name="lock" size={14} />}</span>
<span className="lr-txt">
<span className="lr-title">{current || done || !access.ok ? `${n}. ` : ''}{lessonTitle(l, locale)}</span>
<span className="lr-meta num">{clock(l.durationSec)}{l.isPreview && !owns(me, c.id) && <span className="lr-tag">{t('course.preview')}</span>}{!access.ok && access.reason === 'COMING_SOON' && <span className="lr-tag">{t('course.comingSoon')}</span>}</span>
{seen > 0 && <span className="lr-seen" aria-hidden><i style={{ width: `${seen}%` }} /></span>}
</span>
{current ? <span className="lr-now">{t('player.nowPlaying')}</span> : <Icon name="chevron" size={16} />}
</button>
);
}
@ -826,15 +829,24 @@ function Player({ slug, lessonId }: { slug?: string; lessonId?: string }) {
<p style={{ whiteSpace: 'pre-line', color: 'var(--ink-2)' }}>{notes || ct(c, locale).subtitle || ct(c, locale).description}</p>
</div>
</div>
<aside className="card p-side p-side-order stack-sm" aria-label={t('player.contents')}>
<h2 style={{ fontSize: 'var(--fs-lg)' }}>{t('course.content')}</h2>
{owns(me, c.id) && <div className="panel stack-sm" style={{ padding: 14 }}>
<span className="small num">{t('player.progress', { done: p.done, total: p.total })}</span>
<div className="bar"><i style={{ width: `${p.pct}%` }} /></div>
</div>}
{[...c.chapters].sort((a, b) => a.sortOrder - b.sortOrder).map((ch) => {
<aside className="card p-side p-side-order" aria-label={t('player.contents')}>
<div className="ps-head">
{owns(me, c.id) && <Ring pct={p.pct} size={52} />}
<div className="ps-head-txt"><span className="ps-kicker">{t('course.content')}</span><strong>{ct(c, locale).title}</strong>
{owns(me, c.id) && <span className="small muted num">{t('player.progress', { done: p.done, total: p.total })}</span>}</div>
</div>
{[...c.chapters].sort((a, b) => a.sortOrder - b.sortOrder).map((ch, ci) => {
const ls = [...ch.lessons].sort((a, b) => a.sortOrder - b.sortOrder).filter((l) => l.isPublished);
return ls.length ? <div key={ch.id}><p className="small" style={{ fontWeight: 700, padding: '10px 4px 4px' }}>{tr(ch.translations, locale)?.title}</p>{ls.map((l) => <LessonRow key={l.id} c={c} l={l} current={l.id === lesson.id} />)}</div> : null;
if (!ls.length) return null;
const doneN = ls.filter((l) => isCompleted(me, l.id)).length;
return <details key={ch.id} className={`ps-ch${doneN === ls.length ? ' is-done' : ''}`} open={ls.some((l) => l.id === lesson.id) || undefined}>
<summary>
<span className="ps-ch-n num">{doneN === ls.length ? <Icon name="check" size={14} /> : String(ci + 1).padStart(2, '0')}</span>
<span className="ps-ch-txt"><strong>{tr(ch.translations, locale)?.title}</strong><span className="small muted num">{doneN}/{ls.length} · {clock(ls.reduce((a, l) => a + l.durationSec, 0))}</span></span>
<Icon name="down" size={16} />
</summary>
<div className="ps-ch-list">{ls.map((l) => <LessonRow key={l.id} c={c} l={l} current={l.id === lesson.id} />)}</div>
</details>;
})}
</aside>
</div>
@ -956,13 +968,26 @@ function VideoPanel({ c, lesson, next }: { c: Course; lesson: Lesson; next?: Les
</div>
</div>}
</div>
{vimeo && <p className="small muted">{t('player.demoVideo')}</p>}
{done && (
<div className="done-flash" role="status"><Ring pct={pct} /><span className="grow">{t('player.completed')}</span>
{next && <button className="btn btn-sm" onClick={() => nav(`/${locale}/learn/${c.slug}/${next.id}`)}>{t('player.next')}</button>}
{vimeo && <p className="small muted">{t('player.demoVideo')}{canSave && !done && <> · <button className="link" onClick={() => { setPos(dur); posRef.current = dur; heartbeat(); }}>{t('player.markWatched')}</button></>}</p>}
{done && pct === 100 && (
<div className="course-done" role="status">
<div className="confetti" aria-hidden>{Array.from({ length: 18 }, (_, k) => <i key={k} style={{ '--k': k } as React.CSSProperties} />)}</div>
<span className="ld-check big" aria-hidden><svg viewBox="0 0 24 24" width="34" height="34"><path d="M5 12.5l4.5 4.5L19 7" /></svg></span>
<h2>{t('player.courseDoneT')}</h2>
<p>{t('player.courseDone', { course: ct(c, locale).title })}</p>
<div className="row" style={{ justifyContent: 'center' }}>
<button className="btn btn-accent" onClick={() => nav(`/${locale}/profile`)}>{t('player.seeProgress')}</button>
<button className="btn btn-ghost" onClick={() => nav(`/${locale}/courses`)}>{t('landing.browse')}</button>
</div>
</div>
)}
{done && pct < 100 && (
<div className="lesson-done" role="status">
<span className="ld-check" aria-hidden><svg viewBox="0 0 24 24" width="22" height="22"><path d="M5 12.5l4.5 4.5L19 7" /></svg></span>
<span className="ld-txt"><strong>{t('player.completed')}</strong><span className="small muted num">{t('player.courseProgress', { pct })}</span></span>
{next && <button className="ld-next" onClick={() => nav(`/${locale}/learn/${c.slug}/${next.id}`)}><span><small>{t('player.upNext')}</small>{lessonTitle(next, locale)}</span><Icon name="chevron" size={18} /></button>}
</div>
)}
{!done && next && <div><button className="btn btn-ghost btn-sm" onClick={() => nav(`/${locale}/learn/${c.slug}/${next.id}`)}>{t('player.next')}<Icon name="chevron" size={14} /></button></div>}
</div>
);
}
@ -1249,6 +1274,7 @@ function SignIn() {
const { viewer, account: me, ready, signIn, nav, locale } = useApp();
const [mode, setMode] = useState<'phone' | 'email'>('phone');
const [phone, setPhone] = useState('');
const [dial, setDial] = useState(() => { const r = (typeof navigator !== 'undefined' ? navigator.language : '').split('-')[1]?.toUpperCase(); return r && DIALS[r] ? r : 'ET'; });
const [email, setEmail] = useState('');
const [pw, setPw] = useState('');
const [step, setStep] = useState<'start' | 'code' | 'setup'>('start');
@ -1259,10 +1285,12 @@ function SignIn() {
const [err, setErr] = useState('');
useEffect(() => { if (wait <= 0) return; const id = setTimeout(() => setWait((w) => w - 1), 1000); return () => clearTimeout(id); }, [wait]);
if (!ready) return <Skeleton h={200} />;
const target = mode === 'phone' ? `+251 ${phone}` : email;
const local = phone.replace(/\D/g, '').replace(/^0/, '');
const e164 = `+${DIALS[dial]}${local}`;
const target = mode === 'phone' ? `+${DIALS[dial]} ${phone}` : email;
const send = () => {
setErr('');
if (mode === 'phone' && !/^\d{9}$/.test(phone.replace(/\s/g, ''))) { setErr(t('auth.phoneInvalid')); return; }
if (mode === 'phone' && !(dial === 'ET' ? /^[79]\d{8}$/.test(local) : local.length >= 4 && e164.length <= 16)) { setErr(t('auth.phoneInvalid')); return; }
if (mode === 'email' && !/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(email)) { setErr(t('auth.emailInvalid')); return; }
if (mode === 'email' && !validPassword(pw)) { setErr(t('auth.passwordShort')); return; }
setCode(String(Math.floor(100000 + Math.random() * 900000))); setTries(5); setEntered(''); setWait(60); setStep('code');
@ -1273,7 +1301,7 @@ function SignIn() {
if (entered !== code) { const left = tries - 1; setTries(left); setErr(left ? t('auth.wrongCode', { n: left }) : t('auth.locked')); return; }
if (me && !me.deletedAt) { signIn(); nav(`/${locale}`); } else setStep('setup');
};
if (step === 'setup') return <ProfileSetup phone={mode === 'phone' ? `+251${phone.replace(/\s/g, '')}` : undefined} email={mode === 'email' ? email : undefined} />;
if (step === 'setup') return <ProfileSetup phone={mode === 'phone' ? e164 : undefined} email={mode === 'email' ? email : undefined} />;
return (
<section className="auth">
<div className="auth-side">
@ -1292,7 +1320,7 @@ function SignIn() {
<h2 className="auth-h2">{mode === 'phone' ? t('auth.phoneTitle') : t('auth.emailTitle')}</h2>
{mode === 'phone' ? (
<label className="field"><span>{t('auth.phoneLabel')}</span>
<div className="row" style={{ flexWrap: 'nowrap' }}><span className="pill" style={{ padding: '10px 12px' }}>+251</span><input id="phone" className="input" inputMode="numeric" autoComplete="tel-national" placeholder="9XX XXX XXX" value={phone} onChange={(e) => setPhone(e.target.value)} /></div>
<div className="row" style={{ flexWrap: 'nowrap' }}><label className="dial-pick"><span className="sr-only">{t('auth.countryCode')}</span><span aria-hidden>{flagOf(dial)} +{DIALS[dial]}</span><select value={dial} onChange={(e) => setDial(e.target.value)}>{DIAL_OPTIONS.map(([cc, name]) => <option key={cc} value={cc}>{flagOf(cc)} {name} +{DIALS[cc]}</option>)}</select></label><input id="phone" className="input" inputMode="numeric" autoComplete="tel-national" placeholder={dial === 'ET' ? '9XX XXX XXX' : t('auth.phoneLabel')} value={phone} onChange={(e) => setPhone(e.target.value)} /></div>
</label>
) : <>
<label className="field"><span>{t('auth.emailLabel')}</span><input id="email" className="input" type="email" autoComplete="email" value={email} onChange={(e) => setEmail(e.target.value)} /></label>
@ -1323,6 +1351,12 @@ const SOCIAL: [string, string, ReactNode][] = [
['telegram', 'Telegram', <><circle cx="24" cy="24" r="24" fill="#26A5E4" /><path fill="#fff" d="M10.8 23.6l23.2-9c1-.4 1.9.2 1.6 1.9l-4 18.6c-.3 1.3-1.1 1.6-2.1 1l-6-4.4-2.9 2.8c-.3.3-.6.6-1.2.6l.4-6.1 11.2-10.1c.5-.4-.1-.7-.8-.3l-13.8 8.7-6-1.9c-1.3-.4-1.3-1.3.4-1.8z" /></>],
['facebook', 'Facebook', <path fill="#1877F2" transform="scale(2)" d="M24 12.07C24 5.41 18.63 0 12 0S0 5.4 0 12.07C0 18.1 4.39 23.1 10.13 24v-8.44H7.08v-3.49h3.04V9.41c0-3.02 1.8-4.7 4.54-4.7 1.31 0 2.68.24 2.68.24v2.97h-1.5c-1.5 0-1.96.93-1.96 1.89v2.26h3.32l-.53 3.5h-2.8V24C19.62 23.1 24 18.1 24 12.07" />],
];
// Country dial codes (same list as the waitlist page). Ethiopia and Eritrea first, the rest by name.
const DIALS: Record<string, string> = Object.fromEntries('AF93 AL355 DZ213 AS1 AD376 AO244 AI1 AG1 AR54 AM374 AW297 AU61 AT43 AZ994 BS1 BH973 BD880 BB1 BY375 BE32 BZ501 BJ229 BM1 BT975 BO591 BA387 BW267 BR55 BN673 BG359 BF226 BI257 KH855 CM237 CA1 CV238 KY1 CF236 TD235 CL56 CN86 CO57 KM269 CG242 CD243 CR506 CI225 HR385 CU53 CY357 CZ420 DK45 DJ253 DM1 DO1 EC593 EG20 SV503 GQ240 ER291 EE372 SZ268 ET251 FJ679 FI358 FR33 GA241 GM220 GE995 DE49 GH233 GR30 GD1 GU1 GT502 GN224 GW245 GY592 HT509 HN504 HK852 HU36 IS354 IN91 ID62 IR98 IQ964 IE353 IL972 IT39 JM1 JP81 JO962 KZ7 KE254 KI686 XK383 KW965 KG996 LA856 LV371 LB961 LS266 LR231 LY218 LI423 LT370 LU352 MO853 MG261 MW265 MY60 MV960 ML223 MT356 MR222 MU230 MX52 MD373 MC377 MN976 ME382 MA212 MZ258 MM95 NA264 NP977 NL31 NZ64 NI505 NE227 NG234 KP850 MK389 NO47 OM968 PK92 PS970 PA507 PG675 PY595 PE51 PH63 PL48 PT351 PR1 QA974 RO40 RU7 RW250 KN1 LC1 VC1 WS685 SM378 ST239 SA966 SN221 RS381 SC248 SL232 SG65 SK421 SI386 SB677 SO252 ZA27 KR82 SS211 ES34 LK94 SD249 SR597 SE46 CH41 SY963 TW886 TJ992 TZ255 TH66 TL670 TG228 TO676 TT1 TN216 TR90 TM993 UG256 UA380 AE971 GB44 US1 UY598 UZ998 VU678 VE58 VN84 YE967 ZM260 ZW263'.split(' ').map((x) => [x.slice(0, 2), x.slice(2)]));
const regionName = (() => { try { const n = new Intl.DisplayNames(['en'], { type: 'region' }); return (c: string) => n.of(c) ?? c; } catch { return (c: string) => c; } })();
const DIAL_OPTIONS: [string, string][] = [['ET', regionName('ET')], ['ER', regionName('ER')], ...Object.keys(DIALS).filter((c) => c !== 'ET' && c !== 'ER').map((c) => [c, regionName(c)] as [string, string]).sort((a, b) => a[1].localeCompare(b[1]))];
const flagOf = (cc: string) => String.fromCodePoint(...[...cc].map((ch) => 127397 + ch.charCodeAt(0)));
function SocialLogins({ onPick }: { onPick(provider: string): void }) {
const t = useTranslations();
return (

View File

@ -1065,3 +1065,89 @@ fieldset[disabled] .quiz-opt { cursor: default; }
.pay-strip .cd-note { padding: 0; }
.foot-founder { color: var(--ink-3); font-size: var(--fs-sm); margin-top: -8px; } .foot-founder a { color: var(--ink); text-underline-offset: 3px; }
/* ---------- lesson rows + player sidebar 2026-10-20 ---------- */
.lesson-row { position: relative; gap: 12px; padding: 10px 12px; border: 0; border-radius: 14px; min-height: 60px; }
.lesson-row + .lesson-row { margin-top: 2px; }
.lesson-row:hover { background: var(--mist); }
.lesson-row.is-current { background: var(--mist); box-shadow: inset 3px 0 0 var(--ink); }
.lesson-row > svg { color: var(--ink-3); flex: none; }
.lr-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.is-done .lr-ic { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.is-current .lr-ic { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.is-locked { opacity: .6; }
.lr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lr-title { font-weight: 600; line-height: 1.35; }
.is-current .lr-title { font-weight: 700; }
.lr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.lr-tag { padding: 1px 8px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-weight: 600; font-size: 11px; }
.is-current .lr-tag { background: var(--paper); }
.lr-seen { display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 4px; }
.lr-seen i { display: block; height: 100%; background: var(--ink-2); border-radius: inherit; }
.lr-now { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; background: currentColor; border-radius: 1px; animation: eq 900ms ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -300ms; } .eq i:nth-child(3) { animation-delay: -600ms; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.p-side { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.ps-head { display: flex; align-items: center; gap: 14px; padding: 12px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ps-head-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ps-head-txt strong { font-size: var(--fs-base); line-height: 1.3; }
.ps-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ps-ch summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 14px; cursor: pointer; }
.ps-ch summary::-webkit-details-marker { display: none; }
.ps-ch summary:hover { background: var(--mist); }
.ps-ch summary > svg { flex: none; color: var(--ink-3); transition: transform 200ms var(--ease-out); }
.ps-ch[open] summary > svg { transform: rotate(180deg); }
.ps-ch-n { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--mist); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ps-ch.is-done .ps-ch-n { background: var(--ink); color: var(--paper); }
.ps-ch-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ps-ch-list { padding: 2px 0 8px 18px; margin-left: 13px; border-left: 1px solid var(--line); }
.ps-ch-list .lesson-row { padding-left: 10px; }
/* ---------- completion ---------- */
.ld-check { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); animation: pop 520ms var(--ease-out); }
.ld-check svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 520ms 240ms var(--ease-out) forwards; }
.ld-check.big { width: 72px; height: 72px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lesson-done { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--mist), transparent 70%); animation: sheet-in 420ms var(--ease-out); }
.ld-txt { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 2px; }
.ld-next { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px 8px 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); text-align: left; cursor: pointer; max-width: 100%; transition: transform 200ms var(--ease-out); }
.ld-next:hover { transform: translateX(2px); }
.ld-next > span { display: flex; flex-direction: column; min-width: 0; font-weight: 700; line-height: 1.25; }
.ld-next small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .65; font-weight: 600; }
@media (max-width: 600px) { .ld-next { width: 100%; justify-content: space-between; } }
.course-done { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 20px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, var(--mist), transparent 70%); animation: sheet-in 480ms var(--ease-out); }
.course-done h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.04em; }
.course-done p { color: var(--ink-2); max-width: 44ch; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -10px; left: calc(var(--k) * 5.5% + 2%); width: 7px; height: 12px; border-radius: 2px; background: var(--ink); opacity: 0; animation: fall 2.4s calc(var(--k) * 70ms) var(--ease-out) forwards; }
.confetti i:nth-child(3n) { background: var(--ink-3); width: 6px; height: 6px; border-radius: 50%; }
.confetti i:nth-child(4n) { background: #D9A441; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(260px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .eq i, .ld-check, .ld-check svg, .confetti i, .lesson-done, .course-done { animation: none !important; } .ld-check svg { stroke-dashoffset: 0; } .confetti { display: none; } }
/* sign-in country picker */
.dial-pick { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 999px; background: var(--mist); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.dial-pick select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.dial-pick:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
/* payment marquee: classy greyscale strip, colour on hover */
.pay-marquee { overflow: hidden; margin-inline: -20px; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.pay-marquee > div { display: flex; gap: 10px; width: max-content; animation: reel 40s linear infinite; }
.pay-marquee:hover > div { animation-play-state: paused; }
.pay-item { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); transition: border-color 300ms, transform 300ms var(--ease-out), background 300ms; }
.pay-item .pay-mark { flex: none; width: 52px; height: 34px; border-radius: 9px; background: #fff; padding: 4px 6px; filter: grayscale(1) contrast(.9); opacity: .7; transition: filter 400ms var(--ease-out), opacity 400ms; }
.pay-item .pay-mark img { width: 100%; height: 100%; }
.pay-item > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.pay-item strong { font-size: var(--fs-sm); }
.pay-item small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pay-item:hover { border-color: var(--ink-3); transform: translateY(-2px); background: var(--mist); }
.pay-item:hover .pay-mark { filter: none; opacity: 1; }
@media (hover: none) { .pay-item .pay-mark { filter: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pay-marquee { mask-image: none; -webkit-mask-image: none; margin-inline: 0; } .pay-marquee > div { animation: none; flex-wrap: wrap; width: auto; } .pay-marquee .pay-item:nth-child(n + 7) { display: none; } }
/* the full footer is always on its dark frame, so its powered-by line keeps light text in both themes */
.foot-full .powered { color: #8A8A8A; }
.foot-full .shine, :root:not([data-theme="dark"]) .foot-full .shine { background-image: linear-gradient(110deg, #C9C9C9 40%, #fff 50%, #C9C9C9 60%); }

View File

@ -93,7 +93,8 @@
"continueAs": "እንደ {name} ይቀጥሉ",
"or": "ወይም",
"sideTitle": "ከባለሙያ አርቲስቶች ሜካፕ ይማሩ",
"sideBody": "የቪዲዮ ትምህርቶች በአማርኛ፣ በአፋን ኦሮሞ፣ በትግርኛና በእንግሊዝኛ። አንድ ጊዜ ይክፈሉ፣ ኮርሱን ለዘላለም ያቆዩ።"
"sideBody": "የቪዲዮ ትምህርቶች በአማርኛ፣ በአፋን ኦሮሞ፣ በትግርኛና በእንግሊዝኛ። አንድ ጊዜ ይክፈሉ፣ ኮርሱን ለዘላለም ያቆዩ።",
"countryCode": "የአገር ኮድ"
},
"setup": {
"title": "ስለ እርስዎ ይንገሩን",
@ -213,7 +214,14 @@
"fwd10": "10 ሰከንድ ወደ ፊት",
"fullscreen": "ሙሉ ማያ",
"contents": "ይዘት",
"progress": "ከ{total} ትምህርቶች {done} ተጠናቀዋል"
"progress": "ከ{total} ትምህርቶች {done} ተጠናቀዋል",
"nowPlaying": "አሁን እየታየ",
"upNext": "ቀጣይ",
"courseProgress": "ኮርሱ {pct}% ተጠናቋል",
"courseDoneT": "ኮርሱ ተጠናቋል",
"courseDone": "{course}ን ጨርሰዋል። ለዘላለም የእርስዎ ነው፤ በፈለጉ ጊዜ ወደ ማንኛውም ትምህርት ይመለሱ።",
"seeProgress": "እድገቴን ይመልከቱ",
"markWatched": "እንደታየ ምልክት አድርግ (ማሳያ)"
},
"my": {
"title": "የእኔ ኮርሶች",

View File

@ -93,7 +93,8 @@
"continueAs": "Continue as {name}",
"or": "or",
"sideTitle": "Learn makeup from working artists",
"sideBody": "Video lessons in Amharic, Afaan Oromoo, Tigrinya and English. Pay once and keep the course for life."
"sideBody": "Video lessons in Amharic, Afaan Oromoo, Tigrinya and English. Pay once and keep the course for life.",
"countryCode": "Country code"
},
"setup": {
"title": "Tell us about you",
@ -213,7 +214,14 @@
"fwd10": "Forward 10 seconds",
"fullscreen": "Full screen",
"contents": "Contents",
"progress": "{done} of {total} lessons completed"
"progress": "{done} of {total} lessons completed",
"nowPlaying": "Now playing",
"upNext": "Up next",
"courseProgress": "Course {pct}% complete",
"courseDoneT": "Course complete",
"courseDone": "You finished {course}. It stays yours for life, so come back to any lesson whenever you need it.",
"seeProgress": "See my progress",
"markWatched": "Mark as watched (demo)"
},
"my": {
"title": "My courses",

View File

@ -93,7 +93,8 @@
"continueAs": "Continue as {name}",
"or": "or",
"sideTitle": "Learn makeup from working artists",
"sideBody": "Video lessons in Amharic, Afaan Oromoo, Tigrinya and English. Pay once and keep the course for life."
"sideBody": "Video lessons in Amharic, Afaan Oromoo, Tigrinya and English. Pay once and keep the course for life.",
"countryCode": "Koodii biyyaa"
},
"setup": {
"title": "Waa'ee kee nutti himi",
@ -213,7 +214,14 @@
"fwd10": "Sekondii 10 fuulduratti",
"fullscreen": "Guutuu iskiriinii",
"contents": "Qabiyyee",
"progress": "Barnoota {total} keessaa {done} xumurameera"
"progress": "Barnoota {total} keessaa {done} xumurameera",
"nowPlaying": "Amma taphachaa jira",
"upNext": "Kan itti aanu",
"courseProgress": "Koorsiin {pct}% xumurameera",
"courseDoneT": "Koorsiin xumurameera",
"courseDone": "{course} xumurteetta. Bara baraan kan kee ta'a; yeroo barbaadde barnoota kamittuu deebi'i.",
"seeProgress": "Guddina koo ilaali",
"markWatched": "Akka ilaalameetti mallatteessi (agarsiisa)"
},
"my": {
"title": "Koorsiiwwan koo",

View File

@ -93,7 +93,8 @@
"continueAs": "Continue as {name}",
"or": "or",
"sideTitle": "Learn makeup from working artists",
"sideBody": "Video lessons in Amharic, Afaan Oromoo, Tigrinya and English. Pay once and keep the course for life."
"sideBody": "Video lessons in Amharic, Afaan Oromoo, Tigrinya and English. Pay once and keep the course for life.",
"countryCode": "ኮድ ሃገር"
},
"setup": {
"title": "ብዛዕባኻ ንገረና",
@ -213,7 +214,14 @@
"fwd10": "10 ካልኢት ንቕድሚት",
"fullscreen": "ምሉእ ስክሪን",
"contents": "ትሕዝቶ",
"progress": "ካብ {total} ትምህርትታት {done} ተወዲኦም"
"progress": "ካብ {total} ትምህርትታት {done} ተወዲኦም",
"nowPlaying": "ሕጂ ይርአ ኣሎ",
"upNext": "ቀጻሊ",
"courseProgress": "ኮርስ {pct}% ተወዲኡ",
"courseDoneT": "ኮርስ ተወዲኡ",
"courseDone": "{course} ወዲእኪ። ንሓዋሩ ናትኪ እዩ፣ ኣብ ዝደለኽዮ ግዜ ናብ ዝኾነ ትምህርቲ ተመለሲ።",
"seeProgress": "ምዕባለይ ርአ",
"markWatched": "ከም ዝተራእየ ምልክት ግበር (ማርኣያ)"
},
"my": {
"title": "ናተይ ኮርሳት",