feat: Sirkul brand, landing refresh, new footer, international waitlist phone

- Sirkul logo everywhere (header wordmark, phone monogram, favicon, footer); brand name "Sirkul Makeup"
- One font (Plus Jakarta Sans) across app and waitlist; cursive serif removed
- Habesha model photos from Wikimedia Commons (CC BY-SA, credited in footer and waitlist)
- Landing: light/dark theme toggle, live waitlist pill, photo category cards,
  how-it-works + grouped payment panel, photo CTA; less emphasis on languages
- Footer: framed card with starter-kit list (IconPark icons), student-work photo reel, credits
- Waitlist: international country-code picker, live "people waiting" pill fed by a
  doGet signup count in the Apps Script (count only, no personal data)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kirukib 2026-10-20 11:22:28 +03:00
parent 629403da0b
commit 81e27661e1
32 changed files with 812 additions and 394 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ dist
.env*
!.env.example
.vercel
.DS_Store

View File

@ -2,10 +2,9 @@ import type { ReactNode } from 'react';
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
// Placeholder favicon matching the <Logo /> mark in packages/features/src/ui.tsx.
const icon = `data:image/svg+xml,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"><rect width="34" height="34" rx="10" fill="#1D3557"/><path d="M7 22c3.5-6 7-6 10 0s6.5 6 10 0" fill="none" stroke="#A8DADC" stroke-width="3" stroke-linecap="round"/><circle cx="23.5" cy="11" r="3.5" fill="#E63946"/></svg>')}`;
import { LOGO_MARK } from '@lms/features/src/brandLogo';
export const metadata = { title: 'MakeUp Academy', description: 'Claude-hosted demo of the e-learning platform (SPEC §18).', icons: { icon } };
export const metadata = { title: 'Sirkul Makeup', description: 'Claude-hosted demo of the e-learning platform (SPEC §18).', icons: { icon: LOGO_MARK } };
// Inlined at build time instead of `import '…css'`: an imported stylesheet is re-requested by React's
// stylesheet hoisting at hydration, which the artifact CSP blocks. apps/web and apps/admin import it normally.
@ -13,13 +12,15 @@ const css = readFileSync(join(process.cwd(), '../../packages/features/src/styles
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en" data-theme="light">
<html lang="en" data-theme="light" suppressHydrationWarning>
<head>
{/* next/font emits separate files, so fonts come from Google Fonts (allowed by the artifact CSP, §18.5) */}
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Plus+Jakarta+Sans:wght@600;700;800&family=Noto+Sans+Ethiopic:wght@400;700&family=Noto+Serif+Ethiopic:wght@500;700&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Ethiopic:wght@400;700&family=Noto+Serif+Ethiopic:wght@500;700&display=swap" />
<style dangerouslySetInnerHTML={{ __html: css }} />
{/* Saved theme, else the OS setting; runs before paint so dark mode doesn't flash white. */}
<script dangerouslySetInnerHTML={{ __html: "try{var t=localStorage.getItem('theme')||(matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light');document.documentElement.dataset.theme=t}catch(e){}" }} />
</head>
<body>{children}</body>
</html>

View File

@ -3,6 +3,10 @@ export default {
output: 'export',
images: { unoptimized: true },
trailingSlash: false,
// public/waitlist/index.html is a standalone page. Next does not serve a folder index at /waitlist.
async rewrites() {
return [{ source: '/waitlist', destination: '/waitlist/index.html' }];
},
transpilePackages: ['@lms/data', '@lms/features', '@lms/i18n'],
webpack: (config, { isServer }) => {
if (!isServer) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

View File

@ -3,270 +3,346 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>MakeUp Academy — Join the waitlist</title>
<meta name="description" content="Video makeup courses from working Ethiopian artists, in Amharic, Afaan Oromoo, Tigrinya and English. Join the waitlist to hear the day we open." />
<meta name="theme-color" content="#FFF8F6" />
<title>Sirkul Makeup — Join the waitlist</title>
<meta name="description" content="Video makeup courses from Sirkul Makeup School. Join the waitlist and be first in line the day classes open." />
<meta name="theme-color" content="#0A0A0A" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=Noto+Serif+Ethiopic:wght@500;700&display=swap" />
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Crect width='34' height='34' rx='10' fill='%231D3557'/%3E%3Cpath d='M7 22c3.5-6 7-6 10 0s6.5 6 10 0' fill='none' stroke='%23A8DADC' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='23.5' cy='11' r='3.5' fill='%23E63946'/%3E%3C/svg%3E" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Ethiopic:wght@400;600&display=swap" />
<link rel="icon" href="/brand/sirkul-mark.png" />
<style>
:root {
--ink: #1D3557; --ink-2: #4A5D78; --ink-3: #7A8799;
--bg: #FFF8F6; --card: #FFFFFF; --line: #F0E2DE; --blush: #FAD7DA; --blush-2: #FDECEC; --nude: #F3E3DA;
--accent: #E63946; --accent-hover: #CB1928; --ok: #2E7D5B; --ok-soft: #E3F4EA;
--bg: #0A0A0A; --raise: #141414; --field: #1A1A1A; --line: #2A2A2A;
--ink: #F5F5F5; --ink-2: #C9C9C9; --ink-3: #8A8A8A; --bad: #FFB4AB;
--sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
--serif: 'Instrument Serif', Georgia, serif;
--eth: 'Noto Serif Ethiopic', serif;
--eth: 'Noto Sans Ethiopic', var(--sans);
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
--shadow: 0 1px 2px rgba(29, 53, 87, .04), 0 12px 32px rgba(142, 75, 69, .08);
color-scheme: light;
color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(38% 420px at 28% 260px, rgba(250, 215, 218, .8), transparent 70%), radial-gradient(32% 380px at 74% 180px, rgba(168, 218, 220, .45), transparent 70%), var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
/* nav: pills left, waitlist button right (inspo: Hotle) */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.pills { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 720px) { .pills { display: none; } }
/* ---------- nav ---------- */
.nav { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 48px); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; filter: invert(1); }
@media (max-width: 420px) { .brand img { height: 36px; } }
.links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; color: var(--ink-2); transition: color 160ms; }
.links a:hover { color: #fff; }
.nav .ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: #1C1C1C; text-decoration: none; font-weight: 600; font-size: 15px; transition: background 160ms; }
.nav .ghost:hover { background: #262626; }
@media (max-width: 760px) { .links { display: none; } }
/* hero */
.hero { position: relative; text-align: center; padding: 40px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--blush); margin-left: 6px; }
h1 { font-size: clamp(42px, 7.6vw, 88px); line-height: 1; letter-spacing: -.035em; font-weight: 600; margin: 22px auto 0; max-width: 13ch; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent); }
.am { font-family: var(--eth); font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-2); margin: 16px 0 0; }
.lead { max-width: 560px; margin: 14px auto 0; color: var(--ink-2); font-size: clamp(16px, 1.9vw, 18px); }
/* ---------- hero: photo cards float around a centered pitch ---------- */
.hero { position: relative; min-height: max(min(100svh, 980px), 760px); display: grid; place-items: center; padding: 120px 16px 96px; overflow: hidden; isolation: isolate; }
.collage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.card { position: absolute; width: var(--w, 12.5vw); max-width: 250px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #1A1A1A;
opacity: 0; animation: rise 900ms var(--ease-out) forwards, drift 9s ease-in-out infinite alternate; animation-delay: var(--d), calc(var(--d) + 900ms); }
.card.wide { aspect-ratio: 4 / 5; }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.c1 { left: -1.5%; top: 24%; --d: 120ms; }
.c2 { left: 21%; top: -6%; --d: 0ms; }
.c3 { left: 11%; bottom: -8%; --w: 12vw; --d: 240ms; }
.c4 { right: 15%; top: 30%; --d: 180ms; }
.c5 { right: -1%; top: 11%; --w: 13vw; --d: 60ms; }
.c6 { right: 8%; bottom: -12%; --d: 300ms; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -10px; } }
.collage::after { content: ''; position: absolute; inset: 0; background: radial-gradient(48% 46% at 50% 52%, rgba(10, 10, 10, .9), rgba(10, 10, 10, 0) 100%); }
.art { display: block; width: min(560px, 100%); height: auto; margin: 8px auto -12px; }
.pitch { max-width: 680px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.proof { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 6px; border-radius: 999px; border: 1px solid #3A3A3A; background: rgba(10, 10, 10, .6); backdrop-filter: blur(8px); font-size: 15px; font-weight: 500; }
.faces { display: flex; }
.faces > * { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--bg); margin-left: -9px; filter: grayscale(.7) brightness(.8); transition: filter 400ms var(--ease-out), transform 400ms var(--ease-out); }
.faces > :first-child { margin-left: 0; }
.faces > .on { filter: none; transform: translateY(-3px) scale(1.12); z-index: 1; position: relative; }
.faces b { display: grid; place-items: center; background: #fff; color: #0A0A0A; font-size: 12px; font-weight: 800; filter: none; animation: rise 500ms var(--ease-out); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; flex: none; animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 26px 0 0; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--ink-3); }
.lead { max-width: 34ch; margin: 14px 0 0; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; text-wrap: pretty; }
/* form card */
.join { max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); text-align: left; scroll-margin-top: 24px; }
.fields { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .join { padding: 16px; border-radius: 20px; } }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input { min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease; }
/* ---------- form: email first, then name + phone ---------- */
.join { width: min(560px, 100%); margin: 32px 0 0; scroll-margin-top: 120px; }
.bar { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); transition: border-color 160ms, box-shadow 160ms; }
.bar:focus-within { border-color: #4A4A4A; box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.bar input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 16px; min-height: 48px; font-size: 16px; outline: none; }
input::placeholder { color: var(--ink-3); }
input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(29, 53, 87, .08); }
input[aria-invalid="true"] { border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.btn:hover { background: #142844; }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; animation: rise 500ms var(--ease-out); }
.more[hidden] { display: none; }
.more input { min-height: 56px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); font-size: 16px; outline: none; }
.more input:focus, .tel:focus-within { border-color: #4A4A4A; box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.tel { display: flex; align-items: center; min-height: 56px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); transition: border-color 160ms, box-shadow 160ms; }
.tel:has([aria-invalid="true"]) { border-color: var(--bad); }
.tel input { flex: 1; min-width: 0; min-height: 0; height: 54px; border: 0 !important; background: none; box-shadow: none !important; padding: 0 20px 0 10px; }
.cc { position: relative; flex: none; display: flex; align-items: center; gap: 6px; height: 40px; margin-left: 8px; padding: 0 10px 0 12px; border-radius: 999px; background: #262626; font-weight: 600; font-size: 15px; }
.cc:hover { background: #2E2E2E; }
.cc:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.cc select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.cc .flag { font-size: 18px; line-height: 1; }
.cc svg { color: var(--ink-3); }
input[aria-invalid="true"] { border-color: var(--bad) !important; }
.bar:has(input[aria-invalid="true"]) { border-color: var(--bad); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: #fff; color: #0A0A0A; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease-out), background 160ms; }
.btn:hover { background: #E8E8E8; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn.red { background: var(--accent); } .btn.red:hover { background: var(--accent-hover); }
.fine { margin: 12px 2px 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.err { margin: 10px 2px 0; font-size: 14px; color: var(--accent-hover); font-weight: 600; min-height: 0; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.err { margin: 12px 0 0; font-size: 14px; color: var(--bad); font-weight: 600; }
.err:empty { display: none; }
.done { text-align: center; padding: 18px 8px; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--ok-soft); color: var(--ok); }
.done h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.done p { margin: 6px 0 0; color: var(--ink-2); }
.done, .join form { transition: opacity 250ms var(--ease-out), translate 250ms var(--ease-out); }
@starting-style { .done { opacity: 0; translate: 0 8px; } }
.done { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 20px 14px 14px; border-radius: 24px; background: var(--field); border: 1px solid var(--line); animation: rise 500ms var(--ease-out); }
.done .tick { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0A0A0A; }
.done h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.done p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
/* courses at launch: shade swatches instead of logos (inspo: Hotle "trusted by" row) */
.section { padding: 72px 0 0; }
.center { text-align: center; }
h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; margin: 0; }
.sub { color: var(--ink-2); margin: 10px auto 0; max-width: 520px; }
.shades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px auto 0; max-width: 880px; padding: 0; list-style: none; }
@media (max-width: 760px) { .shades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shade { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.shade .dot { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .12), inset 6px 6px 12px rgba(255, 255, 255, .55); }
.shade strong { font-size: 15px; line-height: 1.3; }
.shade span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 1100px) { .c2, .c4 { display: none; } .card { --w: 17vw; } .c1 { top: 12%; } .c6 { right: -2%; } }
@media (max-width: 760px) {
.hero { min-height: 0; padding: 92px 16px 56px; }
.collage { position: relative; inset: auto; display: flex; justify-content: center; gap: 10px; height: 214px; margin: 0 -16px 20px; z-index: 0; }
.collage::after { display: none; }
.card { position: relative; inset: auto; width: 98px; flex: none; }
.c1 { rotate: -6deg; top: 18px; } .c5 { top: 0; } .c6 { rotate: 6deg; top: 18px; }
.c3 { display: none; }
.hero { display: block; }
.pitch { margin: 0 auto; }
.more { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
.bar { flex-direction: column; border-radius: 24px; }
.bar input { min-height: 48px; }
}
/* why */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
/* ---------- sections ---------- */
.block { padding: clamp(72px, 9vw, 120px) 0 0; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin: 0; }
.sub { color: var(--ink-2); margin: 14px 0 0; max-width: 40rem; font-size: 17px; }
.looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.looks li { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4.4; background: #1A1A1A; }
.looks img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 700ms var(--ease-out); }
.looks li:hover img { transform: scale(1.04); }
.looks div { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 18px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); display: flex; flex-direction: column; gap: 2px; }
.looks strong { font-size: 17px; letter-spacing: -.01em; }
.looks span { font-size: 14px; color: rgba(255, 255, 255, .75); }
@media (max-width: 980px) { .looks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .looks { grid-template-columns: 1fr; } .looks li { aspect-ratio: 4 / 5; } }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }
.why > div { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.why .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blush-2); color: var(--accent); }
.why h3 { margin: 16px 0 4px; font-size: 18px; letter-spacing: -.01em; }
.why > div { background: var(--raise); border: 1px solid #1F1F1F; border-radius: 20px; padding: 28px; }
.why .n { font-size: 14px; font-weight: 700; letter-spacing: .06em; line-height: 1; color: var(--ink-3); display: block; margin-bottom: 28px; }
.why h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.why p { margin: 0; color: var(--ink-2); font-size: 15px; }
/* faq (native details) */
.faq { max-width: 720px; margin: 0 auto; }
.faq h2 { margin-bottom: 20px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; font-weight: 600; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary svg { flex: none; transition: transform 200ms var(--ease-out); }
summary svg { flex: none; color: var(--ink-3); transition: transform 200ms var(--ease-out); }
details[open] summary svg { transform: rotate(45deg); }
details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }
details p { margin: 0; padding: 0 2px 22px; color: var(--ink-2); max-width: 52ch; }
/* closing CTA + footer with oversized wordmark (inspo: Hotle footer, Sumo dark hero) */
.cta { margin-top: 72px; border-radius: 28px; padding: 40px 24px; background: linear-gradient(135deg, #1D3557, #315A93); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F5AFB5, #E63946 70%); opacity: .5; }
@media (max-width: 560px) { .cta::after { width: 160px; height: 160px; right: -70px; top: -70px; } }
.cta h2 { color: #fff; position: relative; } .cta h2 em { color: #F5AFB5; }
.cta .btn { position: relative; }
footer { margin-top: 64px; border-top: 1px solid var(--line); overflow: hidden; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; font-size: 13px; color: var(--ink-3); }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }
.word { font-weight: 800; font-size: clamp(44px, 11.2vw, 200px); line-height: .8; letter-spacing: -.06em; white-space: nowrap; text-align: center; margin: 0 0 -.12em; background: linear-gradient(180deg, var(--ink) 30%, rgba(29, 53, 87, .12)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.cta { position: relative; margin-top: clamp(72px, 9vw, 120px); border-radius: 28px; overflow: hidden; min-height: 420px; display: grid; place-items: center; text-align: center; padding: 48px 24px; isolation: isolate; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25)), linear-gradient(transparent 40%, rgba(0, 0, 0, .5)); }
.cta h2 { font-size: clamp(40px, 6vw, 76px); }
.cta h2 em { color: rgba(255, 255, 255, .72); }
.cta .btn { margin-top: 24px; min-height: 52px; }
/* first-visit entrance: rare, so it may stagger (emil-design-eng) */
.rise { animation: rise 600ms var(--ease-out) both; }
.rise:nth-child(2) { animation-delay: 60ms; } .rise:nth-child(3) { animation-delay: 120ms; } .rise:nth-child(4) { animation-delay: 180ms; } .rise:nth-child(5) { animation-delay: 240ms; } .rise:nth-child(6) { animation-delay: 300ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 40px 0 32px; font-size: 14px; color: var(--ink-3); }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .card { opacity: 1; } html { scroll-behavior: auto; } }
</style>
</head>
<body>
<div class="wrap">
<header class="nav">
<a class="brand" href="#top" aria-label="MakeUp Academy home">
<svg width="34" height="34" viewBox="0 0 34 34" aria-hidden="true"><rect width="34" height="34" rx="10" fill="#1D3557"/><path d="M7 22c3.5-6 7-6 10 0s6.5 6 10 0" fill="none" stroke="#A8DADC" stroke-width="3" stroke-linecap="round"/><circle cx="23.5" cy="11" r="3.5" fill="#E63946"/></svg>
MakeUp Academy
</a>
<nav class="pills" aria-label="Sections">
<a class="pill" href="#courses">Courses</a>
<a class="pill" href="#why">Why us</a>
<a class="pill" href="#faq">FAQ</a>
<header class="nav">
<a class="brand" href="#top" aria-label="Sirkul Makeup School home"><img src="/brand/sirkul-logo.png" alt="" /></a>
<nav class="links" aria-label="Sections">
<a href="#courses">Courses</a>
<a href="#why">Why us</a>
<a href="#faq">FAQ</a>
</nav>
<a class="pill dark" href="#join" data-focus>Join the waitlist</a>
</header>
<a class="ghost" href="#join" data-focus>Join waitlist</a>
</header>
<main id="top">
<section class="hero">
<span class="eyebrow rise"><i></i>Opening soon · 4 languages</span>
<h1 class="rise">Your <em>signature look</em> starts here.</h1>
<p class="am rise" lang="am">በቅርቡ ይከፈታል</p>
<p class="lead rise">Video makeup courses from working Ethiopian artists, in Amharic, Afaan Oromoo, Tigrinya and English. Join the list and we'll tell you the day classes open.</p>
<main>
<section class="hero" id="top">
<div class="collage" aria-hidden="true">
<figure class="card c1" style="margin:0"><img src="/photos/habesha-bride.jpg" alt="" /></figure>
<figure class="card c2" style="margin:0"><img src="/photos/habesha-harari.jpg" alt="" /></figure>
<figure class="card c3 wide" style="margin:0"><img src="/photos/habesha-trad.jpg" alt="" /></figure>
<figure class="card c4" style="margin:0"><img src="/photos/habesha-eritrean.jpg" alt="" /></figure>
<figure class="card c5" style="margin:0"><img src="/photos/hero.jpg" alt="" /></figure>
<figure class="card c6" style="margin:0"><img src="/photos/habesha-tigray.jpg" alt="" /></figure>
</div>
<!-- Hero object: eyeshadow palette, lipstick and brush (stands in for a product photo) -->
<svg class="art rise" viewBox="0 0 560 330" role="img" aria-label="An open eyeshadow palette with a lipstick and a makeup brush">
<defs>
<radialGradient id="shine" cx="35%" cy="30%" r="70%"><stop offset="0" stop-color="#fff" stop-opacity=".6"/><stop offset=".5" stop-color="#fff" stop-opacity="0"/></radialGradient>
<linearGradient id="gold" x1="0" x2="1"><stop offset="0" stop-color="#D9A88F"/><stop offset=".5" stop-color="#F6DCCB"/><stop offset="1" stop-color="#C98B6B"/></linearGradient>
<filter id="soft" x="-20%" y="-20%" width="140%" height="160%"><feDropShadow dx="0" dy="18" stdDeviation="16" flood-color="#8E4B45" flood-opacity=".18"/></filter>
</defs>
<ellipse cx="280" cy="300" rx="230" ry="16" fill="#8E4B45" opacity=".08"/>
<!-- brush -->
<g transform="rotate(-24 120 200)" filter="url(#soft)">
<rect x="30" y="196" width="100" height="16" rx="8" fill="#1D3557"/>
<rect x="126" y="192" width="40" height="24" rx="4" fill="url(#gold)"/>
<path d="M164 190 C 210 172, 240 186, 250 204 C 240 222, 210 236, 164 218 Z" fill="#F5AFB5"/>
<path d="M200 186 C 226 184, 244 194, 250 204 C 244 214, 226 224, 200 222 Z" fill="#E9B8A7"/>
</g>
<!-- palette -->
<g transform="rotate(-5 280 180)" filter="url(#soft)">
<rect x="115" y="80" width="330" height="182" rx="26" fill="#1D3557"/>
<g id="pans"></g>
</g>
<!-- lipstick -->
<g transform="rotate(10 470 180)" filter="url(#soft)">
<rect x="448" y="168" width="48" height="112" rx="8" fill="#1D3557"/>
<rect x="448" y="144" width="48" height="28" rx="3" fill="url(#gold)"/>
<path d="M455 146 L455 82 Q455 62 472 52 L490 40 L490 146 Z" fill="#E63946"/>
<path d="M478 50 L490 40 L490 146 L482 146 Z" fill="#CB1928"/>
</g>
</svg>
<div class="pitch">
<span class="proof">
<span class="faces" id="faces" aria-hidden="true"><img src="/photos/habesha-tigray.jpg" alt="" class="on" /><img src="/photos/habesha-harari.jpg" alt="" /><img src="/photos/habesha-bride.jpg" alt="" /><img src="/photos/hero.jpg" alt="" /></span>
<span class="live" aria-hidden="true"></span>
<span id="waiting" aria-live="polite">Be one of the first on the list</span>
</span>
<h1>Your <em>signature look</em> starts here.</h1>
<p class="lead">Video makeup courses from working Ethiopian artists. Join the waitlist and we'll tell you the day classes open.</p>
<div class="join rise" id="join">
<div class="join" id="join">
<form id="form" novalidate>
<div class="fields">
<label class="sr-only" aria-hidden="true">Company<input id="company" name="company" tabindex="-1" autocomplete="off" /></label>
<label class="full">Full name<input id="name" name="name" autocomplete="name" placeholder="Selam Tesfaye" required maxlength="80" /></label>
<label>Email<input id="email" name="email" type="email" autocomplete="email" placeholder="you@example.com" required maxlength="120" /></label>
<label>Phone<input id="phone" name="phone" type="tel" autocomplete="tel" inputmode="tel" placeholder="+251 9XX XXX XXX" required maxlength="20" /></label>
<button class="btn red full" id="submit">Get notified
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg>
</button>
<div class="more" id="more" hidden>
<label class="sr-only" for="name">Full name</label>
<input id="name" name="name" autocomplete="name" placeholder="Full name" required maxlength="80" />
<div class="tel">
<label class="cc"><span class="sr-only">Country code</span><span class="flag" id="ccFlag" aria-hidden="true"></span><span id="ccDial" aria-hidden="true"></span><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg><select id="cc" autocomplete="tel-country-code"></select></label>
<label class="sr-only" for="phone">Phone number</label>
<input id="phone" name="phone" type="tel" autocomplete="tel-national" inputmode="tel" placeholder="911 234 567" required maxlength="20" />
</div>
</div>
<div class="bar">
<label class="sr-only" for="email">Email</label>
<input id="email" name="email" type="email" autocomplete="email" placeholder="Enter your email" required maxlength="120" />
<button class="btn" id="submit">Join waitlist</button>
</div>
<p class="err" id="err" role="alert"></p>
<p class="fine">One message when we open. We never share your details.</p>
<p class="fine" id="fine">One message when we open. We never share your details.</p>
</form>
</div>
</div>
</section>
<section class="section center" id="courses">
<h2>Courses at <em>launch</em></h2>
<div class="wrap">
<section class="block" id="courses">
<p class="kicker">At launch</p>
<h2>Four courses, <em>one craft</em></h2>
<p class="sub">Start with the basics, or go straight to the looks clients book you for.</p>
<ul class="shades">
<li class="shade"><i class="dot" style="background:#E9B8A7"></i><strong>Makeup foundations</strong><span>Skin tone, base and color</span></li>
<li class="shade"><i class="dot" style="background:#E63946"></i><strong>Bridal &amp; events</strong><span>Looks that last a 14-hour day</span></li>
<li class="shade"><i class="dot" style="background:#A8DADC"></i><strong>Skin prep &amp; care</strong><span>The canvas before the color</span></li>
<li class="shade"><i class="dot" style="background:#8E4B45"></i><strong>Building your clientele</strong><span>Pricing, kit and bookings</span></li>
<ul class="looks">
<li><img src="/photos/hero.jpg" alt="" loading="lazy" /><div><strong>Makeup foundations</strong><span>Skin tone, base and color</span></div></li>
<li><img src="/photos/habesha-harari.jpg" alt="" loading="lazy" /><div><strong>Bridal &amp; events</strong><span>Looks that last a 14-hour day</span></div></li>
<li><img src="/photos/habesha-eritrean.jpg" alt="" loading="lazy" /><div><strong>Skin prep &amp; care</strong><span>The canvas before the color</span></div></li>
<li><img src="/photos/habesha-trad.jpg" alt="" loading="lazy" /><div><strong>Building your clientele</strong><span>Pricing, kit and bookings</span></div></li>
</ul>
</section>
<section class="section" id="why">
<div class="center"><h2>Learn the craft, <em>your way</em></h2></div>
<section class="block" id="why">
<p class="kicker">Why us</p>
<h2>Learn the craft, <em>your way</em></h2>
<div class="why">
<div><span class="ic"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"/></svg></span><h3>In your language</h3><p>Every lesson in Amharic, Afaan Oromoo, Tigrinya or English.</p></div>
<div><span class="ic"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><rect x="3" y="6" width="18" height="13" rx="2"/><path d="M3 10h18M7 15h4"/></svg></span><h3>Pay once, keep it</h3><p>One payment per course with Telebirr or CBE Birr. Yours for life.</p></div>
<div><span class="ic"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><rect x="7" y="2" width="10" height="20" rx="2"/><path d="M11 18h2"/></svg></span><h3>Made for your phone</h3><p>Short video lessons that work on a mobile data plan.</p></div>
<div><span class="n">01</span><h3>Waitlist goes first</h3><p>Everyone on the list gets in on opening day, before we announce it anywhere else.</p></div>
<div><span class="n">02</span><h3>Pay once, keep it</h3><p>One payment per course with Telebirr or CBE Birr. Yours for life.</p></div>
<div><span class="n">03</span><h3>Made for your phone</h3><p>Short video lessons that work on a mobile data plan.</p></div>
</div>
</section>
<section class="section faq" id="faq">
<h2><em>Frequently</em> asked questions</h2>
<section class="block faq" id="faq">
<div><p class="kicker">FAQ</p><h2><em>Good</em> questions</h2></div>
<div>
<details><summary>When will classes open?<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></summary><p>We're finishing the first courses now. Everyone on the waitlist hears first, by SMS or email, on opening day.</p></details>
<details><summary>How much will courses cost?<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></summary><p>Each course has one price in birr, shown before you pay. You pay once and keep the course for life. Some lessons are free to preview.</p></details>
<details><summary>How do I pay?<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></summary><p>Telebirr or CBE Birr in Ethiopia. International cards are coming for students abroad.</p></details>
<details><summary>What will you do with my details?<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></summary><p>Only tell you when we open. We don't sell or share them, and you can ask us to delete them at any time.</p></details>
</div>
</section>
<section class="cta">
<img src="/photos/habesha-bride.jpg" alt="" loading="lazy" />
<div>
<h2>Be first in <em>the chair</em>.</h2>
<a class="btn red" href="#join" data-focus>Join the waitlist</a>
<a class="btn" href="#join" data-focus>Join the waitlist</a>
</div>
</section>
</main>
</div>
<footer>
<div class="wrap foot"><span>© <span id="year"></span> MakeUp Academy</span><a href="#top">Back to top ↑</a></div>
<p class="word" aria-hidden="true">MakeUp Academy</p>
</footer>
<footer>
<span>© <span id="year"></span> Sirkul Makeup School/Studio · Photos: <a href="https://commons.wikimedia.org/wiki/File:Tigray_Bride_(48108302903).jpg" rel="noopener">Rod Waddington</a> (CC BY-SA 2.0), <a href="https://commons.wikimedia.org/wiki/File:Femme_harari_v%C3%AAtue_de_la_tenue_traditionnelle,_orn%C3%A9e_de_bijoux_en_or..jpg" rel="noopener">Imagesdumonde</a> (CC BY-SA 4.0), <a href="https://commons.wikimedia.org/wiki/File:Eritrean_woman.jpg" rel="noopener">T.Voekler</a> (CC BY-SA 3.0), <a href="https://www.pexels.com/" rel="noopener">Pexels</a></span>
<nav aria-label="Footer"><a href="#courses">Courses</a><a href="#faq">FAQ</a><a href="#top">Back to top ↑</a></nav>
</footer>
</div>
</main>
<script>
// Google Apps Script web app URL (…/exec) from tools/waitlist-apps-script.gs. Each signup becomes a row in the sheet.
// While it's empty, signups are kept only in this browser's localStorage, so don't share the page until it's set.
const ENDPOINT = '';
const pans = ['#F3D5C4', '#E9B8A7', '#C98B6B', '#8E4B45', '#FAD7DA', '#F5AFB5', '#E63946', '#A8DADC'];
document.getElementById('pans').innerHTML = pans.map((c, i) => {
const x = 137 + (i % 4) * 74, y = 102 + Math.floor(i / 4) * 74;
return `<rect x="${x}" y="${y}" width="64" height="64" rx="10" fill="#142844"/><circle cx="${x + 32}" cy="${y + 32}" r="26" fill="${c}"/><circle cx="${x + 32}" cy="${y + 32}" r="26" fill="url(#shine)"/>`;
}).join('');
document.getElementById('year').textContent = new Date().getFullYear();
document.querySelectorAll('[data-focus]').forEach((a) => a.addEventListener('click', () => setTimeout(() => document.getElementById('name')?.focus({ preventScroll: true }), 400)));
document.querySelectorAll('[data-focus]').forEach((a) => a.addEventListener('click', () => setTimeout(() => document.getElementById('email')?.focus({ preventScroll: true }), 400)));
const form = document.getElementById('form'), err = document.getElementById('err'), btn = document.getElementById('submit');
const form = document.getElementById('form'), err = document.getElementById('err'), btn = document.getElementById('submit'), more = document.getElementById('more');
const $ = (id) => document.getElementById(id);
const digits = (p) => p.replace(/[\s()-]/g, '');
// Ethiopian numbers may be typed as 09…, 9…, or +2519…; anything else must be international (+ and 8–15 digits).
const emailOk = (e) => /^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(e);
// Country picker: ISO code + dial code. Names come from Intl.DisplayNames, flags from the regional-indicator letters.
const DIAL = '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 flag = (cc) => String.fromCodePoint(...[...cc].map((c) => 127397 + c.charCodeAt(0)));
let names; try { names = new Intl.DisplayNames([navigator.language || 'en'], { type: 'region' }); } catch { names = { of: (c) => c }; }
const cc = $('cc'), dialOf = Object.fromEntries(DIAL);
[['ET', '251'], ['ER', '291'], ...DIAL.filter(([c]) => c !== 'ET' && c !== 'ER').sort((a, b) => names.of(a[0]).localeCompare(names.of(b[0])))]
.forEach(([c, d]) => cc.add(new Option(`${flag(c)} ${names.of(c)} +${d}`, c)));
const region = (navigator.language || '').split('-')[1]?.toUpperCase();
cc.value = dialOf[region] ? region : 'ET';
function showCC() {
$('ccFlag').textContent = flag(cc.value); $('ccDial').textContent = '+' + dialOf[cc.value];
$('phone').placeholder = cc.value === 'ET' ? '911 234 567' : 'Phone number';
}
cc.addEventListener('change', () => { showCC(); $('phone').focus(); });
showCC();
// Returns E.164 or null. A pasted +number wins over the picker; a leading trunk 0 (0911…) is dropped.
function normPhone(p) {
const d = digits(p);
if (/^0[79]\d{8}$/.test(d)) return '+251' + d.slice(1);
if (/^[79]\d{8}$/.test(d)) return '+251' + d;
if (/^\+\d{8,15}$/.test(d)) return d;
return null;
if (!/^\d+$/.test(d)) return null;
const n = d.replace(/^0/, ''), dial = dialOf[cc.value];
if (cc.value === 'ET') return /^[79]\d{8}$/.test(n) ? '+251' + n : null;
return n.length >= 4 && dial.length + n.length <= 15 ? '+' + dial + n : null;
}
// Live pill: faces take turns lighting up, and the count of people waiting comes from the sheet (doGet).
const faces = () => [...$('faces').querySelectorAll('img')];
if (!matchMedia('(prefers-reduced-motion: reduce)').matches) {
let fi = 0;
setInterval(() => { fi = (fi + 1) % faces().length; faces().forEach((f, k) => f.classList.toggle('on', k === fi)); }, 2000);
}
let waiting = 0;
// ponytail: below 20 signups a number reads as empty, so the pill keeps its "be one of the first" line until then.
const showWaiting = (joined) => {
if (waiting >= 20) $('waiting').textContent = joined ? `You and ${(waiting - 1).toLocaleString()} others are waiting` : `${waiting.toLocaleString()} people are already waiting`;
else if (joined) $('waiting').textContent = "You're on the list";
};
if (ENDPOINT) fetch(ENDPOINT).then((r) => r.json()).then((d) => { waiting = Number(d.count) || 0; showWaiting(false); }).catch(() => {});
function check() {
const name = $('name').value.trim(), email = $('email').value.trim(), phone = normPhone($('phone').value);
const bad = [];
if (name.length < 2) bad.push(['name', 'Please enter your name.']);
if (!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(email)) bad.push(['email', 'Please enter a valid email.']);
if (!phone) bad.push(['phone', 'Please enter a phone number, e.g. 0911 234 567 or +1 202 555 0100.']);
if (!phone) bad.push(['phone', cc.value === 'ET' ? 'Please enter a phone number, e.g. 911 234 567.' : 'Please check the phone number for the country you picked.']);
if (!emailOk(email)) bad.push(['email', 'Please enter a valid email.']);
['name', 'email', 'phone'].forEach((k) => $(k).setAttribute('aria-invalid', String(bad.some(([b]) => b === k))));
return bad.length ? { error: bad[0] } : { data: { name, email: email.toLowerCase(), phone, locale: navigator.language || 'en', createdAt: new Date().toISOString() } };
}
form.addEventListener('input', (e) => { if (e.target.getAttribute('aria-invalid') === 'true') check(); });
form.addEventListener('input', (e) => { if (e.target.getAttribute('aria-invalid') === 'true') { if (more.hidden) e.target.setAttribute('aria-invalid', String(!emailOk(e.target.value.trim()))); else check(); } });
form.addEventListener('submit', async (e) => {
e.preventDefault(); err.textContent = '';
// Step 1 asks only for the email (one field, like the reference); step 2 adds name and phone.
if (more.hidden) {
const ok = emailOk($('email').value.trim());
$('email').setAttribute('aria-invalid', String(!ok));
if (!ok) { err.textContent = 'Please enter a valid email.'; $('email').focus(); return; }
more.hidden = false; btn.textContent = 'Get notified';
$('fine').textContent = 'Last step: so we can text you on opening day.';
$('name').focus(); return;
}
const r = check();
if (r.error) { err.textContent = r.error[1]; $(r.error[0]).focus(); return; }
btn.disabled = true;
@ -283,7 +359,10 @@
console.warn('Waitlist ENDPOINT not set: signup saved in this browser only.', r.data);
}
const first = r.data.name.split(' ')[0];
form.parentElement.innerHTML = `<div class="done" role="status"><div class="tick"><svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7"/></svg></div><h3>You're on the list, ${first.replace(/[<>&"]/g, '')}.</h3><p>We'll message you the day classes open.</p></div>`;
// The new signup's initial joins the faces in the pill.
const me = document.createElement('b'); me.textContent = first[0].toUpperCase(); $('faces').prepend(me);
waiting += 1; showWaiting(true);
form.parentElement.innerHTML = `<div class="done" role="status"><div class="tick"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7"/></svg></div><div><h3>You're on the list, ${first.replace(/[<>&"]/g, '')}.</h3><p>We'll message you the day classes open.</p></div></div>`;
} catch {
err.textContent = "Something went wrong. Please try again in a moment.";
btn.disabled = false;

BIN
design/Sirkul Logo .PNG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -1,18 +1,18 @@
{
"color": {
"ink": "#1B2340",
"inkMuted": "#5B6275",
"ink": "#111111",
"inkMuted": "#6B6B6B",
"paper": "#FFFFFF",
"canvas": "#F5F6F8",
"mist": "#EEF1F6",
"line": "#E3E6EC",
"accent": "#F2B705",
"success": "#2E7D5B",
"alert": "#C2362B"
"canvas": "#F4F4F4",
"mist": "#F7F7F7",
"line": "#E4E4E4",
"accent": "#111111",
"success": "#111111",
"alert": "#000000"
},
"font": {
"latin": "'Atkinson Hyperlegible', system-ui, sans-serif",
"ethiopicSans": "'Noto Sans Ethiopic', 'Atkinson Hyperlegible', sans-serif",
"latin": "'Plus Jakarta Sans', system-ui, sans-serif",
"ethiopicSans": "'Noto Sans Ethiopic', 'Plus Jakarta Sans', sans-serif",
"ethiopicSerif": "'Noto Serif Ethiopic', serif"
},
"fontSize": { "sm": "14px", "base": "16px", "lg": "20px", "xl": "25px", "2xl": "31px", "3xl": "39px" },

View File

@ -5,7 +5,7 @@ import fs from 'fs'; import path from 'path';
const out = process.argv[2] || 'dist/seed';
const put = (col, id, body) => { fs.mkdirSync(path.join(out, col), { recursive: true }); fs.writeFileSync(path.join(out, col, id + '.json'), JSON.stringify({ ...body, id }, null, 1)); };
put('settings', 'app', { brandName: 'MakeUp Academy', supportPhone: '+251 911 234 567', telegramLink: 'https://t.me/makeupacademy_demo', supportEmail: 'support@makeup-academy.example', sessionLimit: 2, maintenanceBanner: '' });
put('settings', 'app', { brandName: 'Sirkul Makeup', supportPhone: '+251 911 234 567', telegramLink: 'https://t.me/sirkulmakeup_demo', supportEmail: 'support@sirkul-makeup.example', sessionLimit: 2, maintenanceBanner: '' });
const cats = [
['cat-fundamentals', 'fundamentals', { en: 'Makeup fundamentals', am: 'የሜካፕ መሠረታዊ ነገሮች', om: "Bu'uura meekaappii", ti: 'መሰረታዊ ሜካፕ' }],

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@ import type { Category, Course, DataSource, InboxItem, Locale, Settings, Student
import { LOCALES, newId } from '@lms/data';
import { messages } from '@lms/i18n';
export const DEFAULT_SETTINGS: Settings = { brandName: 'MakeUp Academy', supportPhone: '+251 911 000 000', telegramLink: 'https://t.me/', supportEmail: 'support@example.com', sessionLimit: 2, maintenanceBanner: '' };
export const DEFAULT_SETTINGS: Settings = { brandName: 'Sirkul Makeup', supportPhone: '+251 911 000 000', telegramLink: 'https://t.me/', supportEmail: 'support@example.com', sessionLimit: 2, maintenanceBanner: '' };
const store = {
get(k: string) { try { return localStorage.getItem('lms.' + k); } catch { return null; } },

View File

@ -9,7 +9,7 @@ import {
applyHeartbeat, applyPaymentEvent, clock, COUNTRIES, courseDuration, courseProgress, createOrder, DomainError, effectiveStatus,
ET_CITIES, formatDuration, formatMoney, gradeAssessment, isCompleted, isStudentVisible, lessonAccess, owns, publishedLessons, resumePoint, tr, validateLocation, validPassword,
} from './domain';
import { CopyText, Cover, Empty, FeedbackButton, fmtDate, Icon, Logo, MakeupBox, Modal, VIMEO_ORIGIN, VIMEO_PLACEHOLDER, Ring, Skeleton, StatusPill } from './ui';
import { CopyText, Cover, Empty, FeedbackButton, fmtDate, Icon, KitIcon, Logo, Modal, VIMEO_ORIGIN, VIMEO_PLACEHOLDER, Ring, Skeleton, StatusPill } from './ui';
import { PAY_LOGOS } from './payLogos';
const ISSUE_TYPES: IssueType[] = ['BUG', 'PAYMENT', 'VIDEO', 'ACCOUNT', 'CONTENT', 'OTHER'];
@ -81,12 +81,13 @@ export function StudentApp() {
<div className="demo-strip">{t('common.demoBanner')}</div>
<header className="s-top">
<div className="s-top-in">
<button className="brand" onClick={() => go('')}><Logo /><span>{settings.brandName}</span></button>
<button className="brand" onClick={() => go('')} aria-label={settings.brandName}><Logo size={36} /><Logo size={36} mark /></button>
<nav className="s-nav" aria-label="Main">
{links.map(([p, , label]) => <button key={p} aria-current={current(p)} onClick={() => go(p ? '/' + p : '')}>{label}</button>)}
</nav>
<div className="s-actions">
<FeedbackButton label={t('common.feedback')} target={() => mainRef.current} />
<ThemeToggle label={t('common.theme')} />
<label className="lang-pick" title={t('common.language')}><Icon name="globe" size={16} /><span className="sr-only">{t('common.language')}</span>
<select id="lang" value={locale} onChange={(e) => setLocale(e.target.value as Locale)}>
{LOCALES.map((l) => <option key={l} value={l}>{LOCALE_NAMES[l]}{(DRAFT_LOCALES as readonly string[]).includes(l) ? ' (draft)' : ''}</option>)}
@ -114,6 +115,19 @@ export function StudentApp() {
);
}
// The choice lives in localStorage; apps/demo/app/layout.tsx applies it before first paint.
function ThemeToggle({ label }: { label: string }) {
const [dark, setDark] = useState(false);
useEffect(() => setDark(document.documentElement.dataset.theme === 'dark'), []);
const flip = () => {
const next = dark ? 'light' : 'dark';
document.documentElement.dataset.theme = next;
try { localStorage.setItem('theme', next); } catch {}
setDark(!dark);
};
return <button className="icon-btn" aria-pressed={dark} aria-label={label} title={label} onClick={flip}><Icon name={dark ? 'sun' : 'moon'} size={20} /></button>;
}
const initials = (name: string) => name.split(/\s+/).filter(Boolean).slice(0, 2).map((w) => w[0]).join('').toUpperCase() || '?';
function UserMenu() {
@ -150,26 +164,27 @@ function Footer() {
if (!full) return (
<footer className="foot foot-compact">
<div className="foot-base">
<Logo size={22} /><span>© {new Date().getFullYear()} {settings.brandName}</span>
<Logo size={22} mark /><span>© {new Date().getFullYear()} {settings.brandName}</span>
<a href={settings.telegramLink} target="_blank" rel="noreferrer">{t('help.telegram')}</a>
<span className="num">{settings.supportPhone}</span>
<nav className="foot-langs" aria-label={t('common.language')}>{langs}</nav>
</div>
</footer>
);
const instructors = [...new Set(courses.filter((c) => isStudentVisible(c, me) && !c.isTest).map((c) => c.instructorName))].slice(0, 3);
const go = (p: string) => nav(`/${locale}${p}`);
const kit: [string, string][] = [['foundation', 'kit1'], ['brush', 'kit2'], ['brow', 'kit3'], ['lipstick', 'kit4']];
return (
<footer className="foot">
<div className="foot-wrap">
<div className="foot-top">
<div className="foot-story">
<h2 className="foot-word">{settings.brandName}</h2>
<footer className="foot foot-full">
<div className="foot-card">
<div className="foot-brand">
<h2 className="foot-word"><Logo size={64} /><span className="foot-icon"><KitIcon name="brush" size={56} /></span><span className="sr-only">{settings.brandName}</span></h2>
<p className="foot-tag">{t('footer.tagline')}</p>
<p className="foot-desc">{t('landing.footer')}</p>
{instructors.length > 0 && <ul className="foot-people">{instructors.map((n) => <li key={n}><strong>{n}</strong><span>{t('footer.instructors')}</span></li>)}</ul>}
<div className="foot-contact">
<span className="foot-chip">{t('footer.contact')}</span>
<a href={settings.telegramLink} target="_blank" rel="noreferrer">{t('help.telegram')}</a>
<span className="num">{settings.supportPhone}</span>
{settings.supportEmail && <a href={`mailto:${settings.supportEmail}`}>{settings.supportEmail}</a>}
</div>
<MakeupBox />
</div>
<nav className="foot-cols" aria-label="Footer">
<div><h3>{t('nav.courses')}</h3>{categories.filter((c) => c.isActive).map((c) => <button key={c.id} onClick={() => go(`/courses/${c.slug}`)}>{tr(c.translations, locale)?.name}</button>)}</div>
@ -177,14 +192,36 @@ function Footer() {
<button onClick={() => go('/courses')}>{t('catalog.title')}</button>
{signedIn && <button onClick={() => go('/progress')}>{t('nav.progress')}</button>}
<button onClick={() => go('/help')}>{t('nav.help')}</button>
</div>
<div><h3>{t('footer.support')}</h3>
<a href={settings.telegramLink} target="_blank" rel="noreferrer">{t('help.telegram')}</a>
<span className="num">{settings.supportPhone}</span>
<a href="/waitlist">{t('footer.waitlist')}</a>
</div>
<div><h3>{t('common.language')}</h3>{langs}</div>
</nav>
<div className="foot-base"><Logo size={22} /><span>© {new Date().getFullYear()} {settings.brandName}</span><span className="foot-rights">{t('footer.rights')}</span></div>
<aside className="kit-card" aria-label={t('footer.kitTitle')}>
<div className="kit-top">
<div className="kit-cover" aria-hidden>{['habesha-harari.jpg', 'glam.jpg', 'skin.jpg', 'habesha-bride.jpg'].map((f) => <img key={f} src={`/photos/${f}`} alt="" loading="lazy" />)}</div>
<div className="kit-head">
<span className="kit-badge"><KitIcon name="mirror" size={16} /></span>
<h3>{t('footer.kitTitle')}</h3>
<p>{t('footer.kitSub')}</p>
</div>
<span className="kit-tag">{t('footer.kitCount', { n: kit.length })}</span>
<button className="kit-go" onClick={() => go('/courses')} aria-label={t('landing.browse')}><Icon name="chevron" size={22} /></button>
</div>
<ol className="kit-list">{kit.map(([icon, k], n) => (
<li key={k}><span className="kit-n num">{n + 1}</span><span className="kit-item"><strong>{t(`footer.${k}`)}</strong><span>{t(`footer.${k}Note`)}</span></span><KitIcon name={icon} size={22} /></li>
))}</ol>
</aside>
</div>
<div className="foot-strip">
<p className="foot-bubble"><strong>{t('footer.workTitle')}</strong><span>{t('footer.workSub')}</span></p>
{/* ponytail: placeholder shots until real student work exists; swap WORK_PHOTOS for their uploads. */}
<div className="foot-reel" aria-hidden><div>{[...WORK_PHOTOS, ...WORK_PHOTOS].map((f, k) => <img key={k} src={`/photos/${f}`} alt="" loading="lazy" />)}</div></div>
</div>
<div className="foot-bar">
<span>© {new Date().getFullYear()} {settings.brandName} · {t('footer.rights')}</span>
<details className="foot-credits"><summary>{t('footer.credits')}</summary>
<p>{PHOTO_CREDITS.map(([who, lic, url], k) => <span key={url}>{k > 0 && ' · '}<a href={url} target="_blank" rel="noreferrer">{who}</a> ({lic})</span>)} · Wikimedia Commons, Pexels. Icons: IconPark (Apache-2.0).</p>
</details>
</div>
</footer>
);
@ -214,7 +251,35 @@ function StudentRoutes() {
// ---------------------------------------------------------------- landing + home
const CAT_LOOK: [string, string][] = [['brush', 'rose'], ['sparkle', 'plum'], ['shield', 'sage'], ['book', 'sand']];
// Hero collage and category photos (apps/demo/public/photos; credits in PHOTO_CREDITS). Decorative, so they don't wait on the catalog.
const HERO_PHOTOS = ['habesha-bride.jpg', 'habesha-harari.jpg', 'habesha-trad.jpg', 'habesha-eritrean.jpg', 'hero.jpg', 'habesha-tigray.jpg'];
const CAT_PHOTOS = ['habesha-harari.jpg', 'hero.jpg', 'habesha-trad.jpg', 'habesha-eritrean.jpg'];
// The live pill: faces take turns lighting up and it points people to the waitlist (apps/demo/public/waitlist).
const FACES = ['habesha-tigray.jpg', 'habesha-harari.jpg', 'habesha-bride.jpg', 'hero.jpg'];
const PHOTO_CREDITS: [string, string, string][] = [
['Rod Waddington', 'CC BY-SA 2.0', 'https://commons.wikimedia.org/wiki/File:Tigray_Bride_(48108302903).jpg'],
['Imagesdumonde', 'CC BY-SA 4.0', 'https://commons.wikimedia.org/wiki/File:Femme_harari_v%C3%AAtue_de_la_tenue_traditionnelle,_orn%C3%A9e_de_bijoux_en_or..jpg'],
['T.Voekler', 'CC BY-SA 3.0', 'https://commons.wikimedia.org/wiki/File:Eritrean_woman.jpg'],
];
const WORK_PHOTOS = ['glam.jpg', 'habesha-harari.jpg', 'bridal.jpg', 'hero.jpg', 'skin.jpg', 'habesha-trad.jpg', 'foundations.jpg', 'habesha-eritrean.jpg', 'clients.jpg', 'habesha-bride.jpg'];
const PAY_GROUPS: [string, string[]][] = [['payLocal', ['TELEBIRR', 'CBE_BIRR']], ['payCards', ['VISA', 'MASTERCARD']], ['payAbroad', ['PAYPAL', 'ZELLE']]];
function WaitPill({ label }: { label: string }) {
const [i, setI] = useState(0);
useEffect(() => {
if (matchMedia('(prefers-reduced-motion: reduce)').matches) return;
const id = setInterval(() => setI((n) => (n + 1) % FACES.length), 2000);
return () => clearInterval(id);
}, []);
return (
<a className="live-pill" href="/waitlist">
<span className="faces" aria-hidden>{FACES.map((f, k) => <img key={f} src={`/photos/${f}`} alt="" className={k === i ? 'on' : undefined} />)}</span>
<span className="live-dot" aria-hidden />
<span>{label}</span>
<Icon name="chevron" size={14} />
</a>
);
}
function Landing() {
const t = useTranslations();
@ -228,31 +293,20 @@ function Landing() {
const total = visible.reduce((s, c) => s + courseDuration(c), 0);
const cats = categories.filter((c) => c.isActive);
const watch = () => { if (lead) nav(preview ? `/${locale}/learn/${lead.slug}/${preview.id}` : `/${locale}/course/${lead.slug}`); };
const stats: [string, ReactNode, string][] = [['grid', visible.length, 'statCourses'], ['video', lessons, 'statLessons'], ['clock', formatDuration(total), 'statHours'], ['globe', LOCALES.length, 'statLanguages']];
const stats: [string, ReactNode, string][] = [['grid', visible.length, 'statCourses'], ['video', lessons, 'statLessons'], ['clock', formatDuration(total), 'statHours']];
return (
<>
<div className="landing">
<section className="l-hero">
<div className="l-hero-in">
<div className="l-collage" aria-hidden>{HERO_PHOTOS.map((p, i) => <img key={p} className={`lc lc${i + 1}`} src={`/photos/${p}`} alt="" />)}</div>
<div className="hero-copy">
<span className="eyebrow-pill"><Icon name="sparkle" size={14} />{t('landing.eyebrow')}</span>
<WaitPill label={t('landing.waitPill')} />
<h1>{t('landing.title')}</h1>
<p className="lead">{t('landing.lead')}</p>
<div className="row hero-ctas">
<button className="btn btn-accent btn-lg" onClick={() => nav(`/${locale}/courses`)}>{t('landing.browse')}<Icon name="chevron" size={16} /></button>
{lead && <button className="btn btn-ghost btn-lg" onClick={watch}><span className="play-dot"><Icon name="play" size={12} /></span>{t('course.watchPreview')}</button>}
</div>
<ul className="facts">{['fact1', 'fact2', 'fact3'].map((k) => <li key={k}><Icon name="check" size={16} />{t(`landing.${k}`)}</li>)}</ul>
</div>
{!catalogLoaded ? <Skeleton h={340} /> : lead ? (
<div className="hero-art">
<button className="hero-frame" onClick={watch} aria-label={t('course.watchPreview')}>
<Cover course={lead} locale={locale} />
<span className="play-big" aria-hidden><Icon name="play" size={22} /></span>
</button>
<div className="float float-a"><strong className="num">{lessons}</strong><span>{t('landing.statLessons')}</span></div>
<div className="float float-b"><span className="small muted">{t('course.by', { name: lead.instructorName })}</span><strong>{ct(lead, locale).title}</strong>{lead.prices.ETB != null && <span className="num small">{formatMoney(lead.prices.ETB, 'ETB')}</span>}</div>
</div>
) : null}
<ul className="facts">{['fact2', 'fact3'].map((k) => <li key={k}><Icon name="check" size={16} />{t(`landing.${k}`)}</li>)}</ul>
</div>
</section>
@ -261,18 +315,14 @@ function Landing() {
</section>
{cats.length > 0 && <section className="stack-lg">
<div className="section-c"><h2>{t('landing.catTitle')}</h2><p>{t('landing.catLead')}</p></div>
<div className="cat-grid">{cats.map((c, i) => {
const [icon, tone] = CAT_LOOK[i % CAT_LOOK.length];
return (
<button key={c.id} className="cat-card" onClick={() => nav(`/${locale}/courses/${c.slug}`)}>
<span className={`cat-ic tone-${tone}`}><Icon name={icon} size={22} /></span>
<h3>{tr(c.translations, locale)?.name}</h3>
<span className="small muted">{t('catalog.count', { n: visible.filter((x) => x.categoryId === c.id).length })}</span>
<span className="cat-link">{t('landing.viewCourses')}<Icon name="chevron" size={14} /></span>
<div className="section-h"><div className="stack-sm"><h2>{t('landing.catTitle')}</h2><p className="muted">{t('landing.catLead')}</p></div></div>
<div className="look-grid">{cats.map((c, i) => (
<button key={c.id} className="look" onClick={() => nav(`/${locale}/courses/${c.slug}`)}>
<img src={`/photos/${CAT_PHOTOS[i % CAT_PHOTOS.length]}`} alt="" loading="lazy" />
<span className="look-copy"><strong>{tr(c.translations, locale)?.name}</strong><span>{t('catalog.count', { n: visible.filter((x) => x.categoryId === c.id).length })}</span></span>
<span className="look-go" aria-hidden><Icon name="chevron" size={16} /></span>
</button>
);
})}</div>
))}</div>
</section>}
<section className="stack-lg">
@ -281,16 +331,33 @@ function Landing() {
{!catalogLoaded ? <Skeleton h={220} /> : featured.length ? <div className="grid-cards">{featured.map((c) => <CourseCard key={c.id} c={c} />)}</div> : <Empty>{t('catalog.emptyCategory')}</Empty>}
</section>
<section className="how-panel">
<div className="stack"><h2>{t('landing.howTitle')}</h2><ol className="steps"><li>{t('landing.how1')}</li><li>{t('landing.how2')}</li><li>{t('landing.how3')}</li></ol></div>
<div className="stack-sm"><h3>{t('landing.payTitle')}</h3><div className="pay-logos">{METHODS.map((m) => <span key={m.id} className="pay-logo"><PayLogo id={m.id} />{m.name}</span>)}</div></div>
<section className="how-pay">
<div className="how">
<h2>{t('landing.howTitle')}</h2>
<ol className="how-steps">{['how1', 'how2', 'how3'].map((k) => <li key={k}>{t(`landing.${k}`)}</li>)}</ol>
<button className="btn btn-accent btn-lg how-cta" onClick={() => nav(`/${locale}/courses`)}>{t('landing.browse')}<Icon name="chevron" size={16} /></button>
</div>
<div className="pay-panel">
<div className="stack-sm">
<h2>{t('landing.payTitle')}</h2>
<p>{t('landing.payLead')}{Number.isFinite(minPrice) && <> <strong className="num">{t('landing.from', { price: formatMoney(minPrice, 'ETB') })}</strong></>}</p>
</div>
{PAY_GROUPS.map(([k, ids]) => (
<div key={k} className="pay-group">
<span className="pay-label">{t(`landing.${k}`)}</span>
<div className="pay-row">{ids.map((id) => <span key={id} className="pay-chip"><PayLogo id={id} />{methodName(id)}</span>)}</div>
</div>
))}
<p className="pay-note"><Icon name="lock" size={14} />{t('landing.payNote')}</p>
</div>
</section>
<section className="cta-band">
<section className="cta-photo">
<img src="/photos/habesha-tigray.jpg" alt="" loading="lazy" />
<div className="stack-sm"><h2>{t('landing.ctaTitle')}</h2><p>{t('landing.ctaBody')}</p></div>
<button className="btn btn-accent btn-lg" onClick={lead ? watch : () => nav(`/${locale}/courses`)}><Icon name="play" size={16} />{t('course.watchPreview')}</button>
</section>
</>
</div>
);
}
@ -804,18 +871,19 @@ function Checkout({ slug }: { slug?: string }) {
setBusy(false);
};
return (
<section className="stack" style={{ maxWidth: 560 }}>
<section className="stack checkout" style={{ maxWidth: 680 }}>
<h1 style={{ fontSize: 'var(--fs-2xl)' }}>{t('checkout.title')}</h1>
<div className="card row" style={{ flexWrap: 'nowrap' }}>
<div className="thumb" style={{ width: 110, flex: 'none' }}><Cover course={c} locale={locale} /></div>
<div className="grow stack-sm"><strong>{ct(c, locale).title}</strong><span className="small muted">{t('checkout.lifetime')}</span></div>
</div>
<fieldset className="stack-sm" style={{ border: 0, padding: 0, margin: 0 }}>
<legend className="sr-only">{t('checkout.title')}</legend>
<fieldset className="pay-pick">
<legend className="sr-only">{t('landing.payTitle')}</legend>
{METHODS.map((m) => (
<label key={m.id} className="card check" style={{ padding: 16, alignItems: 'center' }}>
<label key={m.id} className="pay-opt">
<input type="radio" name="method" value={m.id} checked={method === m.id} onChange={() => setMethod(m.id)} />
<PayLogo id={m.id} /><span className="grow" style={{ fontWeight: 700 }}>{m.name}</span><span className="pill">{m.via}</span>
<PayLogo id={m.id} />
<span className="pay-opt-copy"><strong>{m.name}</strong><span>{m.via}</span></span>
</label>
))}
</fieldset>

View File

@ -1,42 +1,42 @@
/* Layout: student = quiet single column with Ge'ez titles given room.
Tokens mirror design/tokens.json (§11.3). Components never use raw colors. */
:root {
--ink: #1D3557; --ink-2: #37627D; --ink-3: #4F7590;
--paper: #FFFFFF; --canvas: #F1FAEE; --mist: #EDF8F8; --line: #D7E5EE;
--accent: #E63946; --accent-ink: #FFFFFF; --accent-soft: #FAD7DA; --accent-hover: #CB1928;
--brand-2: #457B9D; --brand-2-soft: #DCF0F1; --brand-3: #A8DADC;
--success: #2E7D5B; --success-soft: #E3F4EA; --alert: #CB1928; --alert-soft: #FAD7DA; --warn-soft: #FDF1D8;
--info-soft: #DCF0F1; --on-ink: #FFFFFF;
--tone-rose: #FAD7DA; --tone-clay: #F1FAEE; --tone-plum: #D7E5EE; --tone-sand: #DCF0F1; --tone-sage: #CAE9EA; --tone-ink: #C4D4EB;
--f-latin: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
--f-eth: 'Noto Sans Ethiopic', 'Atkinson Hyperlegible', system-ui, sans-serif;
--ink: #111111; --ink-2: #3A3A3A; --ink-3: #6B6B6B;
--paper: #FFFFFF; --canvas: #F4F4F4; --mist: #F7F7F7; --line: #E4E4E4;
--accent: #111111; --accent-ink: #FFFFFF; --accent-soft: #EFEFEF; --accent-hover: #000000;
--brand-2: #222222; --brand-2-soft: #F0F0F0; --brand-3: #D0D0D0;
--success: #111111; --success-soft: #EFEFEF; --alert: #000000; --alert-soft: #E6E6E6; --warn-soft: #F3F3F3;
--info-soft: #F0F0F0; --on-ink: #FFFFFF;
--tone-rose: #E8E8E8; --tone-clay: #F5F5F5; --tone-plum: #D4D4D4; --tone-sand: #EEEEEE; --tone-sage: #DEDEDE; --tone-ink: #C8C8C8;
--f-latin: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
--f-eth: 'Noto Sans Ethiopic', 'Plus Jakarta Sans', system-ui, sans-serif;
--f-serif: 'Noto Serif Ethiopic', 'Noto Sans Ethiopic', Georgia, serif;
--fs-sm: 14px; --fs-base: 16px; --fs-lg: 20px; --fs-xl: 25px; --fs-2xl: 31px; --fs-3xl: 39px;
--r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
--shadow: 0 1px 2px rgba(29, 53, 87, .06), 0 1px 1px rgba(29, 53, 87, .03);
--shadow-pop: 0 12px 32px rgba(29, 53, 87, .16);
--shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 1px rgba(0, 0, 0, .03);
--shadow-pop: 0 12px 32px rgba(0, 0, 0, .16);
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--ink: #EDF8F8; --ink-2: #B9E2E3; --ink-3: #88B1CB;
--paper: #0C1623; --canvas: #060B12; --mist: #122035; --line: #1B313E;
--accent: #EB5F6B; --accent-ink: #FFFFFF; --accent-soft: #3A1418; --accent-hover: #F08790;
--brand-2: #6097B9; --brand-2-soft: #163637; --brand-3: #70C3C6;
--success: #5CC08F; --success-soft: #173328; --alert: #F08790; --alert-soft: #3A1418; --warn-soft: #3A321A;
--info-soft: #163637; --on-ink: #0C1623;
--tone-rose: #3A1418; --tone-clay: #1A2E1E; --tone-plum: #1B313E; --tone-sand: #163637; --tone-sage: #1F4446; --tone-ink: #172B46;
--ink: #F5F5F5; --ink-2: #C8C8C8; --ink-3: #9A9A9A;
--paper: #0A0A0A; --canvas: #000000; --mist: #161616; --line: #2A2A2A;
--accent: #F5F5F5; --accent-ink: #0A0A0A; --accent-soft: #2A2A2A; --accent-hover: #FFFFFF;
--brand-2: #E0E0E0; --brand-2-soft: #1C1C1C; --brand-3: #3A3A3A;
--success: #F5F5F5; --success-soft: #1A1A1A; --alert: #FFFFFF; --alert-soft: #2A2A2A; --warn-soft: #1F1F1F;
--info-soft: #1C1C1C; --on-ink: #0A0A0A;
--tone-rose: #2A2A2A; --tone-clay: #1A1A1A; --tone-plum: #333333; --tone-sand: #242424; --tone-sage: #3A3A3A; --tone-ink: #444444;
color-scheme: dark;
}
}
:root[data-theme="dark"] {
--ink: #EDF8F8; --ink-2: #B9E2E3; --ink-3: #88B1CB;
--paper: #0C1623; --canvas: #060B12; --mist: #122035; --line: #1B313E;
--accent: #EB5F6B; --accent-ink: #FFFFFF; --accent-soft: #3A1418; --accent-hover: #F08790;
--brand-2: #6097B9; --brand-2-soft: #163637; --brand-3: #70C3C6;
--success: #5CC08F; --success-soft: #173328; --alert: #F08790; --alert-soft: #3A1418; --warn-soft: #3A321A;
--info-soft: #163637; --on-ink: #0C1623;
--tone-rose: #3A1418; --tone-clay: #1A2E1E; --tone-plum: #1B313E; --tone-sand: #163637; --tone-sage: #1F4446; --tone-ink: #172B46;
--ink: #F5F5F5; --ink-2: #C8C8C8; --ink-3: #9A9A9A;
--paper: #0A0A0A; --canvas: #000000; --mist: #161616; --line: #2A2A2A;
--accent: #F5F5F5; --accent-ink: #0A0A0A; --accent-soft: #2A2A2A; --accent-hover: #FFFFFF;
--brand-2: #E0E0E0; --brand-2-soft: #1C1C1C; --brand-3: #3A3A3A;
--success: #F5F5F5; --success-soft: #1A1A1A; --alert: #FFFFFF; --alert-soft: #2A2A2A; --warn-soft: #1F1F1F;
--info-soft: #1C1C1C; --on-ink: #0A0A0A;
--tone-rose: #2A2A2A; --tone-clay: #1A1A1A; --tone-plum: #333333; --tone-sand: #242424; --tone-sage: #3A3A3A; --tone-ink: #444444;
color-scheme: dark;
}
@ -201,11 +201,11 @@ textarea.input { min-height: 110px; resize: vertical; }
/* player */
.p-wrap { display: grid; gap: 20px; }
@media (min-width: 1024px) { .p-wrap { grid-template-columns: 340px 1fr; align-items: start; } .p-side { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; } .p-side-order { order: -1; } }
.screen { position: relative; background: #0C1623; color: #fff; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; }
.screen { position: relative; background: #111; color: #fff; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; }
.screen video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen .sim { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 24px; text-align: center; background: radial-gradient(circle at 30% 20%, #29495E, #0C1623 70%); }
.screen .sim { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 24px; text-align: center; background: radial-gradient(circle at 30% 20%, #3A3A3A, #111 70%); }
.screen .sim h2 { font-family: var(--f-serif); font-size: clamp(22px, 4vw, 36px); color: #fff; }
.screen .sim .muted { color: #B9BFCE; }
.screen .sim .muted { color: #C8C8C8; }
.wm { position: absolute; font-size: 12px; color: rgba(255, 255, 255, .28); pointer-events: none; user-select: none; animation: wm 40s linear infinite alternate; font-variant-numeric: tabular-nums; }
@keyframes wm { 0% { left: 6%; top: 10%; } 33% { left: 60%; top: 30%; } 66% { left: 20%; top: 70%; } 100% { left: 70%; top: 80%; } }
.controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
@ -275,9 +275,9 @@ table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.pay-logo { gap: 10px; }
/* ================= v3: cleaner shell, landing, course page, sign-in (inspo: e-Learning landing, OnlineLMS, Slothui course) ================= */
:root { --f-head: 'Plus Jakarta Sans', var(--f-latin); --shadow-soft: 0 1px 2px rgba(29, 53, 87, .04), 0 8px 24px rgba(29, 53, 87, .07); --hero-a: #F1FAEE; --hero-b: #DCF0F1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --hero-a: #0C1623; --hero-b: #163637; } }
:root[data-theme="dark"] { --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --hero-a: #0C1623; --hero-b: #163637; }
:root { --f-head: 'Plus Jakarta Sans', var(--f-latin); --shadow-soft: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .07); --hero-a: #FFFFFF; --hero-b: #F2F2F2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --hero-a: #0A0A0A; --hero-b: #1A1A1A; } }
:root[data-theme="dark"] { --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --hero-a: #0A0A0A; --hero-b: #1A1A1A; }
h1:lang(en), h2:lang(en), h3:lang(en), h1:lang(om), h2:lang(om), h3:lang(om), .brand { font-family: var(--f-head); letter-spacing: -.01em; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: var(--fs-base); }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
@ -310,10 +310,13 @@ h1:lang(en), h2:lang(en), h3:lang(en), h1:lang(om), h2:lang(om), h3:lang(om), .b
@media (max-width: 600px) { .lang-pick { padding: 0 4px 0 10px; } .lang-pick select { max-width: 76px; } }
/* landing */
.s-main { max-width: 1200px; padding-left: 20px; padding-right: 20px; gap: 64px; }
.l-hero { margin: -24px calc(50% - 50vw) 0; padding: 48px max(20px, calc(50vw - 580px)) 72px; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); }
.s-main { max-width: 1200px; padding-left: 24px; padding-right: 24px; gap: 64px; }
.l-hero { margin: -24px calc(50% - 50vw) 0; padding: 48px max(24px, calc(50vw - 580px)) 72px; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); }
.l-hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .l-hero-in { grid-template-columns: 1.05fr 1fr; } }
@media (min-width: 900px) {
.l-hero-in { grid-template-columns: 1.05fr 1fr; }
.l-hero-in:not(:has(.hero-art, .hero-still)) { grid-template-columns: minmax(0, 40rem); }
}
.l-hero h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.12; max-width: 15ch; }
.l-hero h1:lang(am), .l-hero h1:lang(ti) { line-height: 1.35; }
.l-hero .lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; }
@ -324,7 +327,7 @@ h1:lang(en), h2:lang(en), h3:lang(en), h1:lang(om), h2:lang(om), h3:lang(om), .b
.hero-frame { position: relative; display: block; width: 100%; border: 0; padding: 10px; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow-pop); cursor: pointer; transform: rotate(1.5deg); }
.hero-frame .cover { aspect-ratio: 4 / 3; border-radius: 16px; padding: 28px; }
.hero-frame .cover .ttl { font-size: clamp(26px, 3.4vw, 40px); }
.play-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1D3557; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding-left: 4px; transition: transform .2s; }
.play-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding-left: 4px; transition: transform .2s; }
.hero-frame:hover .play-big, .c-screen:hover .play-big { transform: translate(-50%, -50%) scale(1.08); }
.float { position: absolute; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.float-a { left: 0; bottom: 0; align-items: flex-start; } .float-a strong { font-size: var(--fs-xl); line-height: 1; } .float-a span { font-size: 12px; color: var(--ink-3); }
@ -420,7 +423,7 @@ h1:lang(en), h2:lang(en), h3:lang(en), h1:lang(om), h2:lang(om), h3:lang(om), .b
/* sign-in */
.auth { display: grid; width: 100%; max-width: 980px; margin: 0 auto; border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-soft); }
@media (min-width: 860px) { .auth { grid-template-columns: 1fr 1.1fr; min-height: 560px; } }
.auth-side { background: linear-gradient(160deg, #1D3557, #29495E 70%, #457B9D); color: #fff; padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; }
.auth-side { background: #111; color: #fff; padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; }
.auth-side .logo { margin-bottom: auto; }
.auth-side h2 { font-size: var(--fs-2xl); color: #fff; } .auth-side p { opacity: .8; }
.auth-side .facts { color: rgba(255, 255, 255, .85); flex-direction: column; } .auth-side .facts svg { color: var(--brand-3); }
@ -435,7 +438,7 @@ h1:lang(en), h2:lang(en), h3:lang(en), h1:lang(om), h2:lang(om), h3:lang(om), .b
@media (max-width: 899px) { .l-hero { padding-bottom: 32px; } .statbar { margin-top: -8px; } }
/* ================= v4: Summer Ocean Breeze palette (white base; navy text, red for calls to action, blues for UI state) ================= */
/* ================= v4: black and white (white base, black type and actions) ================= */
.btn-accent:hover { background: var(--accent-hover); filter: none; }
.logo { display: inline-grid; flex: none; }
.logo svg { display: block; }
@ -456,11 +459,11 @@ h1:lang(en), h2:lang(en), h3:lang(en), h1:lang(om), h2:lang(om), h3:lang(om), .b
.how-panel { background: var(--canvas); border: 1px solid color-mix(in srgb, var(--brand-3) 40%, transparent); }
.steps li::before { background: var(--accent); color: #fff; }
.pay-logo { background: var(--paper); }
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #1D3557, #29495E 60%, #457B9D); color: #fff; }
.cta-band::after { content: ''; position: absolute; right: -60px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: #A8DADC; opacity: .18; pointer-events: none; }
.cta-band { position: relative; overflow: hidden; background: #111; color: #fff; }
.cta-band::after { content: ''; position: absolute; right: -60px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: #fff; opacity: .12; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.continue { background: linear-gradient(120deg, #1D3557, #29495E); color: #fff; }
.continue .bar > i { background: #A8DADC; }
.continue { background: #111; color: #fff; }
.continue .bar > i { background: #fff; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.ccard:hover .ccard-cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.pay-mark { width: 48px; height: 28px; flex: none; display: grid; place-items: center; }
@ -481,10 +484,6 @@ h1:lang(en), h2:lang(en), h3:lang(en), h1:lang(om), h2:lang(om), h3:lang(om), .b
.foot-people { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.foot-people strong { display: block; color: var(--ink); }
.foot-people span { font-size: var(--fs-sm); color: var(--ink-3); }
.foot-box { width: 100%; max-width: 340px; justify-self: end; }
.foot-box svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(29, 53, 87, .18)); transition: transform .4s ease; }
.foot-box:hover svg { transform: rotate(-1.5deg) translateY(-4px); }
@media (max-width: 859px) { .foot-box { max-width: 260px; justify-self: start; } }
.foot-cols { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot-cols h3 { font-family: var(--f-latin); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
@ -529,15 +528,15 @@ fieldset[disabled] .quiz-opt { cursor: default; }
.btn:active, .icon-btn:active, .seg button:active, .quiz-opt:active { transform: scale(0.97); }
.ccard:active, .cat-card:active { transform: scale(0.99); }
/* lift-on-hover only where a real pointer can hover; touch screens kept the lift stuck after a tap */
@media (hover: none) { .ccard:hover, .cat-card:hover { transform: none; box-shadow: none; } .foot-box:hover svg { transform: none; } }
@media (hover: none) { .ccard:hover, .cat-card:hover { transform: none; box-shadow: none; } }
.ch > summary svg { transition: transform 200ms var(--ease-out); }
/* toast slides up from where it sits instead of popping in */
.toast { transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out); }
@starting-style { .toast { opacity: 0; translate: 0 8px; } }
/* course page: play button in the corner so it never covers the Ge'ez title */
.c-screen .play-big { left: auto; top: auto; right: 20px; bottom: 20px; transform: none; width: 56px; height: 56px; transition: transform 160ms var(--ease-out); }
.c-screen:hover .play-big { transform: scale(1.06); }
.c-screen .cover .ttl { max-width: calc(100% - 72px); }
/* play button in the corner so it never covers the Ge'ez title (landing hero and course page) */
.hero-frame .play-big, .c-screen .play-big { left: auto; top: auto; right: 20px; bottom: 20px; transform: none; width: 56px; height: 56px; transition: transform 160ms var(--ease-out); }
.hero-frame:hover .play-big, .c-screen:hover .play-big { transform: scale(1.06); }
.hero-frame .cover .ttl, .c-screen .cover .ttl { max-width: calc(100% - 72px); }
/* small thumbnails (my courses, checkout): two short lines instead of a clipped third */
.thumb .cover { padding: 10px; }
.thumb .cover .ttl { font-size: 15px; line-height: 1.3; -webkit-line-clamp: 2; }
@ -569,7 +568,203 @@ fieldset[disabled] .quiz-opt { cursor: default; }
/* UI motion under 300 ms */
.bar > i { transition: width 300ms var(--ease-out); }
.ring .fg { transition: stroke-dashoffset 300ms var(--ease-out); }
.foot-box svg { transition: transform 250ms var(--ease-out); }
/* landing: one rhythm, a real palette in the hero, payment as cards */
.landing { display: flex; flex-direction: column; gap: clamp(72px, 8vw, 104px); }
.hero-still { max-width: 440px; width: 100%; justify-self: end; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 18px 40px rgba(0, 0, 0, .16); }
.hero-still img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.how-panel { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
.how-panel .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .how-panel .steps { grid-template-columns: 1fr; } .hero-still { justify-self: center; } }
.pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .pay-grid { grid-template-columns: 1fr; } }
.l-hero:has(.hero-still) + .statbar { margin-top: -28px; }
.pay-tile { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.pay-tile > span { display: flex; flex-direction: column; min-width: 0; }
.pay-tile strong { font-size: 14px; }
.pay-tile .pay-mark, .pay-opt .pay-mark { width: 52px; height: 32px; }
.pay-tile .pay-mark img, .pay-opt .pay-mark img { width: 52px; height: 32px; }
.pay-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; margin: 0; padding: 0; }
@media (max-width: 520px) { .pay-pick { grid-template-columns: 1fr; } }
.pay-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); cursor: pointer; }
.pay-opt input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt:has(input:checked)::after { content: ''; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.pay-opt:has(input:checked)::before { content: ''; position: absolute; z-index: 1; top: 16px; right: 18.5px; width: 4px; height: 8px; border: solid var(--paper); border-width: 0 2px 2px 0; rotate: 45deg; }
.pay-opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.pay-opt-copy { display: flex; flex-direction: column; min-width: 0; }
.pay-opt-copy span { font-size: 13px; color: var(--ink-3); font-weight: 500; }
/* keep a number and its unit together */
.statbar strong { white-space: nowrap; }
@media (max-width: 599px) { .statbar strong { font-size: var(--fs-lg); } }
/* ---------- landing hero, 2026-10-19: dark stage, photo cards around a centered pitch (waitlist page twin) ---------- */
.l-hero { --ink: #F5F5F5; --ink-2: #C9C9C9; --ink-3: #8A8A8A; --paper: #141414; --mist: #1C1C1C; --line: #3A3A3A; --accent: #FFFFFF; --accent-ink: #0A0A0A; --brand-2: #FFFFFF;
color: var(--ink); background: #0A0A0A; margin: -12px calc(50% - 50vw + 12px) 0; padding: clamp(96px, 12vw, 150px) 16px clamp(150px, 15vw, 190px); border-radius: 28px; display: grid; place-items: center; text-align: center; isolation: isolate; min-height: min(86svh, 860px); }
.l-hero::before, .l-hero::after { display: none; }
.l-hero .hero-copy { align-items: center; max-width: 680px; gap: 22px; }
.l-hero .eyebrow-pill { align-self: center; background: rgba(10, 10, 10, .6); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(8px); font-weight: 600; }
.l-hero .eyebrow-pill svg { color: #fff; }
.l-hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.045em; max-width: 14ch; text-wrap: balance; }
.l-hero h1:lang(am), .l-hero h1:lang(ti) { line-height: 1.3; letter-spacing: 0; }
.l-hero .lead { max-width: 40ch; text-wrap: pretty; }
.l-hero .hero-ctas { justify-content: center; }
.l-hero .btn-ghost:hover { background: #1C1C1C; }
.l-hero .play-dot { background: #fff; color: #0A0A0A; }
.l-hero .facts { justify-content: center; }
.l-collage { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.l-collage::after { content: ''; position: absolute; inset: 0; background: radial-gradient(46% 48% at 50% 50%, rgba(10, 10, 10, .92), rgba(10, 10, 10, 0)); }
.lc { position: absolute; width: clamp(120px, 12vw, 210px); aspect-ratio: 9 / 16; object-fit: cover; object-position: center 22%; border-radius: 14px; opacity: 0;
animation: lc-rise 900ms var(--ease-out) forwards, lc-drift 9s ease-in-out infinite alternate; animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + 900ms); }
.lc1 { left: -1.5%; top: 20%; --d: 120ms; } .lc2 { left: 18%; top: -8%; } .lc3 { left: 9%; bottom: -10%; aspect-ratio: 4 / 5; --d: 240ms; }
.lc4 { right: 12%; top: 38%; --d: 180ms; } .lc5 { right: -1%; top: 6%; --d: 60ms; } .lc6 { right: 7%; bottom: -16%; --d: 300ms; }
@keyframes lc-rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lc-drift { from { translate: 0 0; } to { translate: 0 -10px; } }
@media (max-width: 1100px) { .lc2, .lc4 { display: none; } }
@media (max-width: 760px) {
.l-hero { display: block; padding: 24px 16px 40px; min-height: 0; margin-top: -8px; border-radius: 22px; }
.l-collage { position: relative; inset: auto; overflow: visible; display: flex; justify-content: center; gap: 10px; height: 196px; margin: 0 -16px 20px; z-index: 0; }
.l-collage::after, .lc3 { display: none; }
.lc { position: relative; inset: auto; width: 96px; flex: none; }
.lc1 { rotate: -6deg; top: 16px; } .lc5 { top: 0; } .lc6 { rotate: 6deg; top: 16px; }
}
.l-hero + .statbar { margin-top: calc(-1 * clamp(72px, 8vw, 104px) - 64px); margin-inline: clamp(0px, 4vw, 48px); z-index: 1; }
@media (max-width: 899px) { .l-hero + .statbar { margin-top: calc(-1 * clamp(72px, 8vw, 104px) + 16px); margin-inline: 0; } }
@media (prefers-reduced-motion: reduce) { .lc { animation: none; opacity: 1; } }
/* ---------- landing 2026-10-20: one font, Habesha photos, live language pill, photo categories, payment stage, both themes ---------- */
:root[data-theme="dark"] .l-hero { box-shadow: inset 0 0 0 1px #1F1F1F; }
.live-pill { align-self: center; text-decoration: none; transition: border-color 160ms, background 160ms; display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 6px; border-radius: var(--r-pill); border: 1px solid #3A3A3A; background: rgba(10, 10, 10, .6); backdrop-filter: blur(8px); font-size: var(--fs-sm); font-weight: 600; color: #F5F5F5; min-width: 0; }
.live-pill .faces { display: flex; }
.live-pill .faces img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid #0A0A0A; margin-left: -9px; filter: grayscale(.7) brightness(.8); transition: filter 400ms var(--ease-out), transform 400ms var(--ease-out); }
.live-pill .faces img:first-child { margin-left: 0; }
.live-pill .faces img.on { filter: none; transform: translateY(-3px) scale(1.12); z-index: 1; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: live 2s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.live-pill:hover { border-color: #5A5A5A; background: rgba(26, 26, 26, .8); }
.live-pill > svg { color: #8A8A8A; margin-left: -4px; }
@media (min-width: 760px) { .l-hero + .statbar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.look-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
@media (max-width: 560px) { .look-grid { grid-template-columns: 1fr 1fr; } }
.look { position: relative; display: block; aspect-ratio: 3 / 4.2; border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: var(--mist); cursor: pointer; text-align: left; color: #fff; isolation: isolate; }
.look img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; z-index: -1; transition: transform 700ms var(--ease-out); }
.look::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .78)); }
.look:hover img { transform: scale(1.05); }
.look-copy { position: absolute; left: 18px; right: 56px; bottom: 18px; display: flex; flex-direction: column; gap: 2px; }
.look-copy strong { font-size: var(--fs-lg); line-height: 1.2; }
.look-copy span { font-size: var(--fs-sm); color: rgba(255, 255, 255, .78); }
.look-go { position: absolute; right: 14px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0A0A0A; transition: transform 200ms var(--ease-out); }
.look:hover .look-go { transform: translateX(3px); }
@media (max-width: 520px) { .look { aspect-ratio: 4 / 5; } .look-copy strong { font-size: var(--fs-base); } }
.how-pay { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; }
@media (max-width: 900px) { .how-pay { grid-template-columns: 1fr; } }
.how { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--canvas); }
.how h2, .pay-panel h2 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.03em; }
.how-cta { align-self: flex-start; margin-top: auto; }
.how-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: s; }
.how-steps li { counter-increment: s; display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: var(--fs-lg); line-height: 1.3; }
.how-steps li::before { content: '0' counter(s); flex: none; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sm); color: var(--ink-3); width: 28px; }
.pay-panel { --ink: #F5F5F5; --ink-3: #9A9A9A; --line: #2A2A2A; color: var(--ink); background: #0A0A0A; border-radius: 24px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; position: relative; overflow: hidden; isolation: isolate; }
.pay-panel::before { content: ''; position: absolute; z-index: -1; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); }
:root[data-theme="dark"] .pay-panel { background: #141414; box-shadow: inset 0 0 0 1px #222; }
.pay-panel p { color: #C9C9C9; }
.pay-panel p strong { color: #fff; }
.pay-group { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.pay-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; background: #1A1A1A; border: 1px solid #262626; font-weight: 600; font-size: var(--fs-sm); transition: background 160ms; }
.pay-chip:hover { background: #222; }
.pay-chip .pay-mark { width: 52px; height: 34px; border-radius: 9px; background: #fff; padding: 4px 6px; }
.pay-chip .pay-mark img { width: 100%; height: 100%; }
.pay-note { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: auto; }
.pay-note svg { flex: none; }
.cta-photo { position: relative; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; min-height: 340px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; overflow: hidden; color: #fff; isolation: isolate; }
.cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; }
.cta-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .2) 70%), linear-gradient(transparent 40%, rgba(0, 0, 0, .5)); }
.cta-photo h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.04em; line-height: 1.05; max-width: 14ch; }
.cta-photo p { color: rgba(255, 255, 255, .82); max-width: 40ch; }
.cta-photo .btn-accent { background: #fff; color: #0A0A0A; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .live-pill .faces img { transition: none; } }
/* Sirkul logo: black ink PNG, flipped to white on dark grounds */
.logo img { display: block; width: auto; max-width: none; }
:root[data-theme="dark"] .logo img, .auth-side .logo img { filter: invert(1); }
.brand .logo img { max-height: 44px; }
.foot-word .logo img { max-width: min(100%, 360px); height: auto !important; }
/* header: wordmark on wide screens, the "Sm" monogram on phones (older rules hid the brand's last span) */
.brand > .logo { display: inline-grid !important; max-width: none; overflow: visible; }
.brand > .logo + .logo { display: none !important; }
@media (max-width: 600px) { .brand > .logo:first-child { display: none !important; } .brand > .logo + .logo { display: inline-grid !important; } .brand > .logo + .logo img { height: 46px !important; max-height: none; margin: -6px 0; } }
/* ---------- footer 2026-10-20 (inspo: Little Amps Coffee): framed card, starter-kit card in place of a player, student-work reel ---------- */
.foot-full { --frame: #0A0A0A; background: var(--frame); border: 0; margin-top: 64px; padding: 16px 16px 0; color: var(--ink); }
:root[data-theme="dark"] .foot-full { --frame: #000; }
.foot-card { max-width: 1400px; margin: 0 auto; background: var(--paper); border-radius: 24px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 40px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(320px, 1.1fr); }
:root[data-theme="dark"] .foot-card { background: #141414; }
@media (max-width: 1100px) { .foot-card { grid-template-columns: 1fr 1fr; } .kit-card { grid-column: 1 / -1; } }
@media (max-width: 700px) { .foot-card { grid-template-columns: 1fr; } }
.foot-brand { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.foot-full .foot-word { display: flex; align-items: flex-end; gap: 10px; }
.foot-full .foot-word .logo { width: 280px; max-width: calc(100% - 66px); }
.foot-full .foot-word .logo img { width: 100%; height: auto !important; }
.foot-icon { flex: none; }
.foot-icon { color: var(--ink); transform: rotate(-8deg); margin-bottom: 6px; }
.foot-full .foot-tag { margin: 0; color: var(--ink-2); font-weight: 600; }
.foot-contact { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: var(--fs-sm); }
.foot-contact a, .foot-contact span { color: var(--ink-2); text-decoration: none; }
.foot-contact a:hover { color: var(--ink); }
.foot-chip { display: inline-block; margin-bottom: 8px; padding: 3px 8px; border-radius: 4px; background: var(--ink); color: var(--paper) !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.foot-full .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.foot-full .foot-cols > div:last-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 16px; align-items: baseline; }
.foot-full .foot-cols > div:last-child h3 { width: 100%; }
.foot-full .foot-cols button, .foot-full .foot-cols a { color: var(--ink-2); font-size: var(--fs-base); }
.foot-full .foot-cols button:hover, .foot-full .foot-cols a:hover { color: var(--ink); }
.kit-card { background: #1E1E1E; color: #F5F5F5; border-radius: 18px; overflow: hidden; align-self: start; }
:root[data-theme="dark"] .kit-card { background: #1C1C1C; box-shadow: inset 0 0 0 1px #2A2A2A; }
.kit-top { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 18px 18px 20px; background: #2A2A2A; }
.kit-cover { display: grid; grid-template-columns: 1fr 1fr; width: 120px; height: 120px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.kit-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.kit-head { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding-right: 28px; }
.kit-head h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.03em; line-height: 1.1; }
.kit-head p { color: #B5B5B5; font-size: var(--fs-sm); }
.kit-badge { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; }
.kit-tag { position: absolute; left: 18px; bottom: -11px; padding: 2px 8px; border-radius: 4px; background: #111; font-size: 11px; font-weight: 700; z-index: 1; }
.kit-go { position: absolute; right: 18px; bottom: -24px; z-index: 1; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: #111; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform 160ms var(--ease-out); }
.kit-go:hover { transform: scale(1.06); } .kit-go:active { transform: scale(.96); }
.kit-list { list-style: none; margin: 0; padding: 18px 18px 8px; }
.kit-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 0; }
.kit-list li + li { border-top: 1px solid #2C2C2C; }
.kit-list svg { color: #CFCFCF; }
.kit-n { color: #8A8A8A; font-size: var(--fs-sm); }
.kit-item { display: flex; flex-direction: column; min-width: 0; }
.kit-item strong { font-size: var(--fs-base); font-weight: 600; }
.kit-item span { font-size: 13px; color: #9A9A9A; }
@media (max-width: 420px) { .kit-top { grid-template-columns: 88px minmax(0, 1fr); } .kit-cover { width: 88px; height: 88px; } }
.foot-strip { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 20px 0; }
.foot-bubble { flex: none; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 22px; border-radius: 999px; background: #fff; color: #111; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.foot-bubble strong { font-size: 13px; }
.foot-bubble span { color: #555; letter-spacing: .04em; text-transform: none; font-size: 12px; }
.foot-bubble::after { content: ''; position: absolute; left: 22px; bottom: -6px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.foot-reel { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.foot-reel > div { display: flex; gap: 12px; width: max-content; animation: reel 60s linear infinite; }
.foot-reel:hover > div { animation-play-state: paused; }
.foot-reel img { width: 120px; height: 120px; flex: none; object-fit: cover; object-position: center 25%; border-radius: 10px; }
@keyframes reel { to { transform: translateX(calc(-50% - 6px)); } }
@media (max-width: 600px) { .foot-strip { flex-direction: column; align-items: stretch; } .foot-bubble { align-self: flex-start; } .foot-reel img { width: 96px; height: 96px; } }
.foot-bar { max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 14px 0 calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #1F1F1F; color: #9A9A9A; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 899px) { .foot-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
.foot-credits summary { cursor: pointer; list-style: none; } .foot-credits summary::-webkit-details-marker { display: none; }
.foot-credits summary:hover { color: #fff; }
.foot-credits p { margin-top: 8px; max-width: 70ch; text-transform: none; letter-spacing: 0; line-height: 1.5; }
.foot-credits a { color: #C9C9C9; }
@media (prefers-reduced-motion: reduce) { .foot-reel > div { animation: none; } }
@media (max-width: 480px) {
.live-pill { font-size: 13px; padding-right: 12px; white-space: nowrap; }
.live-pill .faces img:nth-child(n+3) { display: none; }
.look-go { display: none; }
.look-copy { right: 14px; left: 14px; bottom: 14px; }
}

View File

@ -3,6 +3,7 @@ import { useEffect, useRef, useState, type ReactNode } from 'react';
import type { Course, Locale } from '@lms/data';
import { useApp } from './store';
import { tr } from './domain';
import { LOGO_MARK, LOGO_WORDMARK } from './brandLogo';
const PATHS: Record<string, string> = {
home: 'M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z',
@ -49,6 +50,8 @@ const PATHS: Record<string, string> = {
logout: 'M15 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4M10 17l5-5-5-5M15 12H3',
sparkle: 'M12 3l2 6 6 2-6 2-2 6-2-6-6-2 6-2z',
brush: 'M14 4l6 6-8 8-6-6zM6 12l-3 7 7-3',
moon: 'M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z',
sun: 'M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4',
};
export function Icon({ name, size = 20, label }: { name: keyof typeof PATHS | string; size?: number; label?: string }) {
@ -59,61 +62,24 @@ export function Icon({ name, size = 20, label }: { name: keyof typeof PATHS | st
);
}
// Placeholder brand mark until the real logo arrives: navy tile, frosted-blue wave, punch-red dot.
export function Logo({ size = 34 }: { size?: number }) {
return (
<span className="logo" aria-hidden>
<svg width={size} height={size} viewBox="0 0 34 34">
<rect width="34" height="34" rx="10" fill="#1D3557" />
<path d="M7 22c3.5-6 7-6 10 0s6.5 6 10 0" fill="none" stroke="#A8DADC" strokeWidth="3" strokeLinecap="round" />
<circle cx="23.5" cy="11" r="3.5" fill="#E63946" />
</svg>
</span>
);
// Sirkul logo: the full wordmark, or just the "Sm" monogram where space is tight. Height drives the size.
export function Logo({ size = 34, mark = false }: { size?: number; mark?: boolean }) {
return <span className="logo" aria-hidden><img src={mark ? LOGO_MARK : LOGO_WORDMARK} alt="" style={{ height: mark ? size : size * 1.25 }} /></span>;
}
// Stand-in lesson video until real uploads exist: Blender's openly licensed "Big Buck Bunny" on Vimeo.
export const VIMEO_ORIGIN = 'https://player.vimeo.com';
export const VIMEO_PLACEHOLDER = `${VIMEO_ORIGIN}/video/1084537?dnt=1&title=0&byline=0&portrait=0`;
// Footer art: an eyeshadow palette. Twelve pans in brand and skin shades; a white brush and compact mirror sit
// under the case's grid lines so the shapes break across tiles (the reference's cut-paper look).
const PANS = ['#E63946', '#F5AFB5', '#A8DADC', '#E9B8A7', '#457B9D', '#F1FAEE', '#C98B6B', '#FAD7DA', '#315A93', '#8E4B45', '#70C3C6', '#CB1928'];
export function MakeupBox() {
const W = 92, H = 92, G = 6, P = 14; // tile size, gap, case padding
return (
<div className="foot-box" aria-hidden>
<svg viewBox={`0 0 ${P * 2 + W * 3 + G * 2} ${P * 2 + H * 4 + G * 3}`} role="presentation">
<defs>
<radialGradient id="pan-shine" cx="35%" cy="30%" r="70%"><stop offset="0" stopColor="#fff" stopOpacity=".55" /><stop offset=".45" stopColor="#fff" stopOpacity="0" /></radialGradient>
</defs>
<rect width="100%" height="100%" rx="22" fill="#1D3557" />
{PANS.map((c, i) => {
const x = P + (i % 3) * (W + G), y = P + Math.floor(i / 3) * (H + G);
return (
<g key={i}>
<rect x={x} y={y} width={W} height={H} rx="6" fill={c} />
<circle cx={x + W / 2} cy={y + H / 2} r={W * 0.34} fill={c} stroke="rgba(0,0,0,.12)" strokeWidth="2" />
<circle cx={x + W / 2} cy={y + H / 2} r={W * 0.34} fill="url(#pan-shine)" />
</g>
);
})}
<g fill="#fff">
<g transform="rotate(-40 160 220)">
<rect x="10" y="206" width="180" height="28" rx="14" />
<rect x="184" y="198" width="44" height="44" rx="6" />
<path d="M226 192 C 290 176, 340 200, 352 220 C 340 240, 290 264, 226 248 Z" />
</g>
<circle cx="262" cy="64" r="44" fill="none" stroke="#fff" strokeWidth="12" />
<path d="M40 404 a40 40 0 0 1 80 0 Z" />
</g>
<g fill="#1D3557">
{[1, 2].map((k) => <rect key={'v' + k} x={P + k * W + (k - 1) * G} y={0} width={G} height="100%" />)}
{[1, 2, 3].map((k) => <rect key={'h' + k} x={0} y={P + k * H + (k - 1) * G} width="100%" height={G} />)}
</g>
</svg>
</div>
);
// Makeup icons from IconPark Outline (ByteDance, Apache-2.0), via iconify.design. 48-unit grid, 4-unit stroke.
const KIT: Record<string, ReactNode> = {
brush: <><path d="m16.1 25.829l22.627-19.8s2.12-2.12 4.242 0c2.121 2.122 0 4.243 0 4.243L23.17 32.9z" /><path strokeLinecap="round" d="m22.464 20.879l5.657 5.657" /><path d="m5.493 30.778l10.607-4.95l7.07 7.072l-4.95 10.606s-4.95.707-9.192-3.535c-4.243-4.243-3.536-9.193-3.536-9.193Z" /><path strokeLinecap="round" d="m6.908 36.435l4.95-2.121m.707 7.778l1.415-2.828" /><path d="m18.93 23.354l2.828-2.475l2.828-2.475m6.01 6.01l-2.475 2.828l-2.475 2.829" /></>,
foundation: <path strokeLinecap="round" d="M13 19a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v19s0 6-6 6h-8c-6 0-6-6-6-6zm5-7h10v5H18zm0 0V9c0-3 3-5 6-5h11s-7 2-7 6v2" />,
lipstick: <path strokeLinecap="round" d="M29 24h12v20H29zM7 24h14v20H7zm3-12.545V24h8V4c-6.5 0-8 5.636-8 7.454M7 32h14" />,
brow: <><path d="M24 40c9.941 0 18-10 18-10s-8.059-10-18-10S6 30 6 30s8.059 10 18 10Z" /><path d="M24 34a4 4 0 1 0 0-8a4 4 0 0 0 0 8Zm4-28c-7 0-18 3.5-21 6s-1 7 1 6s15.2-5.8 20-7s11.667.833 14 2c-2.333-2-7-7-14-7Z" /></>,
mirror: <><circle cx="24" cy="17" r="13" /><path strokeLinecap="round" d="M42 17c0 9.941-8.059 18-18 18S6 26.941 6 17m36 0h-4m-28 0H6m24 27H18m6 0v-8" /></>,
};
export function KitIcon({ name, size = 24 }: { name: keyof typeof KIT | string; size?: number }) {
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" stroke="currentColor" strokeWidth="4" strokeLinejoin="round" aria-hidden>{KIT[name]}</svg>;
}
const TONES = ['rose', 'clay', 'plum', 'sand', 'sage', 'ink'];

View File

@ -11,7 +11,8 @@
"demoBanner": "ማሳያ — ክፍያ፣ ኤስኤምኤስ እና ኢሜይል የማስመሰያ ናቸው።",
"language": "ቋንቋ",
"saveFailed": "ማስቀመጥ አልተቻለም። ግንኙነትዎን አረጋግጠው እንደገና ይሞክሩ።",
"readOnly": "መመልከት ይችላሉ፣ ነገር ግን ይህ መለያ በማሳያው ላይ ለውጥ ማስቀመጥ አይችልም።"
"readOnly": "መመልከት ይችላሉ፣ ነገር ግን ይህ መለያ በማሳያው ላይ ለውጥ ማስቀመጥ አይችልም።",
"theme": "ጨለማ ገጽታ"
},
"nav": {
"home": "መነሻ",
@ -27,7 +28,7 @@
"progress": "የእኔ እድገት"
},
"landing": {
"title": "ሙያዊ ሜካፕን በራስዎ ቋንቋ ይማሩ",
"title": "ከሥራ ላይ ካሉ ባለሙያዎች ሙያዊ ሜካፕ ይማሩ",
"lead": "በሥራ ላይ ካሉ ባለሙያዎች የቪዲዮ ኮርሶች። አንድ ጊዜ ይክፈሉ፣ ኮርሱ ለዘላለም የእርስዎ ነው፣ በስልክዎ ይመልከቱ።",
"browse": "ኮርሶችን ይመልከቱ",
"start": "መለያ ይፍጠሩ",
@ -53,7 +54,13 @@
"viewAll": "ሁሉንም ኮርሶች ይመልከቱ",
"featuredLead": "ከባለሙያ የሜካፕ አርቲስቶች የተመረጡ ኮርሶች።",
"ctaTitle": "በነጻ የቅድመ እይታ ትምህርት ይጀምሩ",
"ctaBody": "ቅድመ እይታ ለማየት መለያ አያስፈልግም። ሲዘጋጁ ብቻ ይክፈሉ።"
"ctaBody": "ቅድመ እይታ ለማየት መለያ አያስፈልግም። ሲዘጋጁ ብቻ ይክፈሉ።",
"payLead": "ለእያንዳንዱ ኮርስ አንድ ጊዜ ይክፈሉ። ወርሃዊ ክፍያ የለም።",
"payLocal": "የሞባይል ገንዘብ",
"payCards": "የባንክ ካርዶች",
"payAbroad": "ከውጭ ሀገር",
"payNote": "በአሪፍፔይ ደህንነቱ በተጠበቀ መንገድ ይክፈሉ። ክፍያው እንደተጠናቀቀ ኮርሱ ይከፈታል።",
"waitPill": "በቅርቡ ይከፈታል · የተጠባባቂ ዝርዝሩን ይቀላቀሉ"
},
"auth": {
"phoneTitle": "በስልክዎ ይግቡ",
@ -148,7 +155,7 @@
"lifetime": "ለዘላለም",
"share": "አጋራ",
"linkCopied": "ሊንኩ ተቀድቷል",
"teaches": "በMakeUp Academy {n, plural, one {# ኮርስ} other {# ኮርሶች}}",
"teaches": "በSirkul Makeup {n, plural, one {# ኮርስ} other {# ኮርሶች}}",
"viewDetails": "ዝርዝር ይመልከቱ"
},
"checkout": {
@ -324,6 +331,22 @@
"instructors": "አሠልጣኝ",
"learn": "ትምህርት",
"support": "እገዛ",
"rights": "መብቱ በሕግ የተጠበቀ ነው"
"rights": "መብቱ በሕግ የተጠበቀ ነው",
"contact": "ያግኙን",
"waitlist": "የተጠባባቂ ዝርዝሩን ይቀላቀሉ",
"kitTitle": "የመጀመሪያ ኪት",
"kitSub": "በመጀመሪያ ኮርስዎ የሚጠቀሙባቸው",
"kitCount": "{n} እቃዎች",
"kit1": "ፋውንዴሽንና ኮንሲለር",
"kit1Note": "መሠረት",
"kit2": "ብሩሾችና ስፖንጆች",
"kit2Note": "መሣሪያዎች",
"kit3": "የቅንድብ እርሳስና ጄል",
"kit3Note": "ቅንድብ",
"kit4": "ሊፕስቲክና ላይነር",
"kit4Note": "ከንፈር",
"workTitle": "የተማሪዎች ሥራ",
"workSub": "በሲርኩል ተማሪዎች የተሠሩ",
"credits": "የፎቶ ምንጮች"
}
}

View File

@ -11,7 +11,8 @@
"demoBanner": "Demo — payments, SMS and email are simulated.",
"language": "Language",
"saveFailed": "Couldn't save. Check your connection and try again.",
"readOnly": "You can look around, but this account can't save changes in the demo."
"readOnly": "You can look around, but this account can't save changes in the demo.",
"theme": "Dark mode"
},
"nav": {
"home": "Home",
@ -27,7 +28,7 @@
"progress": "My progress"
},
"landing": {
"title": "Learn professional makeup, in your language",
"title": "Learn professional makeup from working artists",
"lead": "Video courses from working artists. Pay once, keep the course for life, and watch on your phone.",
"browse": "Browse courses",
"start": "Create your account",
@ -53,7 +54,13 @@
"viewAll": "View all courses",
"featuredLead": "Hand-picked courses from working makeup artists.",
"ctaTitle": "Start with a free preview lesson",
"ctaBody": "No account needed to watch a preview. Pay only when you are ready."
"ctaBody": "No account needed to watch a preview. Pay only when you are ready.",
"payLead": "One payment per course. No subscription.",
"payLocal": "Mobile money",
"payCards": "Bank cards",
"payAbroad": "From abroad",
"payNote": "Secure checkout through ArifPay. The course unlocks the moment payment clears.",
"waitPill": "Opening soon · Join the waitlist"
},
"auth": {
"phoneTitle": "Sign in with your phone",
@ -148,7 +155,7 @@
"lifetime": "Lifetime",
"share": "Share",
"linkCopied": "Link copied",
"teaches": "{n, plural, one {# course} other {# courses}} on MakeUp Academy",
"teaches": "{n, plural, one {# course} other {# courses}} on Sirkul Makeup",
"viewDetails": "View details"
},
"checkout": {
@ -324,6 +331,22 @@
"instructors": "Instructor",
"learn": "Learn",
"support": "Support",
"rights": "All rights reserved"
"rights": "All rights reserved",
"contact": "Get in touch",
"waitlist": "Join the waitlist",
"kitTitle": "Starter kit",
"kitSub": "What you’ll use in your first course",
"kitCount": "{n} items",
"kit1": "Foundation & concealer",
"kit1Note": "Base",
"kit2": "Brushes & sponges",
"kit2Note": "Tools",
"kit3": "Brow pencil & gel",
"kit3Note": "Brows",
"kit4": "Lipstick & liner",
"kit4Note": "Lips",
"workTitle": "Student work",
"workSub": "Looks by Sirkul students",
"credits": "Photo credits"
}
}

View File

@ -11,7 +11,8 @@
"demoBanner": "Agarsiisa — kaffaltiin, SMS fi imeeliin fakkeessa.",
"language": "Afaan",
"saveFailed": "Olkaa'uun hin danda'amne. Walqunnamtii kee mirkaneessiitii irra deebi'ii yaali.",
"readOnly": "Ilaaluu dandeessa, garuu herregni kun agarsiisa keessatti jijjiirama olkaa'uu hin danda'u."
"readOnly": "Ilaaluu dandeessa, garuu herregni kun agarsiisa keessatti jijjiirama olkaa'uu hin danda'u.",
"theme": "Haala dukkanaa"
},
"nav": {
"home": "Mana",
@ -27,7 +28,7 @@
"progress": "My progress"
},
"landing": {
"title": "Meekaappii ogummaa afaan keetiin baradhu",
"title": "Ogeeyyii hojii irra jiran irraa meekaappii ogummaa baradhu",
"lead": "Koorsiiwwan viidiyoo ogeeyyii hojii irra jiran irraa. Al tokko kaffali, koorsiin bara baraan kan kee ta'a, bilbila keetiin ilaali.",
"browse": "Koorsiiwwan ilaali",
"start": "Herrega uumi",
@ -53,7 +54,13 @@
"viewAll": "View all courses",
"featuredLead": "Hand-picked courses from working makeup artists.",
"ctaTitle": "Start with a free preview lesson",
"ctaBody": "No account needed to watch a preview. Pay only when you are ready."
"ctaBody": "No account needed to watch a preview. Pay only when you are ready.",
"payLead": "Koorsii tokkoof yeroo tokko kaffali. Kaffaltii jiaa hin jiru.",
"payLocal": "Maallaqa mobaayilaa",
"payCards": "Kaardii baankii",
"payAbroad": "Biyya alaa irraa",
"payNote": "ArifPay keessaan nageenyaan kaffali. Kaffaltiin akkuma xumurameen koorsiin ni banama.",
"waitPill": "Dhiyootti banama · Tarree eegdotaatti makami"
},
"auth": {
"phoneTitle": "Bilbila keetiin seeni",
@ -148,7 +155,7 @@
"lifetime": "Lifetime",
"share": "Share",
"linkCopied": "Link copied",
"teaches": "{n, plural, one {# course} other {# courses}} on MakeUp Academy",
"teaches": "{n, plural, one {# course} other {# courses}} on Sirkul Makeup",
"viewDetails": "View details"
},
"checkout": {
@ -324,6 +331,22 @@
"instructors": "Leenjisaa",
"learn": "Barnoota",
"support": "Deeggarsa",
"rights": "Mirgi seeraan eegameera"
"rights": "Mirgi seeraan eegameera",
"contact": "Nu qunnamaa",
"waitlist": "Tarree eegdotaatti makami",
"kitTitle": "Meeshaa jalqabaa",
"kitSub": "Koorsii kee jalqabaa irratti kan itti fayyadamtu",
"kitCount": "Meeshaalee {n}",
"kit1": "Foundation fi concealer",
"kit1Note": "Bu’uura",
"kit2": "Burushii fi sponjii",
"kit2Note": "Meeshaalee",
"kit3": "Qalama fi jeelii mataa ijaa",
"kit3Note": "Mataa ijaa",
"kit4": "Lipstick fi liner",
"kit4Note": "Afaan",
"workTitle": "Hojii barattootaa",
"workSub": "Kan barattoota Sirkul",
"credits": "Madda suuraalee"
}
}

View File

@ -11,7 +11,8 @@
"demoBanner": "መርኣያ — ክፍሊት፣ ኤስኤምኤስን ኢመይልን ናይ ምምሳል እዮም።",
"language": "ቋንቋ",
"saveFailed": "ክዕቀብ ኣይከኣለን። ርክብካ ኣረጋግጽካ እንደገና ፈትን።",
"readOnly": "ክትርኢ ትኽእል ኢኻ፣ እዚ ሕሳብ ግን ኣብ መርኣያ ለውጢ ክዕቅብ ኣይክእልን።"
"readOnly": "ክትርኢ ትኽእል ኢኻ፣ እዚ ሕሳብ ግን ኣብ መርኣያ ለውጢ ክዕቅብ ኣይክእልን።",
"theme": "ጸልማት ገጽ"
},
"nav": {
"home": "መበገሲ",
@ -27,7 +28,7 @@
"progress": "My progress"
},
"landing": {
"title": "ሞያዊ ሜካፕ ብቋንቋኻ ተማሃር",
"title": "ካብ ኣብ ስራሕ ዘለዉ ሞያውያን ሞያዊ ሜካፕ ተማሃር",
"lead": "ካብ ኣብ ስራሕ ዘለዉ ክኢላታት ናይ ቪድዮ ኮርሳት። ሓንሳብ ክፈል፣ ኮርሱ ንዘለኣለም ናትካ እዩ፣ ብተሌፎንካ ርአ።",
"browse": "ኮርሳት ርአ",
"start": "ሕሳብ ፍጠር",
@ -53,7 +54,13 @@
"viewAll": "View all courses",
"featuredLead": "Hand-picked courses from working makeup artists.",
"ctaTitle": "Start with a free preview lesson",
"ctaBody": "No account needed to watch a preview. Pay only when you are ready."
"ctaBody": "No account needed to watch a preview. Pay only when you are ready.",
"payLead": "ንነፍሲ ወከፍ ኮርስ ሓንሳብ ክፈል። ወርሓዊ ክፍሊት የለን።",
"payLocal": "ናይ ሞባይል ገንዘብ",
"payCards": "ናይ ባንኪ ካርድታት",
"payAbroad": "ካብ ወጻኢ",
"payNote": "ብኣሪፍፔይ ብውሑስ መንገዲ ክፈል። ክፍሊት ምስ ተወድአ ኮርሱ ይኽፈት።",
"waitPill": "ቀልጢፉ ይኽፈት · ናብ ዝርዝር ተጸበይቲ ተጸንበር"
},
"auth": {
"phoneTitle": "ብተሌፎንካ እቶ",
@ -148,7 +155,7 @@
"lifetime": "Lifetime",
"share": "Share",
"linkCopied": "Link copied",
"teaches": "{n, plural, one {# course} other {# courses}} on MakeUp Academy",
"teaches": "{n, plural, one {# course} other {# courses}} on Sirkul Makeup",
"viewDetails": "View details"
},
"checkout": {
@ -324,6 +331,22 @@
"instructors": "መምህር",
"learn": "ትምህርቲ",
"support": "ሓገዝ",
"rights": "መሰል ብሕጊ ዝተሓለወ እዩ"
"rights": "መሰል ብሕጊ ዝተሓለወ እዩ",
"contact": "ርኸቡና",
"waitlist": "ናብ ዝርዝር ተጸበይቲ ተጸንበር",
"kitTitle": "መጀመርታ ኪት",
"kitSub": "ኣብ ቀዳማይ ኮርስካ እትጥቀመሉ",
"kitCount": "{n} ኣቑሑ",
"kit1": "ፋውንዴሽንን ኮንሲለርን",
"kit1Note": "መሰረት",
"kit2": "ብሩሻትን ስፖንጅን",
"kit2Note": "መሳርሒታት",
"kit3": "ናይ ቅንድቢ ርሳስን ጄልን",
"kit3Note": "ቅንድቢ",
"kit4": "ሊፕስቲክን ላይነርን",
"kit4Note": "ከናፍር",
"workTitle": "ስራሕ ተምሃሮ",
"workSub": "ብተምሃሮ ሲርኩል ዝተሰርሑ",
"credits": "ምንጪ ስእልታት"
}
}

View File

@ -2,11 +2,11 @@
* Waitlist receiver for apps/demo/public/waitlist/index.html → one row per signup in a Google Sheet.
*
* Setup (once, in the Google account that should own the list):
* 1. Create a Google Sheet, e.g. "MakeUp Academy waitlist".
* 1. Create a Google Sheet, e.g. "Sirkul Makeup waitlist".
* 2. Extensions → Apps Script. Replace Code.gs with this file and save.
* 3. Deploy → New deployment → type "Web app". Execute as: Me. Who has access: Anyone.
* 4. Authorize, then copy the Web app URL (ends in /exec).
* 5. Paste it into ENDPOINT in apps/demo/public/waitlist/index.html, then commit and deploy.
* 5. Paste it into ENDPOINT (the page POSTs signups and GETs the count) in apps/demo/public/waitlist/index.html, then commit and deploy.
* After editing this script, use Deploy → Manage deployments → Edit → New version (the URL stays the same).
*/
const SHEET_NAME = 'Signups';
@ -32,6 +32,12 @@ function doPost(e) {
return reply({ ok: true });
}
/** Public signup count for the page's "people waiting" pill. Only the number leaves the sheet. */
function doGet() {
const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(SHEET_NAME);
return reply({ ok: true, count: sheet ? Math.max(0, sheet.getLastRow() - 1) : 0 });
}
/** Server-side check: the page validates too, but anyone can POST here. */
function clean(d) {
const name = String(d.name || '').trim().slice(0, 80);

View File

@ -8,7 +8,7 @@ const ctx = {
LockService: { getScriptLock: () => ({ waitLock() {}, releaseLock() {} }) },
ContentService: { MimeType: { JSON: 'json' }, createTextOutput: (t) => ({ setMimeType: () => JSON.parse(t) }) },
};
vm.runInNewContext(fs.readFileSync(new URL('./waitlist-apps-script.gs', import.meta.url), 'utf8') + '\nthis.doPost = doPost;', ctx);
vm.runInNewContext(fs.readFileSync(new URL('./waitlist-apps-script.gs', import.meta.url), 'utf8') + '\nthis.doPost = doPost; this.doGet = doGet;', ctx);
const post = (d) => ctx.doPost({ postData: { contents: JSON.stringify(d) } });
const ok = { name: 'Selam Tesfaye', email: 'Selam@Example.com', phone: '+251911234567', locale: 'en' };
@ -22,4 +22,5 @@ assert.deepEqual(post({ ...ok, name: ' ' }), { ok: false, error: 'name' });
post({ ...ok, email: 'f@y.co', name: '=HYPERLINK("x")' }); assert.equal(rows.at(-1)[1], '\'=HYPERLINK("x")', 'formula neutralised');
const n = rows.length; assert.deepEqual(post({ ...ok, email: 'bot@y.co', company: 'spam' }), { ok: true }); assert.equal(rows.length, n, 'honeypot dropped');
assert.deepEqual(ctx.doPost({ postData: { contents: '{bad' } }), { ok: false, error: 'bad_json' });
assert.deepEqual(ctx.doGet(), { ok: true, count: rows.length - 1 }, 'count excludes the header');
console.log('waitlist checks: all passed');

View File

@ -2,5 +2,6 @@
"installCommand": "npx -y pnpm@9 install --frozen-lockfile",
"buildCommand": "npx -y pnpm@9 --filter demo build && node tools/vercel-build.mjs",
"outputDirectory": "apps/demo/out",
"framework": null
"framework": null,
"rewrites": [{ "source": "/waitlist", "destination": "/waitlist/index.html" }]
}