Merge branch 'landing-refresh': Sirkul rebrand, landing refresh, mobile-first pass
1
.gitignore
vendored
|
|
@ -6,3 +6,4 @@ dist
|
||||||
.env*
|
.env*
|
||||||
!.env.example
|
!.env.example
|
||||||
.vercel
|
.vercel
|
||||||
|
.DS_Store
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@ import type { ReactNode } from 'react';
|
||||||
import { readFileSync } from 'node:fs';
|
import { readFileSync } from 'node:fs';
|
||||||
import { join } from 'node:path';
|
import { join } from 'node:path';
|
||||||
|
|
||||||
// Placeholder favicon matching the <Logo /> mark in packages/features/src/ui.tsx.
|
import { LOGO_MARK } from '@lms/features/src/brandLogo';
|
||||||
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>')}`;
|
|
||||||
|
|
||||||
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
|
// 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.
|
// 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 }) {
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" data-theme="light">
|
<html lang="en" data-theme="dark" suppressHydrationWarning>
|
||||||
<head>
|
<head>
|
||||||
{/* next/font emits separate files, so fonts come from Google Fonts (allowed by the artifact CSP, §18.5) */}
|
{/* 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.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
<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 }} />
|
<style dangerouslySetInnerHTML={{ __html: css }} />
|
||||||
|
{/* Saved theme, else dark (the brand default); runs before paint so there's no flash. */}
|
||||||
|
<script dangerouslySetInnerHTML={{ __html: "try{var t=localStorage.getItem('theme')||'dark';document.documentElement.dataset.theme=t}catch(e){}" }} />
|
||||||
</head>
|
</head>
|
||||||
<body>{children}</body>
|
<body>{children}</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@ export default {
|
||||||
output: 'export',
|
output: 'export',
|
||||||
images: { unoptimized: true },
|
images: { unoptimized: true },
|
||||||
trailingSlash: false,
|
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'],
|
transpilePackages: ['@lms/data', '@lms/features', '@lms/i18n'],
|
||||||
webpack: (config, { isServer }) => {
|
webpack: (config, { isServer }) => {
|
||||||
if (!isServer) {
|
if (!isServer) {
|
||||||
|
|
|
||||||
BIN
apps/demo/public/brand/sirkul-logo.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
apps/demo/public/brand/sirkul-mark.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
apps/demo/public/photos/bridal.jpg
Normal file
|
After Width: | Height: | Size: 242 KiB |
BIN
apps/demo/public/photos/clients.jpg
Normal file
|
After Width: | Height: | Size: 205 KiB |
BIN
apps/demo/public/photos/foundations.jpg
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
apps/demo/public/photos/glam.jpg
Normal file
|
After Width: | Height: | Size: 333 KiB |
BIN
apps/demo/public/photos/habesha-bride.jpg
Normal file
|
After Width: | Height: | Size: 412 KiB |
BIN
apps/demo/public/photos/habesha-eritrean.jpg
Normal file
|
After Width: | Height: | Size: 251 KiB |
BIN
apps/demo/public/photos/habesha-harari.jpg
Normal file
|
After Width: | Height: | Size: 148 KiB |
BIN
apps/demo/public/photos/habesha-tigray.jpg
Normal file
|
After Width: | Height: | Size: 395 KiB |
BIN
apps/demo/public/photos/habesha-trad.jpg
Normal file
|
After Width: | Height: | Size: 363 KiB |
BIN
apps/demo/public/photos/hero.jpg
Normal file
|
After Width: | Height: | Size: 351 KiB |
BIN
apps/demo/public/photos/skin.jpg
Normal file
|
After Width: | Height: | Size: 239 KiB |
|
|
@ -3,270 +3,346 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||||
<title>MakeUp Academy — Join the waitlist</title>
|
<title>Sirkul Makeup — 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="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="#FFF8F6" />
|
<meta name="theme-color" content="#0A0A0A" />
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
<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="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="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="icon" href="/brand/sirkul-mark.png" />
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--ink: #1D3557; --ink-2: #4A5D78; --ink-3: #7A8799;
|
--bg: #0A0A0A; --raise: #141414; --field: #1A1A1A; --line: #2A2A2A;
|
||||||
--bg: #FFF8F6; --card: #FFFFFF; --line: #F0E2DE; --blush: #FAD7DA; --blush-2: #FDECEC; --nude: #F3E3DA;
|
--ink: #F5F5F5; --ink-2: #C9C9C9; --ink-3: #8A8A8A; --bad: #FFB4AB;
|
||||||
--accent: #E63946; --accent-hover: #CB1928; --ok: #2E7D5B; --ok-soft: #E3F4EA;
|
|
||||||
--sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
--sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
||||||
--serif: 'Instrument Serif', Georgia, serif;
|
--eth: 'Noto Sans Ethiopic', var(--sans);
|
||||||
--eth: 'Noto Serif Ethiopic', serif;
|
|
||||||
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
--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: dark;
|
||||||
color-scheme: light;
|
|
||||||
}
|
}
|
||||||
* { box-sizing: border-box; }
|
* { box-sizing: border-box; }
|
||||||
html { scroll-behavior: smooth; }
|
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; }
|
a { color: inherit; }
|
||||||
button, input { font: inherit; color: inherit; }
|
button, input { font: inherit; color: inherit; }
|
||||||
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
|
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
|
||||||
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
|
|
||||||
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
.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 ---------- */
|
||||||
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
|
.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; gap: 10px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
|
.brand { display: inline-flex; align-items: center; text-decoration: none; }
|
||||||
.pills { display: flex; gap: 8px; }
|
.brand img { height: 46px; width: auto; filter: invert(1); }
|
||||||
.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; }
|
@media (max-width: 420px) { .brand img { height: 36px; } }
|
||||||
.pill.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
|
.links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
|
||||||
@media (max-width: 720px) { .pills { display: none; } }
|
.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: photo cards float around a centered pitch ---------- */
|
||||||
.hero { position: relative; text-align: center; padding: 40px 0 0; }
|
.hero { position: relative; min-height: max(min(100svh, 980px), 760px); display: grid; place-items: center; padding: 120px 16px 96px; overflow: hidden; isolation: isolate; }
|
||||||
.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); }
|
.collage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
|
||||||
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--blush); margin-left: 6px; }
|
.card { position: absolute; width: var(--w, 12.5vw); max-width: 250px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #1A1A1A;
|
||||||
h1 { font-size: clamp(42px, 7.6vw, 88px); line-height: 1; letter-spacing: -.035em; font-weight: 600; margin: 22px auto 0; max-width: 13ch; }
|
opacity: 0; animation: rise 900ms var(--ease-out) forwards, drift 9s ease-in-out infinite alternate; animation-delay: var(--d), calc(var(--d) + 900ms); }
|
||||||
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent); }
|
.card.wide { aspect-ratio: 4 / 5; }
|
||||||
.am { font-family: var(--eth); font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-2); margin: 16px 0 0; }
|
.card img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
|
||||||
.lead { max-width: 560px; margin: 14px auto 0; color: var(--ink-2); font-size: clamp(16px, 1.9vw, 18px); }
|
.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 */
|
/* ---------- form: email first, then name + phone ---------- */
|
||||||
.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; }
|
.join { width: min(560px, 100%); margin: 32px 0 0; scroll-margin-top: 120px; }
|
||||||
.fields { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
|
.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; }
|
||||||
.fields .full { grid-column: 1 / -1; }
|
.bar:focus-within { border-color: #4A4A4A; box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
|
||||||
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .join { padding: 16px; border-radius: 20px; } }
|
.bar input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 16px; min-height: 48px; font-size: 16px; outline: none; }
|
||||||
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; }
|
|
||||||
input::placeholder { color: var(--ink-3); }
|
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); }
|
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; animation: rise 500ms var(--ease-out); }
|
||||||
input[aria-invalid="true"] { border-color: var(--accent); }
|
.more[hidden] { display: none; }
|
||||||
.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; }
|
.more input { min-height: 56px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); font-size: 16px; outline: none; }
|
||||||
.btn:hover { background: #142844; }
|
.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:active { transform: scale(0.97); }
|
||||||
.btn[disabled] { opacity: .7; cursor: progress; }
|
.btn[disabled] { opacity: .7; cursor: progress; }
|
||||||
.btn.red { background: var(--accent); } .btn.red:hover { background: var(--accent-hover); }
|
.fine { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
|
||||||
.fine { margin: 12px 2px 0; font-size: 13px; color: var(--ink-3); text-align: center; }
|
.err { margin: 12px 0 0; font-size: 14px; color: var(--bad); font-weight: 600; }
|
||||||
.err { margin: 10px 2px 0; font-size: 14px; color: var(--accent-hover); font-weight: 600; min-height: 0; }
|
|
||||||
.err:empty { display: none; }
|
.err:empty { display: none; }
|
||||||
.done { text-align: center; padding: 18px 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 { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--ok-soft); color: var(--ok); }
|
.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: 24px; letter-spacing: -.02em; }
|
.done h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
|
||||||
.done p { margin: 6px 0 0; color: var(--ink-2); }
|
.done p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
|
||||||
.done, .join form { transition: opacity 250ms var(--ease-out), translate 250ms var(--ease-out); }
|
|
||||||
@starting-style { .done { opacity: 0; translate: 0 8px; } }
|
|
||||||
|
|
||||||
/* courses at launch: shade swatches instead of logos (inspo: Hotle "trusted by" row) */
|
@media (max-width: 1100px) { .c2, .c4 { display: none; } .card { --w: 17vw; } .c1 { top: 12%; } .c6 { right: -2%; } }
|
||||||
.section { padding: 72px 0 0; }
|
@media (max-width: 760px) {
|
||||||
.center { text-align: center; }
|
.hero { min-height: 0; padding: 92px 16px 56px; }
|
||||||
h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; margin: 0; }
|
.collage { position: relative; inset: auto; display: flex; justify-content: center; gap: 10px; height: 214px; margin: 0 -16px 20px; z-index: 0; }
|
||||||
.sub { color: var(--ink-2); margin: 10px auto 0; max-width: 520px; }
|
.collage::after { display: none; }
|
||||||
.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; }
|
.card { position: relative; inset: auto; width: 98px; flex: none; }
|
||||||
@media (max-width: 760px) { .shades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
.c1 { rotate: -6deg; top: 18px; } .c5 { top: 0; } .c6 { rotate: 6deg; top: 18px; }
|
||||||
.shade { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
|
.c3 { display: none; }
|
||||||
.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); }
|
.hero { display: block; }
|
||||||
.shade strong { font-size: 15px; line-height: 1.3; }
|
.pitch { margin: 0 auto; }
|
||||||
.shade span { font-size: 13px; color: var(--ink-3); }
|
.more { grid-template-columns: 1fr; }
|
||||||
|
}
|
||||||
|
@media (max-width: 420px) {
|
||||||
|
.bar { flex-direction: column; border-radius: 24px; }
|
||||||
|
.bar input { min-height: 48px; }
|
||||||
|
}
|
||||||
|
|
||||||
/* why */
|
/* ---------- sections ---------- */
|
||||||
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
|
.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; } }
|
@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 > div { background: var(--raise); border: 1px solid #1F1F1F; border-radius: 20px; padding: 28px; }
|
||||||
.why .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blush-2); color: var(--accent); }
|
.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: 16px 0 4px; font-size: 18px; letter-spacing: -.01em; }
|
.why h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
|
||||||
.why p { margin: 0; color: var(--ink-2); font-size: 15px; }
|
.why p { margin: 0; color: var(--ink-2); font-size: 15px; }
|
||||||
|
|
||||||
/* faq (native details) */
|
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; }
|
||||||
.faq { max-width: 720px; margin: 0 auto; }
|
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
|
||||||
.faq h2 { margin-bottom: 20px; }
|
details { border-bottom: 1px solid var(--line); }
|
||||||
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
|
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: 18px 20px; font-weight: 600; }
|
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::-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[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 { 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 { 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 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
|
||||||
.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; }
|
.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)); }
|
||||||
@media (max-width: 560px) { .cta::after { width: 160px; height: 160px; right: -70px; top: -70px; } }
|
.cta h2 { font-size: clamp(40px, 6vw, 76px); }
|
||||||
.cta h2 { color: #fff; position: relative; } .cta h2 em { color: #F5AFB5; }
|
.cta h2 em { color: rgba(255, 255, 255, .72); }
|
||||||
.cta .btn { position: relative; }
|
.cta .btn { margin-top: 24px; min-height: 52px; }
|
||||||
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; }
|
|
||||||
|
|
||||||
/* first-visit entrance: rare, so it may stagger (emil-design-eng) */
|
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); }
|
||||||
.rise { animation: rise 600ms var(--ease-out) both; }
|
footer nav { display: flex; gap: 20px; }
|
||||||
.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; }
|
footer a { text-decoration: none; }
|
||||||
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
|
footer a:hover { color: var(--ink); }
|
||||||
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
|
|
||||||
|
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .card { opacity: 1; } html { scroll-behavior: auto; } }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="wrap">
|
<header class="nav">
|
||||||
<header class="nav">
|
<a class="brand" href="#top" aria-label="Sirkul Makeup School home"><img src="/brand/sirkul-logo.png" alt="" /></a>
|
||||||
<a class="brand" href="#top" aria-label="MakeUp Academy home">
|
<nav class="links" aria-label="Sections">
|
||||||
<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>
|
<a href="#courses">Courses</a>
|
||||||
MakeUp Academy
|
<a href="#why">Why us</a>
|
||||||
</a>
|
<a href="#faq">FAQ</a>
|
||||||
<nav class="pills" aria-label="Sections">
|
</nav>
|
||||||
<a class="pill" href="#courses">Courses</a>
|
<a class="ghost" href="#join" data-focus>Join waitlist</a>
|
||||||
<a class="pill" href="#why">Why us</a>
|
</header>
|
||||||
<a class="pill" href="#faq">FAQ</a>
|
|
||||||
</nav>
|
|
||||||
<a class="pill dark" href="#join" data-focus>Join the waitlist</a>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<main id="top">
|
<main>
|
||||||
<section class="hero">
|
<section class="hero" id="top">
|
||||||
<span class="eyebrow rise"><i></i>Opening soon · 4 languages</span>
|
<div class="collage" aria-hidden="true">
|
||||||
<h1 class="rise">Your <em>signature look</em> starts here.</h1>
|
<figure class="card c1" style="margin:0"><img src="/photos/habesha-bride.jpg" alt="" /></figure>
|
||||||
<p class="am rise" lang="am">በቅርቡ ይከፈታል</p>
|
<figure class="card c2" style="margin:0"><img src="/photos/habesha-harari.jpg" alt="" /></figure>
|
||||||
<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>
|
<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) -->
|
<div class="pitch">
|
||||||
<svg class="art rise" viewBox="0 0 560 330" role="img" aria-label="An open eyeshadow palette with a lipstick and a makeup brush">
|
<span class="proof">
|
||||||
<defs>
|
<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>
|
||||||
<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>
|
<span class="live" aria-hidden="true"></span>
|
||||||
<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>
|
<span id="waiting" aria-live="polite">Be one of the first on the list</span>
|
||||||
<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>
|
</span>
|
||||||
</defs>
|
<h1>Your <em>signature look</em> starts here.</h1>
|
||||||
<ellipse cx="280" cy="300" rx="230" ry="16" fill="#8E4B45" opacity=".08"/>
|
<p class="lead">Video makeup courses from working Ethiopian artists. Join the waitlist and we'll tell you the day classes open.</p>
|
||||||
<!-- 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="join rise" id="join">
|
<div class="join" id="join">
|
||||||
<form id="form" novalidate>
|
<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="sr-only" aria-hidden="true">Company<input id="company" name="company" tabindex="-1" autocomplete="off" /></label>
|
<div class="more" id="more" hidden>
|
||||||
<label class="full">Full name<input id="name" name="name" autocomplete="name" placeholder="Selam Tesfaye" required maxlength="80" /></label>
|
<label class="sr-only" for="name">Full name</label>
|
||||||
<label>Email<input id="email" name="email" type="email" autocomplete="email" placeholder="you@example.com" required maxlength="120" /></label>
|
<input id="name" name="name" autocomplete="name" placeholder="Full name" required maxlength="80" />
|
||||||
<label>Phone<input id="phone" name="phone" type="tel" autocomplete="tel" inputmode="tel" placeholder="+251 9XX XXX XXX" required maxlength="20" /></label>
|
<div class="tel">
|
||||||
<button class="btn red full" id="submit">Get notified
|
<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>
|
||||||
<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>
|
<label class="sr-only" for="phone">Phone number</label>
|
||||||
</button>
|
<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>
|
</div>
|
||||||
<p class="err" id="err" role="alert"></p>
|
<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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section class="section center" id="courses">
|
<div class="wrap">
|
||||||
<h2>Courses at <em>launch</em></h2>
|
<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>
|
<p class="sub">Start with the basics, or go straight to the looks clients book you for.</p>
|
||||||
<ul class="shades">
|
<ul class="looks">
|
||||||
<li class="shade"><i class="dot" style="background:#E9B8A7"></i><strong>Makeup foundations</strong><span>Skin tone, base and color</span></li>
|
<li><img src="/photos/hero.jpg" alt="" loading="lazy" /><div><strong>Makeup foundations</strong><span>Skin tone, base and color</span></div></li>
|
||||||
<li class="shade"><i class="dot" style="background:#E63946"></i><strong>Bridal & events</strong><span>Looks that last a 14-hour day</span></li>
|
<li><img src="/photos/habesha-harari.jpg" alt="" loading="lazy" /><div><strong>Bridal & events</strong><span>Looks that last a 14-hour day</span></div></li>
|
||||||
<li class="shade"><i class="dot" style="background:#A8DADC"></i><strong>Skin prep & care</strong><span>The canvas before the color</span></li>
|
<li><img src="/photos/habesha-eritrean.jpg" alt="" loading="lazy" /><div><strong>Skin prep & care</strong><span>The canvas before the color</span></div></li>
|
||||||
<li class="shade"><i class="dot" style="background:#8E4B45"></i><strong>Building your clientele</strong><span>Pricing, kit and bookings</span></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>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section" id="why">
|
<section class="block" id="why">
|
||||||
<div class="center"><h2>Learn the craft, <em>your way</em></h2></div>
|
<p class="kicker">Why us</p>
|
||||||
|
<h2>Learn the craft, <em>your way</em></h2>
|
||||||
<div class="why">
|
<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="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="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="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="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">03</span><h3>Made for your phone</h3><p>Short video lessons that work on a mobile data plan.</p></div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section faq" id="faq">
|
<section class="block faq" id="faq">
|
||||||
<h2><em>Frequently</em> asked questions</h2>
|
<div><p class="kicker">FAQ</p><h2><em>Good</em> questions</h2></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>
|
<div>
|
||||||
<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>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 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>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>
|
<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>
|
||||||
|
|
||||||
<section class="cta">
|
<section class="cta">
|
||||||
<h2>Be first in <em>the chair</em>.</h2>
|
<img src="/photos/habesha-bride.jpg" alt="" loading="lazy" />
|
||||||
<a class="btn red" href="#join" data-focus>Join the waitlist</a>
|
<div>
|
||||||
|
<h2>Be first in <em>the chair</em>.</h2>
|
||||||
|
<a class="btn" href="#join" data-focus>Join the waitlist</a>
|
||||||
|
</div>
|
||||||
</section>
|
</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>
|
<script>
|
||||||
// Google Apps Script web app URL (…/exec) from tools/waitlist-apps-script.gs. Each signup becomes a row in the sheet.
|
// 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.
|
// 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 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.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 $ = (id) => document.getElementById(id);
|
||||||
const digits = (p) => p.replace(/[\s()-]/g, '');
|
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) {
|
function normPhone(p) {
|
||||||
const d = digits(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;
|
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() {
|
function check() {
|
||||||
const name = $('name').value.trim(), email = $('email').value.trim(), phone = normPhone($('phone').value);
|
const name = $('name').value.trim(), email = $('email').value.trim(), phone = normPhone($('phone').value);
|
||||||
const bad = [];
|
const bad = [];
|
||||||
if (name.length < 2) bad.push(['name', 'Please enter your name.']);
|
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', cc.value === 'ET' ? 'Please enter a phone number, e.g. 911 234 567.' : 'Please check the phone number for the country you picked.']);
|
||||||
if (!phone) bad.push(['phone', 'Please enter a phone number, e.g. 0911 234 567 or +1 202 555 0100.']);
|
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))));
|
['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() } };
|
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) => {
|
form.addEventListener('submit', async (e) => {
|
||||||
e.preventDefault(); err.textContent = '';
|
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();
|
const r = check();
|
||||||
if (r.error) { err.textContent = r.error[1]; $(r.error[0]).focus(); return; }
|
if (r.error) { err.textContent = r.error[1]; $(r.error[0]).focus(); return; }
|
||||||
btn.disabled = true;
|
btn.disabled = true;
|
||||||
|
|
@ -283,7 +359,10 @@
|
||||||
console.warn('Waitlist ENDPOINT not set: signup saved in this browser only.', r.data);
|
console.warn('Waitlist ENDPOINT not set: signup saved in this browser only.', r.data);
|
||||||
}
|
}
|
||||||
const first = r.data.name.split(' ')[0];
|
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 {
|
} catch {
|
||||||
err.textContent = "Something went wrong. Please try again in a moment.";
|
err.textContent = "Something went wrong. Please try again in a moment.";
|
||||||
btn.disabled = false;
|
btn.disabled = false;
|
||||||
|
|
|
||||||
BIN
design/Sirkul Logo .PNG
Normal file
|
After Width: | Height: | Size: 59 KiB |
|
|
@ -1,18 +1,18 @@
|
||||||
{
|
{
|
||||||
"color": {
|
"color": {
|
||||||
"ink": "#1B2340",
|
"ink": "#111111",
|
||||||
"inkMuted": "#5B6275",
|
"inkMuted": "#6B6B6B",
|
||||||
"paper": "#FFFFFF",
|
"paper": "#FFFFFF",
|
||||||
"canvas": "#F5F6F8",
|
"canvas": "#F4F4F4",
|
||||||
"mist": "#EEF1F6",
|
"mist": "#F7F7F7",
|
||||||
"line": "#E3E6EC",
|
"line": "#E4E4E4",
|
||||||
"accent": "#F2B705",
|
"accent": "#111111",
|
||||||
"success": "#2E7D5B",
|
"success": "#111111",
|
||||||
"alert": "#C2362B"
|
"alert": "#000000"
|
||||||
},
|
},
|
||||||
"font": {
|
"font": {
|
||||||
"latin": "'Atkinson Hyperlegible', system-ui, sans-serif",
|
"latin": "'Plus Jakarta Sans', system-ui, sans-serif",
|
||||||
"ethiopicSans": "'Noto Sans Ethiopic', 'Atkinson Hyperlegible', sans-serif",
|
"ethiopicSans": "'Noto Sans Ethiopic', 'Plus Jakarta Sans', sans-serif",
|
||||||
"ethiopicSerif": "'Noto Serif Ethiopic', serif"
|
"ethiopicSerif": "'Noto Serif Ethiopic', serif"
|
||||||
},
|
},
|
||||||
"fontSize": { "sm": "14px", "base": "16px", "lg": "20px", "xl": "25px", "2xl": "31px", "3xl": "39px" },
|
"fontSize": { "sm": "14px", "base": "16px", "lg": "20px", "xl": "25px", "2xl": "31px", "3xl": "39px" },
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import fs from 'fs'; import path from 'path';
|
||||||
const out = process.argv[2] || 'dist/seed';
|
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)); };
|
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 = [
|
const cats = [
|
||||||
['cat-fundamentals', 'fundamentals', { en: 'Makeup fundamentals', am: 'የሜካፕ መሠረታዊ ነገሮች', om: "Bu'uura meekaappii", ti: 'መሰረታዊ ሜካፕ' }],
|
['cat-fundamentals', 'fundamentals', { en: 'Makeup fundamentals', am: 'የሜካፕ መሠረታዊ ነገሮች', om: "Bu'uura meekaappii", ti: 'መሰረታዊ ሜካፕ' }],
|
||||||
|
|
@ -122,6 +122,51 @@ put('courses', 'crs-skin', order({ ...base, slug: 'skin-prep-and-care', category
|
||||||
]),
|
]),
|
||||||
] }));
|
] }));
|
||||||
|
|
||||||
|
// ---- simulated catalog extras so there is more to browse, buy (simulated) and watch
|
||||||
|
put('courses', 'crs-softglam', order({ ...base, slug: 'soft-glam-evening', categoryId: 'cat-fundamentals', instructorName: 'Meron Tesfaye', instructionLocale: 'am', coverTone: 'clay', status: 'PUBLISHED', isFeatured: true, publishedAt: '2026-06-01T08:00:00.000Z', updatedAt: '2026-09-10T08:00:00.000Z', prices: { ETB: 150000 },
|
||||||
|
translations: {
|
||||||
|
en: { title: 'Soft glam for evenings', subtitle: 'A camera-ready evening look in under an hour.', audience: 'Artists who know the basics and want a signature evening look.', description: 'Sculpt, smoke and highlight for parties, graduations and photo shoots, with looks built for deep and medium skin.', outcomes: ['Sculpt with warm bronzer instead of grey contour', 'Build a soft smoky eye in three layers', 'Finish skin that glows on camera without flashback'] },
|
||||||
|
am: { title: 'የምሽት ሶፍት ግላም', subtitle: 'ከአንድ ሰዓት ባነሰ ጊዜ ለካሜራ ዝግጁ የሆነ የምሽት ሜካፕ።', description: 'ለግብዣ፣ ለምረቃና ለፎቶ ቀረጻ ፊትን ማስዋብ፣ የጭስ ዓይንና ብርሃን አሰጣጥ።' },
|
||||||
|
},
|
||||||
|
chapters: [
|
||||||
|
ch('ch-g1', { en: 'Sculpt and glow', am: 'ቅርጽና ብርሃን' }, { en: 'Shape the face with warmth, not shadow.' }, [
|
||||||
|
L('les-g1', 8, tt('Warm sculpting for deep skin', 'ለጠቆረ ቆዳ ሞቅ ያለ ቅርጽ', 'Bocaa gogaa gurraachaaf', 'ቅርጺ ንጸሊም ቆርበት'), { isPreview: true }),
|
||||||
|
L('les-g2', 11, tt('Highlight that photographs well', 'በፎቶ የሚያምር ብርሃን', 'Ifa suuraa irratti mul\'atu', 'ኣብ ስእሊ ዝጽቡቕ ብርሃን')),
|
||||||
|
]),
|
||||||
|
ch('ch-g2', { en: 'Eyes and lips', am: 'ዓይንና ከንፈር' }, { en: 'One soft smoky eye, three ways.' }, [
|
||||||
|
L('les-g3', 14, tt('Soft smoky eye in three layers', 'በሦስት ደረጃ የጭስ ዓይን', 'Ija aaraa sadarkaa sadiin', 'ናይ ትኪ ዓይኒ ብሰለስተ ደረጃ')),
|
||||||
|
L('les-g4', 9, tt('Lips that last the night', 'ሌሊቱን ሙሉ የሚቆይ ከንፈር', 'Hidhii halkan guutuu turu', 'ንምሉእ ለይቲ ዝጸንሕ ከንፈር')),
|
||||||
|
]),
|
||||||
|
] }));
|
||||||
|
|
||||||
|
put('courses', 'crs-habesha', order({ ...base, slug: 'traditional-habesha-looks', categoryId: 'cat-bridal', instructorName: 'Hanna Bekele', instructionLocale: 'am', coverTone: 'sand', status: 'PUBLISHED', publishedAt: '2026-07-01T08:00:00.000Z', updatedAt: '2026-09-15T08:00:00.000Z', prices: { ETB: 180000 },
|
||||||
|
translations: {
|
||||||
|
en: { title: 'Traditional Habesha looks', subtitle: 'Makeup for kemis, holidays and cultural ceremonies.', audience: 'Artists booked for Timket, Meskel, weddings and cultural events.', description: 'Looks that work with netela, gold jewelry and braided hair, from a soft holiday face to a full ceremony look.', outcomes: ['Match makeup to kemis colors and gold', 'Keep the look fresh through an outdoor holiday', 'Work around braids and head jewelry'] },
|
||||||
|
am: { title: 'ባህላዊ የሀበሻ ሜካፕ', subtitle: 'ለሀበሻ ቀሚስ፣ ለበዓላትና ለባህላዊ ሥነ ሥርዓቶች።', description: 'ከነጠላ፣ ከወርቅ ጌጣጌጥና ከሹሩባ ጋር የሚሄድ ሜካፕ።' },
|
||||||
|
},
|
||||||
|
chapters: [
|
||||||
|
ch('ch-h1', { en: 'Holiday looks', am: 'የበዓል ሜካፕ' }, { en: 'Outdoor light and long days call for a soft, sure base.' }, [
|
||||||
|
L('les-h1', 10, tt('A soft look for Timket and Meskel', 'ለጥምቀትና ለመስቀል ለስላሳ ሜካፕ', 'Meekaappii Timqataa fi Masqalaaf', 'ሜካፕ ንጥምቀትን መስቀልን'), { isPreview: true }),
|
||||||
|
L('les-h2', 13, tt('Makeup with gold and netela', 'ከወርቅና ከነጠላ ጋር ሜካፕ', 'Meekaappii warqee fi netelaa wajjin', 'ሜካፕ ምስ ወርቅን ነጠላን')),
|
||||||
|
]),
|
||||||
|
ch('ch-h2', { en: 'Ceremony looks', am: 'የሥነ ሥርዓት ሜካፕ' }, { en: 'Full looks that hold up in photos and in person.' }, [
|
||||||
|
L('les-h3', 16, tt('Full ceremony look, start to finish', 'ሙሉ የሥነ ሥርዓት ሜካፕ', 'Meekaappii sirnaa guutuu', 'ምሉእ ሜካፕ ስነ ስርዓት')),
|
||||||
|
]),
|
||||||
|
] }));
|
||||||
|
|
||||||
|
put('courses', 'crs-clientele', order({ ...base, slug: 'building-your-clientele', categoryId: 'cat-fundamentals', instructorName: 'Meron Tesfaye', instructionLocale: 'en', coverTone: 'ink', status: 'PUBLISHED', publishedAt: '2026-08-01T08:00:00.000Z', updatedAt: '2026-09-18T08:00:00.000Z', prices: { ETB: 60000 },
|
||||||
|
translations: {
|
||||||
|
en: { title: 'Building your clientele', subtitle: 'Pricing, kit and bookings for freelance artists.', audience: 'Artists ready to take paid clients.', description: 'Set your prices, build a kit you can afford, and turn Instagram and Telegram into steady bookings.', outcomes: ['Price a look so it pays', 'Build a starter kit on a budget', 'Get repeat bookings from social media'] },
|
||||||
|
am: { title: 'ደንበኞችዎን መገንባት', subtitle: 'ለግል ባለሙያዎች ዋጋ፣ ዕቃና ቀጠሮ።', description: 'ዋጋ ማውጣት፣ በአቅም ዕቃ መግዛትና ማኅበራዊ ሚዲያን ወደ ቋሚ ቀጠሮ መቀየር።' },
|
||||||
|
},
|
||||||
|
chapters: [
|
||||||
|
ch('ch-c1', { en: 'Getting booked', am: 'ቀጠሮ ማግኘት' }, { en: 'Your first ten clients come from people who already know you.' }, [
|
||||||
|
L('les-c1', 7, tt('What to charge in Addis', 'በአዲስ አበባ ምን ያህል ማስከፈል', 'Finfinneetti meeqa kaffalchiisuu', 'ኣብ ኣዲስ ኣበባ ክንደይ ምኽፋል'), { isPreview: true }),
|
||||||
|
L('les-c2', 9, tt('A starter kit on a budget', 'በአቅም የሚገዛ የመጀመሪያ ኪት', 'Meeshaa jalqabaa baasii xiqqaan', 'መጀመርታ ኪት ብውሑድ ዋጋ')),
|
||||||
|
L('les-c3', 11, tt('Bookings from Instagram and Telegram', 'ከኢንስታግራምና ከቴሌግራም ቀጠሮ', 'Beellama Instagram fi Telegram irraa', 'ቆጸራ ካብ ኢንስታግራምን ቴሌግራምን')),
|
||||||
|
]),
|
||||||
|
] }));
|
||||||
|
|
||||||
put('courses', 'crs-business', order({ ...base, slug: 'crs-business', categoryId: 'cat-fundamentals', instructorName: 'Meron Tesfaye', instructionLocale: 'am', coverTone: 'sand', status: 'DRAFT', publishedAt: null, updatedAt: '2026-09-20T08:00:00.000Z', prices: {},
|
put('courses', 'crs-business', order({ ...base, slug: 'crs-business', categoryId: 'cat-fundamentals', instructorName: 'Meron Tesfaye', instructionLocale: 'am', coverTone: 'sand', status: 'DRAFT', publishedAt: null, updatedAt: '2026-09-20T08:00:00.000Z', prices: {},
|
||||||
translations: { en: { title: 'Building a makeup business', description: 'Pricing, bookings and social media for freelance artists.' }, am: { title: 'የሜካፕ ሥራ መገንባት', description: 'ለግል ባለሙያዎች ዋጋ አወጣጥ፣ ቀጠሮና ማኅበራዊ ሚዲያ።' } },
|
translations: { en: { title: 'Building a makeup business', description: 'Pricing, bookings and social media for freelance artists.' }, am: { title: 'የሜካፕ ሥራ መገንባት', description: 'ለግል ባለሙያዎች ዋጋ አወጣጥ፣ ቀጠሮና ማኅበራዊ ሚዲያ።' } },
|
||||||
chapters: [ch('ch-x1', { en: 'Pricing your work' }, {}, [L('les-x1', 12, { en: { title: 'What to charge in Addis' } }, { isPublished: false, videoStatus: 'NONE' })])] }));
|
chapters: [ch('ch-x1', { en: 'Pricing your work' }, {}, [L('les-x1', 12, { en: { title: 'What to charge in Addis' } }, { isPublished: false, videoStatus: 'NONE' })])] }));
|
||||||
|
|
|
||||||
4
packages/features/src/brandLogo.ts
Normal file
|
|
@ -4,7 +4,7 @@ import type { Category, Course, DataSource, InboxItem, Locale, Settings, Student
|
||||||
import { LOCALES, newId } from '@lms/data';
|
import { LOCALES, newId } from '@lms/data';
|
||||||
import { messages } from '@lms/i18n';
|
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 = {
|
const store = {
|
||||||
get(k: string) { try { return localStorage.getItem('lms.' + k); } catch { return null; } },
|
get(k: string) { try { return localStorage.getItem('lms.' + k); } catch { return null; } },
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import {
|
||||||
applyHeartbeat, applyPaymentEvent, clock, COUNTRIES, courseDuration, courseProgress, createOrder, DomainError, effectiveStatus,
|
applyHeartbeat, applyPaymentEvent, clock, COUNTRIES, courseDuration, courseProgress, createOrder, DomainError, effectiveStatus,
|
||||||
ET_CITIES, formatDuration, formatMoney, gradeAssessment, isCompleted, isStudentVisible, lessonAccess, owns, publishedLessons, resumePoint, tr, validateLocation, validPassword,
|
ET_CITIES, formatDuration, formatMoney, gradeAssessment, isCompleted, isStudentVisible, lessonAccess, owns, publishedLessons, resumePoint, tr, validateLocation, validPassword,
|
||||||
} from './domain';
|
} from './domain';
|
||||||
import { CopyText, Cover, Empty, FeedbackButton, fmtDate, Icon, Logo, MakeupBox, Modal, VIMEO_ORIGIN, VIMEO_PLACEHOLDER, Ring, Skeleton, StatusPill } from './ui';
|
import { CAT_PHOTOS, CopyText, Cover, coursePhoto, Empty, FeedbackButton, fmtDate, Icon, KitIcon, Logo, Modal, VIMEO_ORIGIN, VIMEO_PLACEHOLDER, Ring, Skeleton, StatusPill } from './ui';
|
||||||
import { PAY_LOGOS } from './payLogos';
|
import { PAY_LOGOS } from './payLogos';
|
||||||
|
|
||||||
const ISSUE_TYPES: IssueType[] = ['BUG', 'PAYMENT', 'VIDEO', 'ACCOUNT', 'CONTENT', 'OTHER'];
|
const ISSUE_TYPES: IssueType[] = ['BUG', 'PAYMENT', 'VIDEO', 'ACCOUNT', 'CONTENT', 'OTHER'];
|
||||||
|
|
@ -67,10 +67,16 @@ function SignInGate({ children }: { children: ReactNode }) {
|
||||||
|
|
||||||
export function StudentApp() {
|
export function StudentApp() {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
const { route, locale, nav, signedIn, inbox, settings, setLocale } = useApp();
|
const { route, locale, nav, signedIn, inbox, settings } = useApp();
|
||||||
const section = route[1] ?? '';
|
const section = route[1] ?? '';
|
||||||
const unread = signedIn ? inbox.filter((n) => !n.readAt).length : 0;
|
const unread = signedIn ? inbox.filter((n) => !n.readAt).length : 0;
|
||||||
const mainRef = useRef<HTMLElement>(null);
|
const mainRef = useRef<HTMLElement>(null);
|
||||||
|
const [scrolled, setScrolled] = useState(false);
|
||||||
|
useEffect(() => {
|
||||||
|
const on = () => setScrolled(scrollY > 24);
|
||||||
|
on(); addEventListener('scroll', on, { passive: true });
|
||||||
|
return () => removeEventListener('scroll', on);
|
||||||
|
}, []);
|
||||||
const go = (p: string) => nav(`/${locale}${p}`);
|
const go = (p: string) => nav(`/${locale}${p}`);
|
||||||
const tabs: [string, string, string][] = [['', 'home', t('nav.home')], ['courses', 'grid', t('nav.courses')], ['my', 'book', t('nav.myCourses')], ['help', 'help', t('nav.help')], ['profile', 'user', t('nav.profile')]];
|
const tabs: [string, string, string][] = [['', 'home', t('nav.home')], ['courses', 'grid', t('nav.courses')], ['my', 'book', t('nav.myCourses')], ['help', 'help', t('nav.help')], ['profile', 'user', t('nav.profile')]];
|
||||||
const links = tabs.filter(([p]) => p !== 'profile' && (p !== 'my' || signedIn));
|
const links = tabs.filter(([p]) => p !== 'profile' && (p !== 'my' || signedIn));
|
||||||
|
|
@ -78,20 +84,16 @@ export function StudentApp() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div lang={locale}>
|
<div lang={locale}>
|
||||||
<div className="demo-strip">{t('common.demoBanner')}</div>
|
<header className={`s-top${scrolled ? ' scrolled' : ''}`}>
|
||||||
<header className="s-top">
|
|
||||||
<div className="s-top-in">
|
<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">
|
<nav className="s-nav" aria-label="Main">
|
||||||
{links.map(([p, , label]) => <button key={p} aria-current={current(p)} onClick={() => go(p ? '/' + p : '')}>{label}</button>)}
|
{links.map(([p, , label]) => <button key={p} aria-current={current(p)} onClick={() => go(p ? '/' + p : '')}>{label}</button>)}
|
||||||
</nav>
|
</nav>
|
||||||
<div className="s-actions">
|
<div className="s-actions">
|
||||||
<FeedbackButton label={t('common.feedback')} target={() => mainRef.current} />
|
<FeedbackButton label={t('common.feedback')} target={() => mainRef.current} />
|
||||||
<label className="lang-pick" title={t('common.language')}><Icon name="globe" size={16} /><span className="sr-only">{t('common.language')}</span>
|
<ThemeToggle label={t('common.theme')} />
|
||||||
<select id="lang" value={locale} onChange={(e) => setLocale(e.target.value as Locale)}>
|
<LangPick />
|
||||||
{LOCALES.map((l) => <option key={l} value={l}>{LOCALE_NAMES[l]}{(DRAFT_LOCALES as readonly string[]).includes(l) ? ' (draft)' : ''}</option>)}
|
|
||||||
</select>
|
|
||||||
</label>
|
|
||||||
{signedIn ? <>
|
{signedIn ? <>
|
||||||
<button className="icon-btn" aria-label={`${t('nav.notifications')}${unread ? ` (${unread})` : ''}`} onClick={() => go('/notifications')}><Icon name="bell" />{unread > 0 && <span className="dot">{unread}</span>}</button>
|
<button className="icon-btn" aria-label={`${t('nav.notifications')}${unread ? ` (${unread})` : ''}`} onClick={() => go('/notifications')}><Icon name="bell" />{unread > 0 && <span className="dot">{unread}</span>}</button>
|
||||||
<UserMenu />
|
<UserMenu />
|
||||||
|
|
@ -107,13 +109,38 @@ export function StudentApp() {
|
||||||
<StudentRoutes />
|
<StudentRoutes />
|
||||||
</main>
|
</main>
|
||||||
<Footer />
|
<Footer />
|
||||||
<nav className="s-tabs" aria-label="Main">
|
{signedIn && section !== 'learn' && <nav className="s-tabs" aria-label="Main">
|
||||||
{tabs.map(([p, icon, label]) => <button key={p} aria-current={current(p)} onClick={() => go(p ? '/' + p : '')}><Icon name={icon} size={22} />{label}</button>)}
|
{tabs.map(([p, icon, label]) => <button key={p} aria-current={current(p)} onClick={() => go(p ? '/' + p : '')}><Icon name={icon} size={22} />{label}</button>)}
|
||||||
</nav>
|
</nav>}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function LangPick() {
|
||||||
|
const t = useTranslations();
|
||||||
|
const { locale, setLocale } = useApp();
|
||||||
|
return (
|
||||||
|
<label className="lang-pick" title={t('common.language')}><Icon name="globe" size={16} /><span className="sr-only">{t('common.language')}</span>
|
||||||
|
<select 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>)}
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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() || '?';
|
const initials = (name: string) => name.split(/\s+/).filter(Boolean).slice(0, 2).map((w) => w[0]).join('').toUpperCase() || '?';
|
||||||
|
|
||||||
function UserMenu() {
|
function UserMenu() {
|
||||||
|
|
@ -143,33 +170,35 @@ function UserMenu() {
|
||||||
|
|
||||||
function Footer() {
|
function Footer() {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
const { settings, locale, nav, setLocale, categories, courses, signedIn, me, route } = useApp();
|
const { settings, locale, nav, categories, courses, signedIn, me, route } = useApp();
|
||||||
// Big marketing footer on the landing page and catalog only; app screens get one quiet line (audit 2026-10-16, Q1).
|
// Big marketing footer on the landing page and catalog only; app screens get one quiet line (audit 2026-10-16, Q1).
|
||||||
const full = (route[1] === undefined && !signedIn) || route[1] === 'courses';
|
const full = (route[1] === undefined && !signedIn) || route[1] === 'courses';
|
||||||
const langs = LOCALES.map((l) => <button key={l} lang={l} aria-current={l === locale} onClick={() => setLocale(l)}>{LOCALE_NAMES[l]}</button>);
|
const langs = <LangPick />;
|
||||||
if (!full) return (
|
if (!full) return (
|
||||||
<footer className="foot foot-compact">
|
<footer className="foot foot-compact">
|
||||||
<div className="foot-base">
|
<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>
|
<a href={settings.telegramLink} target="_blank" rel="noreferrer">{t('help.telegram')}</a>
|
||||||
<span className="num">{settings.supportPhone}</span>
|
<span className="num">{settings.supportPhone}</span>
|
||||||
<nav className="foot-langs" aria-label={t('common.language')}>{langs}</nav>
|
<div className="foot-langs">{langs}</div>
|
||||||
</div>
|
</div>
|
||||||
|
<p className="powered">{t.rich('footer.poweredBy', { name: () => <a className="shine" href="https://yaltopia.com" target="_blank" rel="noreferrer">Yaltopia Tech</a> })}</p>
|
||||||
</footer>
|
</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 go = (p: string) => nav(`/${locale}${p}`);
|
||||||
|
const kit: [string, string][] = [['foundation', 'kit1'], ['brush', 'kit2'], ['brow', 'kit3'], ['lipstick', 'kit4']];
|
||||||
return (
|
return (
|
||||||
<footer className="foot">
|
<footer className="foot foot-full">
|
||||||
<div className="foot-wrap">
|
<div className="foot-card">
|
||||||
<div className="foot-top">
|
<div className="foot-brand">
|
||||||
<div className="foot-story">
|
<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>
|
||||||
<h2 className="foot-word">{settings.brandName}</h2>
|
<p className="foot-tag">{t('footer.tagline')}</p>
|
||||||
<p className="foot-tag">{t('footer.tagline')}</p>
|
<div className="foot-contact">
|
||||||
<p className="foot-desc">{t('landing.footer')}</p>
|
<span className="foot-chip">{t('footer.contact')}</span>
|
||||||
{instructors.length > 0 && <ul className="foot-people">{instructors.map((n) => <li key={n}><strong>{n}</strong><span>{t('footer.instructors')}</span></li>)}</ul>}
|
<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>
|
</div>
|
||||||
<MakeupBox />
|
|
||||||
</div>
|
</div>
|
||||||
<nav className="foot-cols" aria-label="Footer">
|
<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>
|
<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,15 +206,38 @@ function Footer() {
|
||||||
<button onClick={() => go('/courses')}>{t('catalog.title')}</button>
|
<button onClick={() => go('/courses')}>{t('catalog.title')}</button>
|
||||||
{signedIn && <button onClick={() => go('/progress')}>{t('nav.progress')}</button>}
|
{signedIn && <button onClick={() => go('/progress')}>{t('nav.progress')}</button>}
|
||||||
<button onClick={() => go('/help')}>{t('nav.help')}</button>
|
<button onClick={() => go('/help')}>{t('nav.help')}</button>
|
||||||
</div>
|
<a href="/waitlist">{t('footer.waitlist')}</a>
|
||||||
<div><h3>{t('footer.support')}</h3>
|
|
||||||
<a href={settings.telegramLink} target="_blank" rel="noreferrer">{t('help.telegram')}</a>
|
|
||||||
<span className="num">{settings.supportPhone}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div><h3>{t('common.language')}</h3>{langs}</div>
|
<div><h3>{t('common.language')}</h3>{langs}</div>
|
||||||
</nav>
|
</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>
|
||||||
|
<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>
|
||||||
|
<p className="powered">{t.rich('footer.poweredBy', { name: () => <a className="shine" href="https://yaltopia.com" target="_blank" rel="noreferrer">Yaltopia Tech</a> })}</p>
|
||||||
</footer>
|
</footer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -214,7 +266,34 @@ function StudentRoutes() {
|
||||||
|
|
||||||
// ---------------------------------------------------------------- landing + home
|
// ---------------------------------------------------------------- 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'];
|
||||||
|
// 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_IDS = ['TELEBIRR', 'CBE_BIRR', 'VISA', 'MASTERCARD', '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() {
|
function Landing() {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
|
|
@ -228,31 +307,20 @@ function Landing() {
|
||||||
const total = visible.reduce((s, c) => s + courseDuration(c), 0);
|
const total = visible.reduce((s, c) => s + courseDuration(c), 0);
|
||||||
const cats = categories.filter((c) => c.isActive);
|
const cats = categories.filter((c) => c.isActive);
|
||||||
const watch = () => { if (lead) nav(preview ? `/${locale}/learn/${lead.slug}/${preview.id}` : `/${locale}/course/${lead.slug}`); };
|
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 (
|
return (
|
||||||
<>
|
<div className="landing">
|
||||||
<section className="l-hero">
|
<section className="l-hero">
|
||||||
<div className="l-hero-in">
|
<div className="reel" aria-hidden><div className="reel-track">{[...HERO_PHOTOS, ...HERO_PHOTOS].map((p, i) => <img key={i} src={`/photos/${p}`} alt="" />)}</div></div>
|
||||||
<div className="hero-copy">
|
<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>
|
<h1>{t('landing.title')}</h1>
|
||||||
<p className="lead">{t('landing.lead')}</p>
|
<p className="lead">{t('landing.lead')}</p>
|
||||||
<div className="row hero-ctas">
|
<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>
|
<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>}
|
{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>
|
</div>
|
||||||
{!catalogLoaded ? <Skeleton h={340} /> : lead ? (
|
<ul className="facts">{['fact2', 'fact3'].map((k) => <li key={k}><Icon name="check" size={16} />{t(`landing.${k}`)}</li>)}</ul>
|
||||||
<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}
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
@ -261,18 +329,14 @@ function Landing() {
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{cats.length > 0 && <section className="stack-lg">
|
{cats.length > 0 && <section className="stack-lg">
|
||||||
<div className="section-c"><h2>{t('landing.catTitle')}</h2><p>{t('landing.catLead')}</p></div>
|
<div className="section-h"><div className="stack-sm"><h2>{t('landing.catTitle')}</h2><p className="muted">{t('landing.catLead')}</p></div></div>
|
||||||
<div className="cat-grid">{cats.map((c, i) => {
|
<div className="look-grid">{cats.map((c, i) => (
|
||||||
const [icon, tone] = CAT_LOOK[i % CAT_LOOK.length];
|
<button key={c.id} className="look" onClick={() => nav(`/${locale}/courses/${c.slug}`)}>
|
||||||
return (
|
<img src={`/photos/${CAT_PHOTOS[i % CAT_PHOTOS.length]}`} alt="" loading="lazy" />
|
||||||
<button key={c.id} className="cat-card" onClick={() => nav(`/${locale}/courses/${c.slug}`)}>
|
<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={`cat-ic tone-${tone}`}><Icon name={icon} size={22} /></span>
|
<span className="look-go" aria-hidden><Icon name="chevron" size={16} /></span>
|
||||||
<h3>{tr(c.translations, locale)?.name}</h3>
|
</button>
|
||||||
<span className="small muted">{t('catalog.count', { n: visible.filter((x) => x.categoryId === c.id).length })}</span>
|
))}</div>
|
||||||
<span className="cat-link">{t('landing.viewCourses')}<Icon name="chevron" size={14} /></span>
|
|
||||||
</button>
|
|
||||||
);
|
|
||||||
})}</div>
|
|
||||||
</section>}
|
</section>}
|
||||||
|
|
||||||
<section className="stack-lg">
|
<section className="stack-lg">
|
||||||
|
|
@ -281,16 +345,21 @@ 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>}
|
{!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>
|
||||||
|
|
||||||
<section className="how-panel">
|
<section className="stack-lg">
|
||||||
<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="section-h"><div className="stack-sm"><h2>{t('landing.howTitle')}</h2><p className="muted">{t('landing.payLead')}{Number.isFinite(minPrice) && <> <strong className="num">{t('landing.from', { price: formatMoney(minPrice, 'ETB') })}</strong></>}</p></div></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>
|
<ol className="steps3">
|
||||||
|
<li className="step"><img src="/photos/habesha-bride.jpg" alt="" loading="lazy" /><strong>{t('landing.how1')}</strong></li>
|
||||||
|
<li className="step"><img src="/photos/habesha-harari.jpg" alt="" loading="lazy" /><strong>{t('landing.how2')}</strong><div className="step-pay">{PAY_IDS.map((id) => <span key={id} title={methodName(id)}><PayLogo id={id} /></span>)}</div></li>
|
||||||
|
<li className="step"><img src="/photos/habesha-eritrean.jpg" alt="" loading="lazy" /><strong>{t('landing.how3')}</strong></li>
|
||||||
|
</ol>
|
||||||
</section>
|
</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>
|
<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>
|
<button className="btn btn-accent btn-lg" onClick={lead ? watch : () => nav(`/${locale}/courses`)}><Icon name="play" size={16} />{t('course.watchPreview')}</button>
|
||||||
</section>
|
</section>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -374,7 +443,7 @@ function Catalog({ categorySlug }: { categorySlug?: string }) {
|
||||||
|
|
||||||
function CoursePage({ slug }: { slug?: string }) {
|
function CoursePage({ slug }: { slug?: string }) {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
const { courses, categories, me, locale, nav, catalogLoaded, toast } = useApp();
|
const { courses, categories, me, locale, nav, catalogLoaded, toast, ds } = useApp();
|
||||||
const { catName } = useCatalog();
|
const { catName } = useCatalog();
|
||||||
const [tab, setTab] = useState('overview');
|
const [tab, setTab] = useState('overview');
|
||||||
const c = courses.find((x) => x.slug === slug);
|
const c = courses.find((x) => x.slug === slug);
|
||||||
|
|
@ -389,97 +458,111 @@ function CoursePage({ slug }: { slug?: string }) {
|
||||||
const pre = c.prerequisiteCourseId ? courses.find((x) => x.id === c.prerequisiteCourseId) : undefined;
|
const pre = c.prerequisiteCourseId ? courses.find((x) => x.id === c.prerequisiteCourseId) : undefined;
|
||||||
const preDone = !pre || courseProgress(pre, me).pct === 100;
|
const preDone = !pre || courseProgress(pre, me).pct === 100;
|
||||||
const preview = lessons.find((l) => l.isPreview);
|
const preview = lessons.find((l) => l.isPreview);
|
||||||
|
const previews = lessons.filter((l) => l.isPreview).length;
|
||||||
const cat = categories.find((k) => k.id === c.categoryId);
|
const cat = categories.find((k) => k.id === c.categoryId);
|
||||||
const chapters = [...c.chapters].sort((a, b) => a.sortOrder - b.sortOrder);
|
const chapters = [...c.chapters].sort((a, b) => a.sortOrder - b.sortOrder);
|
||||||
const play = mine && r ? `/${locale}/learn/${c.slug}/${r.lesson.id}` : preview ? `/${locale}/learn/${c.slug}/${preview.id}` : null;
|
const play = mine && r ? `/${locale}/learn/${c.slug}/${r.lesson.id}` : preview ? `/${locale}/learn/${c.slug}/${preview.id}` : null;
|
||||||
const playLabel = mine && r ? (done ? t('course.watchAgain') : t('course.continue', { n: r.index + 1 })) : t('course.watchPreview');
|
const playLabel = mine && r ? (done ? t('course.watchAgain') : t('course.continue', { n: r.index + 1 })) : t('course.watchPreview');
|
||||||
const share = () => { navigator.clipboard?.writeText(location.href).then(() => toast(t('course.linkCopied')), () => { /* clipboard blocked */ }); };
|
const share = () => { navigator.clipboard?.writeText(location.href).then(() => toast(t('course.linkCopied')), () => { /* clipboard blocked */ }); };
|
||||||
const teaches = courses.filter((x) => x.instructorName === c.instructorName && isStudentVisible(x, me)).length;
|
const teaches = courses.filter((x) => x.instructorName === c.instructorName && isStudentVisible(x, me)).length;
|
||||||
const tabs: [string, string][] = [['overview', t('course.tabOverview')], ...(text.outcomes?.length ? [['outcomes', t('course.outcomes')] as [string, string]] : []), ['instructor', t('course.tabInstructor')]];
|
// No uploaded cover in the demo → a category photo stands in on the preview card.
|
||||||
|
const photo = c.coverAssetId ? ds.assetUrl(c.coverAssetId) : coursePhoto(c, categories.map((k) => k.id));
|
||||||
|
const tabs: [string, string][] = [['overview', t('course.tabOverview')], ['content', t('course.content')], ['instructor', t('course.tabInstructor')]];
|
||||||
|
const includes: [string, ReactNode][] = [
|
||||||
|
['globe', LOCALE_NAMES[c.instructionLocale]],
|
||||||
|
['video', t('course.lessons', { n: lessons.length })],
|
||||||
|
['clock', formatDuration(courseDuration(c))],
|
||||||
|
...(previews ? [['play', t('course.previewLessons', { n: previews })] as [string, ReactNode]] : []),
|
||||||
|
...(c.assessments?.length ? [['quiz', t('assess.title')] as [string, ReactNode]] : []),
|
||||||
|
['shield', t('course.lifetimeAccess')],
|
||||||
|
];
|
||||||
return (
|
return (
|
||||||
<div className="c-page">
|
<div className="cd">
|
||||||
<nav className="crumbs" aria-label="Breadcrumb">
|
<section className="cd-head">
|
||||||
<button onClick={() => nav(`/${locale}`)} aria-label={t('nav.home')}><Icon name="home" size={16} /></button><Icon name="chevron" size={14} />
|
<div className="cd-top">
|
||||||
<button onClick={() => nav(`/${locale}/courses`)}>{t('nav.courses')}</button>
|
<nav className="crumbs" aria-label="Breadcrumb">
|
||||||
{cat && <><Icon name="chevron" size={14} /><button aria-current="page" onClick={() => nav(`/${locale}/courses/${cat.slug}`)}>{catName(cat.id)}</button></>}
|
<button onClick={() => nav(`/${locale}/courses`)}>{t('nav.courses')}</button>
|
||||||
</nav>
|
{cat && <><span aria-hidden>/</span><button onClick={() => nav(`/${locale}/courses/${cat.slug}`)}>{catName(cat.id)}</button></>}
|
||||||
<div className="c-layout">
|
<span aria-hidden>/</span><span aria-current="page">{text.title}</span>
|
||||||
<div className="c-main">
|
</nav>
|
||||||
<div className="stack-sm">
|
<span className="row" style={{ gap: 6 }}>
|
||||||
{c.status === 'ARCHIVED' && <div><StatusPill status="ARCHIVED" /></div>}
|
{c.status === 'ARCHIVED' && <StatusPill status="ARCHIVED" />}
|
||||||
<h1>{text.title}</h1>
|
{mine && <span className="cd-chip"><Icon name="check" size={12} />{done ? t('course.completed') : t('course.owned')}</span>}
|
||||||
{text.subtitle && <p className="c-sub">{text.subtitle}</p>}
|
</span>
|
||||||
</div>
|
|
||||||
<ul className="c-meta">
|
|
||||||
<li><Icon name="video" size={18} /><div><strong className="num">{lessons.length}</strong><span>{t('course.lessonsLabel')}</span></div></li>
|
|
||||||
<li><Icon name="clock" size={18} /><div><strong className="num">{formatDuration(courseDuration(c))}</strong><span>{t('course.duration')}</span></div></li>
|
|
||||||
<li><Icon name="globe" size={18} /><div><strong>{LOCALE_NAMES[c.instructionLocale]}</strong><span>{t('course.language')}</span></div></li>
|
|
||||||
<li><Icon name="calendar" size={18} /><div><strong className="num">{fmtDate(c.updatedAt)}</strong><span>{t('course.lastUpdated')}</span></div></li>
|
|
||||||
</ul>
|
|
||||||
<div className="c-media">
|
|
||||||
<button className="c-screen" disabled={!play} onClick={() => play && nav(play)} aria-label={playLabel}>
|
|
||||||
<Cover course={c} locale={locale} />
|
|
||||||
{play && <span className="play-big" aria-hidden><Icon name="play" size={24} /></span>}
|
|
||||||
</button>
|
|
||||||
<div className="c-actions">
|
|
||||||
{play && <button className="btn btn-quiet btn-sm" onClick={() => nav(play)}><Icon name="play" size={14} />{playLabel}</button>}
|
|
||||||
<span className="grow" />
|
|
||||||
<button className="btn btn-quiet btn-sm" onClick={share}><Icon name="share" size={16} />{t('course.share')}</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{pre && !preDone && <div className="banner">{t('course.prereq', { title: ct(pre, locale).title })} <button className="link" onClick={() => nav(`/${locale}/course/${pre.slug}`)}>{t('course.prereqLink', { title: ct(pre, locale).title })}</button></div>}
|
|
||||||
<div className="tabs" role="tablist">{tabs.map(([k, label]) => <button key={k} role="tab" className="tab" aria-selected={tab === k} onClick={() => setTab(k)}>{label}</button>)}</div>
|
|
||||||
{tab === 'overview' && <div className="c-overview">
|
|
||||||
<div className="stack">
|
|
||||||
{text.description && <p style={{ whiteSpace: 'pre-line' }}>{text.description}</p>}
|
|
||||||
{text.audience && <p className="small"><strong>{t('course.audience')}: </strong>{text.audience}</p>}
|
|
||||||
</div>
|
|
||||||
<dl className="c-summary">
|
|
||||||
<div><dt><Icon name="user" size={16} />{t('course.instructor')}</dt><dd>{c.instructorName}</dd></div>
|
|
||||||
<div><dt><Icon name="video" size={16} />{t('course.lessonsLabel')}</dt><dd className="num">{lessons.length}</dd></div>
|
|
||||||
<div><dt><Icon name="clock" size={16} />{t('course.duration')}</dt><dd className="num">{formatDuration(courseDuration(c))}</dd></div>
|
|
||||||
<div><dt><Icon name="globe" size={16} />{t('course.language')}</dt><dd>{LOCALE_NAMES[c.instructionLocale]}</dd></div>
|
|
||||||
<div><dt><Icon name="shield" size={16} />{t('course.access')}</dt><dd>{t('course.lifetime')}</dd></div>
|
|
||||||
</dl>
|
|
||||||
</div>}
|
|
||||||
{tab === 'outcomes' && <ol className="outcomes">{text.outcomes?.map((o, i) => <li key={i}>{o}</li>)}</ol>}
|
|
||||||
{tab === 'instructor' && <div className="row"><span className="avatar avatar-lg" aria-hidden>{initials(c.instructorName)}</span><div><strong>{c.instructorName}</strong><p className="small muted">{t('course.teaches', { n: teaches })}</p></div></div>}
|
|
||||||
</div>
|
</div>
|
||||||
|
<h1>{text.title}</h1>
|
||||||
|
<div className="cd-stats">
|
||||||
|
<span className="cd-pill"><Icon name="video" size={14} /><strong className="num">{lessons.length}</strong>{t('course.lessonsLabel')}</span>
|
||||||
|
<span className="cd-pill"><Icon name="clock" size={14} /><strong className="num">{formatDuration(courseDuration(c))}</strong></span>
|
||||||
|
{previews > 0 && <span className="muted small">{t('course.previewLessons', { n: previews })}</span>}
|
||||||
|
</div>
|
||||||
|
{(text.subtitle || text.description) && <p className="cd-lead">{text.subtitle || text.description}</p>}
|
||||||
|
<div className="cd-by">
|
||||||
|
<span className="avatar" aria-hidden>{initials(c.instructorName)}</span>
|
||||||
|
<span className="cd-by-txt"><em>{t('course.createdBy')}</em><strong>{c.instructorName}</strong></span>
|
||||||
|
<span className="cd-updated"><Icon name="calendar" size={14} />{t('course.lastUpdated')} <span className="num">{fmtDate(c.updatedAt)}</span></span>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<aside className="c-side">
|
<aside className="cd-side">
|
||||||
<div className="card buybox">
|
<div className="cd-buy">
|
||||||
{mine ? <>
|
<button className="cd-preview" disabled={!play} onClick={() => play && nav(play)} aria-label={playLabel}>
|
||||||
<div className="row-between"><span className="pill pill-ok"><Icon name="check" size={14} />{done ? t('course.completed') : t('course.owned')}</span><span className="small num">{p.pct}%</span></div>
|
<img src={photo} alt="" />
|
||||||
<div className="bar"><i style={{ width: `${p.pct}%` }} /></div>
|
{play && <span className="cd-preview-pill"><Icon name="play" size={12} /><i aria-hidden />{mine ? playLabel : t('course.preview')}</span>}
|
||||||
<span className="small muted num">{t('my.lessonsDone', { done: p.done, total: p.total })}</span>
|
</button>
|
||||||
{r && <button className={`btn btn-block ${done ? 'btn-ghost' : 'btn-accent'}`} onClick={() => nav(`/${locale}/learn/${c.slug}/${r.lesson.id}`)}>{playLabel}</button>}
|
{mine ? <>
|
||||||
</> : <>
|
<div className="row-between"><strong>{done ? t('course.completed') : t('course.owned')}</strong><span className="small num">{p.pct}%</span></div>
|
||||||
{c.prices.ETB != null && <div><div className="price num">{formatMoney(c.prices.ETB, 'ETB')}</div><p className="small muted">{t('checkout.lifetime')}</p></div>}
|
<div className="bar"><i style={{ width: `${p.pct}%` }} /></div>
|
||||||
<button className="btn btn-accent btn-block" disabled={c.status !== 'PUBLISHED' || c.prices.ETB == null} onClick={() => nav(`/${locale}/checkout/${c.slug}`)}>{t('course.buy', { price: formatMoney(c.prices.ETB ?? 0, 'ETB') })}</button>
|
<span className="small muted num">{t('my.lessonsDone', { done: p.done, total: p.total })}</span>
|
||||||
{preview && <button className="btn btn-ghost btn-block" onClick={() => nav(`/${locale}/learn/${c.slug}/${preview.id}`)}><Icon name="play" size={16} />{t('course.watchPreview')}</button>}
|
{r && <div className="cd-cta"><button className={`btn btn-lg ${done ? 'btn-ghost' : 'btn-accent'}`} onClick={() => nav(`/${locale}/learn/${c.slug}/${r.lesson.id}`)}>{playLabel}</button><button className="cd-round" onClick={share} aria-label={t('course.share')}><Icon name="share" size={18} /></button></div>}
|
||||||
</>}
|
</> : <>
|
||||||
|
{c.prices.ETB != null && <div className="cd-price"><span className="num">{formatMoney(c.prices.ETB, 'ETB')}</span><span>{t('course.lifetime')}</span></div>}
|
||||||
|
<div className="cd-cta">
|
||||||
|
<button className="btn btn-accent btn-lg" disabled={c.status !== 'PUBLISHED' || c.prices.ETB == null} onClick={() => nav(`/${locale}/checkout/${c.slug}`)}>{t('course.buy', { price: formatMoney(c.prices.ETB ?? 0, 'ETB') })}</button>
|
||||||
|
<button className="cd-round" onClick={share} aria-label={t('course.share')}><Icon name="share" size={18} /></button>
|
||||||
|
</div>
|
||||||
|
{preview && <button className="btn btn-ghost btn-block" onClick={() => nav(`/${locale}/learn/${c.slug}/${preview.id}`)}><Icon name="play" size={16} />{t('course.watchPreview')}</button>}
|
||||||
|
<p className="cd-note"><Icon name="lock" size={14} />{t('checkout.lifetime')}</p>
|
||||||
|
</>}
|
||||||
|
<div className="cd-includes">
|
||||||
|
<h2>{t('course.includes')}</h2>
|
||||||
|
<ul>{includes.map(([icon, label], k) => <li key={k}><Icon name={icon} size={18} />{label}</li>)}</ul>
|
||||||
{c.sequentialLessons && <p className="small muted">{t('course.sequential')}</p>}
|
{c.sequentialLessons && <p className="small muted">{t('course.sequential')}</p>}
|
||||||
</div>
|
</div>
|
||||||
<div className="card c-content">
|
</div>
|
||||||
<div className="c-content-h"><h2>{t('course.content')}</h2><span className="small muted num">{t('course.lessons', { n: lessons.length })} · {formatDuration(courseDuration(c))}</span></div>
|
</aside>
|
||||||
{chapters.map((ch, i) => {
|
|
||||||
const ls = [...ch.lessons].sort((a, b) => a.sortOrder - b.sortOrder).filter((l) => l.isPublished);
|
<section className="cd-body">
|
||||||
if (!ls.length) return null;
|
{pre && !preDone && <div className="banner">{t('course.prereq', { title: ct(pre, locale).title })} <button className="link" onClick={() => nav(`/${locale}/course/${pre.slug}`)}>{t('course.prereqLink', { title: ct(pre, locale).title })}</button></div>}
|
||||||
const d = ls.filter((l) => isCompleted(me, l.id)).length;
|
<div className="cd-tabs" role="tablist">{tabs.map(([k, label]) => <button key={k} role="tab" aria-selected={tab === k} onClick={() => setTab(k)}>{label}</button>)}</div>
|
||||||
return (
|
{tab === 'overview' && <div className="cd-pane">
|
||||||
<details key={ch.id} className="ch" open={i === 0}>
|
{!!text.outcomes?.length && <>
|
||||||
<summary><span className="grow"><strong>{tr(ch.translations, locale)?.title}</strong><span className="small muted num">{d}/{ls.length} · {formatDuration(ls.reduce((s, l) => s + l.durationSec, 0))}</span></span><Icon name="down" size={18} /></summary>
|
<h2><KitIcon name="brush" size={22} />{t('course.outcomes')}</h2>
|
||||||
{ls.map((l) => <LessonRow key={l.id} c={c} l={l} />)}
|
<ul className="cd-learn">{text.outcomes.map((o, k) => <li key={k}><Icon name="check" size={16} />{o}</li>)}</ul>
|
||||||
</details>
|
</>}
|
||||||
);
|
{text.description && <p style={{ whiteSpace: 'pre-line' }}>{text.description}</p>}
|
||||||
})}
|
{text.audience && <p className="small"><strong>{t('course.audience')}: </strong>{text.audience}</p>}
|
||||||
{!!c.assessments?.length && <details className="ch" open>
|
</div>}
|
||||||
<summary><span className="grow"><strong>{t('assess.title')}</strong><span className="small muted num">{c.assessments.filter((a) => me?.assessments?.[a.id]?.passed).length}/{c.assessments.length}</span></span><Icon name="down" size={18} /></summary>
|
{tab === 'content' && <div className="cd-pane cd-content">
|
||||||
{c.assessments.map((a) => <AssessmentRow key={a.id} c={c} a={a} />)}
|
<p className="small muted num">{t('course.lessons', { n: lessons.length })} · {formatDuration(courseDuration(c))}</p>
|
||||||
</details>}
|
{chapters.map((ch, i) => {
|
||||||
</div>
|
const ls = [...ch.lessons].sort((a, b) => a.sortOrder - b.sortOrder).filter((l) => l.isPublished);
|
||||||
</aside>
|
if (!ls.length) return null;
|
||||||
</div>
|
const d = ls.filter((l) => isCompleted(me, l.id)).length;
|
||||||
|
return (
|
||||||
|
<details key={ch.id} className="ch" open={i === 0}>
|
||||||
|
<summary><span className="grow"><strong>{tr(ch.translations, locale)?.title}</strong><span className="small muted num">{d}/{ls.length} · {formatDuration(ls.reduce((s, l) => s + l.durationSec, 0))}</span></span><Icon name="down" size={18} /></summary>
|
||||||
|
{ls.map((l) => <LessonRow key={l.id} c={c} l={l} />)}
|
||||||
|
</details>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
{!!c.assessments?.length && <details className="ch" open>
|
||||||
|
<summary><span className="grow"><strong>{t('assess.title')}</strong><span className="small muted num">{c.assessments.filter((a) => me?.assessments?.[a.id]?.passed).length}/{c.assessments.length}</span></span><Icon name="down" size={18} /></summary>
|
||||||
|
{c.assessments.map((a) => <AssessmentRow key={a.id} c={c} a={a} />)}
|
||||||
|
</details>}
|
||||||
|
</div>}
|
||||||
|
{tab === 'instructor' && <div className="cd-pane"><div className="row"><span className="avatar avatar-lg" aria-hidden>{initials(c.instructorName)}</span><div><strong>{c.instructorName}</strong><p className="small muted">{t('course.teaches', { n: teaches })}</p></div></div></div>}
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -659,6 +742,11 @@ function Player({ slug, lessonId }: { slug?: string; lessonId?: string }) {
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
{viewer && !viewer.id && <p className="small muted">{t('auth.noIdentity')}</p>}
|
{viewer && !viewer.id && <p className="small muted">{t('auth.noIdentity')}</p>}
|
||||||
|
<nav className="l-bar" aria-label={t('player.contents')}>
|
||||||
|
<button disabled={idx === 0} onClick={() => nav(`/${locale}/learn/${c.slug}/${lessons[idx - 1].id}`)}><Icon name="back" size={18} />{t('player.prev')}</button>
|
||||||
|
<button onClick={() => document.querySelector('.p-side')?.scrollIntoView({ behavior: 'smooth' })}><Icon name="list" size={18} /><span className="num">{idx + 1} / {lessons.length}</span></button>
|
||||||
|
<button className="l-next" disabled={!next} onClick={() => nav(`/${locale}/learn/${c.slug}/${next.id}`)}>{t('player.next')}<Icon name="chevron" size={18} /></button>
|
||||||
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -786,7 +874,7 @@ function VideoPanel({ c, lesson, next }: { c: Course; lesson: Lesson; next?: Les
|
||||||
|
|
||||||
function Checkout({ slug }: { slug?: string }) {
|
function Checkout({ slug }: { slug?: string }) {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
const { courses, me, locale, nav, ds, write } = useApp();
|
const { courses, categories, me, locale, nav, ds, write } = useApp();
|
||||||
const c = courses.find((x) => x.slug === slug);
|
const c = courses.find((x) => x.slug === slug);
|
||||||
const [method, setMethod] = useState('TELEBIRR');
|
const [method, setMethod] = useState('TELEBIRR');
|
||||||
const key = useRef(newId('idem_')); // one key per checkout screen: double clicks reuse it (PAY-09)
|
const key = useRef(newId('idem_')); // one key per checkout screen: double clicks reuse it (PAY-09)
|
||||||
|
|
@ -804,28 +892,34 @@ function Checkout({ slug }: { slug?: string }) {
|
||||||
setBusy(false);
|
setBusy(false);
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<section className="stack" style={{ maxWidth: 560 }}>
|
<div className="co">
|
||||||
<h1 style={{ fontSize: 'var(--fs-2xl)' }}>{t('checkout.title')}</h1>
|
<section className="cd-head co-main">
|
||||||
<div className="card row" style={{ flexWrap: 'nowrap' }}>
|
<h1>{t('checkout.title')}</h1>
|
||||||
<div className="thumb" style={{ width: 110, flex: 'none' }}><Cover course={c} locale={locale} /></div>
|
<fieldset className="pay-pick">
|
||||||
<div className="grow stack-sm"><strong>{ct(c, locale).title}</strong><span className="small muted">{t('checkout.lifetime')}</span></div>
|
<legend className="sr-only">{t('landing.payTitle')}</legend>
|
||||||
</div>
|
{METHODS.map((m) => (
|
||||||
<fieldset className="stack-sm" style={{ border: 0, padding: 0, margin: 0 }}>
|
<label key={m.id} className="pay-opt">
|
||||||
<legend className="sr-only">{t('checkout.title')}</legend>
|
<input type="radio" name="method" value={m.id} checked={method === m.id} onChange={() => setMethod(m.id)} />
|
||||||
{METHODS.map((m) => (
|
<PayLogo id={m.id} />
|
||||||
<label key={m.id} className="card check" style={{ padding: 16, alignItems: 'center' }}>
|
<span className="pay-opt-copy"><strong>{m.name}</strong><span>{m.via}</span></span>
|
||||||
<input type="radio" name="method" value={m.id} checked={method === m.id} onChange={() => setMethod(m.id)} />
|
</label>
|
||||||
<PayLogo id={m.id} /><span className="grow" style={{ fontWeight: 700 }}>{m.name}</span><span className="pill">{m.via}</span>
|
))}
|
||||||
</label>
|
</fieldset>
|
||||||
))}
|
<p className="cd-note"><Icon name="lock" size={14} />{t('landing.payNote')}</p>
|
||||||
</fieldset>
|
</section>
|
||||||
<div className="row-between"><span>{t('checkout.total')}</span><strong className="price num">{formatMoney(c.prices.ETB ?? 0, 'ETB')}</strong></div>
|
<aside className="cd-side">
|
||||||
{err && <p className="err" role="alert">{err}</p>}
|
<div className="cd-buy">
|
||||||
<button className="btn btn-accent btn-block" disabled={busy} onClick={start}>{t('checkout.pay', { method: methodName(method) })}</button>
|
<div className="cd-preview" aria-hidden><img src={c.coverAssetId ? ds.assetUrl(c.coverAssetId) : coursePhoto(c, categories.map((k) => k.id))} alt="" /></div>
|
||||||
<p className="small muted">{t('checkout.simulated')}</p>
|
<div className="stack-sm"><strong className="co-title">{ct(c, locale).title}</strong><span className="small muted">{t('course.by', { name: c.instructorName })}</span></div>
|
||||||
</section>
|
<div className="row-between co-total"><span>{t('checkout.total')}</span><strong className="num">{formatMoney(c.prices.ETB ?? 0, 'ETB')}</strong></div>
|
||||||
);
|
{err && <p className="err" role="alert">{err}</p>}
|
||||||
}
|
<div className="cd-cta"><button className="btn btn-accent btn-lg" disabled={busy} onClick={start}>{t('checkout.pay', { method: methodName(method) })}</button></div>
|
||||||
|
<p className="cd-note"><Icon name="shield" size={14} />{t('checkout.lifetime')}</p>
|
||||||
|
<p className="small muted">{t('checkout.simulated')}</p>
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
</div>
|
||||||
|
);}
|
||||||
|
|
||||||
/** Stands in for ArifPay's hosted page. The unlock still goes through applyPaymentEvent — the same rule the webhook uses — never the return URL. */
|
/** Stands in for ArifPay's hosted page. The unlock still goes through applyPaymentEvent — the same rule the webhook uses — never the return URL. */
|
||||||
function ProviderSim({ orderId }: { orderId?: string }) {
|
function ProviderSim({ orderId }: { orderId?: string }) {
|
||||||
|
|
@ -1058,10 +1152,11 @@ function SignIn() {
|
||||||
return (
|
return (
|
||||||
<section className="auth">
|
<section className="auth">
|
||||||
<div className="auth-side">
|
<div className="auth-side">
|
||||||
|
<img className="auth-photo" src="/photos/habesha-bride.jpg" alt="" />
|
||||||
<Logo />
|
<Logo />
|
||||||
<h2>{t('auth.sideTitle')}</h2>
|
<h2>{t('auth.sideTitle')}</h2>
|
||||||
<p>{t('auth.sideBody')}</p>
|
<p>{t('landing.lead')}</p>
|
||||||
<ul className="facts">{['fact1', 'fact2', 'fact3'].map((k) => <li key={k}><Icon name="check" size={16} />{t(`landing.${k}`)}</li>)}</ul>
|
<ul className="facts">{['fact2', 'fact3'].map((k) => <li key={k}><Icon name="check" size={16} />{t(`landing.${k}`)}</li>)}</ul>
|
||||||
</div>
|
</div>
|
||||||
<div className="auth-main">
|
<div className="auth-main">
|
||||||
{!viewer?.id ? <Empty>{t('auth.noIdentity')}</Empty> : step === 'start' ? <form className="stack" onSubmit={(e) => { e.preventDefault(); send(); }}>
|
{!viewer?.id ? <Empty>{t('auth.noIdentity')}</Empty> : step === 'start' ? <form className="stack" onSubmit={(e) => { e.preventDefault(); send(); }}>
|
||||||
|
|
|
||||||
|
|
@ -1,42 +1,42 @@
|
||||||
/* Layout: student = quiet single column with Ge'ez titles given room.
|
/* Layout: student = quiet single column with Ge'ez titles given room.
|
||||||
Tokens mirror design/tokens.json (§11.3). Components never use raw colors. */
|
Tokens mirror design/tokens.json (§11.3). Components never use raw colors. */
|
||||||
:root {
|
:root {
|
||||||
--ink: #1D3557; --ink-2: #37627D; --ink-3: #4F7590;
|
--ink: #111111; --ink-2: #3A3A3A; --ink-3: #6B6B6B;
|
||||||
--paper: #FFFFFF; --canvas: #F1FAEE; --mist: #EDF8F8; --line: #D7E5EE;
|
--paper: #FFFFFF; --canvas: #F4F4F4; --mist: #F7F7F7; --line: #E4E4E4;
|
||||||
--accent: #E63946; --accent-ink: #FFFFFF; --accent-soft: #FAD7DA; --accent-hover: #CB1928;
|
--accent: #111111; --accent-ink: #FFFFFF; --accent-soft: #EFEFEF; --accent-hover: #000000;
|
||||||
--brand-2: #457B9D; --brand-2-soft: #DCF0F1; --brand-3: #A8DADC;
|
--brand-2: #222222; --brand-2-soft: #F0F0F0; --brand-3: #D0D0D0;
|
||||||
--success: #2E7D5B; --success-soft: #E3F4EA; --alert: #CB1928; --alert-soft: #FAD7DA; --warn-soft: #FDF1D8;
|
--success: #111111; --success-soft: #EFEFEF; --alert: #000000; --alert-soft: #E6E6E6; --warn-soft: #F3F3F3;
|
||||||
--info-soft: #DCF0F1; --on-ink: #FFFFFF;
|
--info-soft: #F0F0F0; --on-ink: #FFFFFF;
|
||||||
--tone-rose: #FAD7DA; --tone-clay: #F1FAEE; --tone-plum: #D7E5EE; --tone-sand: #DCF0F1; --tone-sage: #CAE9EA; --tone-ink: #C4D4EB;
|
--tone-rose: #E8E8E8; --tone-clay: #F5F5F5; --tone-plum: #D4D4D4; --tone-sand: #EEEEEE; --tone-sage: #DEDEDE; --tone-ink: #C8C8C8;
|
||||||
--f-latin: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
--f-latin: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
||||||
--f-eth: 'Noto Sans Ethiopic', 'Atkinson Hyperlegible', system-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;
|
--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;
|
--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;
|
--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: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 1px rgba(0, 0, 0, .03);
|
||||||
--shadow-pop: 0 12px 32px rgba(29, 53, 87, .16);
|
--shadow-pop: 0 12px 32px rgba(0, 0, 0, .16);
|
||||||
color-scheme: light;
|
color-scheme: light;
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root:not([data-theme="light"]) {
|
:root:not([data-theme="light"]) {
|
||||||
--ink: #EDF8F8; --ink-2: #B9E2E3; --ink-3: #88B1CB;
|
--ink: #F5F5F5; --ink-2: #C8C8C8; --ink-3: #9A9A9A;
|
||||||
--paper: #0C1623; --canvas: #060B12; --mist: #122035; --line: #1B313E;
|
--paper: #0A0A0A; --canvas: #000000; --mist: #161616; --line: #2A2A2A;
|
||||||
--accent: #EB5F6B; --accent-ink: #FFFFFF; --accent-soft: #3A1418; --accent-hover: #F08790;
|
--accent: #F5F5F5; --accent-ink: #0A0A0A; --accent-soft: #2A2A2A; --accent-hover: #FFFFFF;
|
||||||
--brand-2: #6097B9; --brand-2-soft: #163637; --brand-3: #70C3C6;
|
--brand-2: #E0E0E0; --brand-2-soft: #1C1C1C; --brand-3: #3A3A3A;
|
||||||
--success: #5CC08F; --success-soft: #173328; --alert: #F08790; --alert-soft: #3A1418; --warn-soft: #3A321A;
|
--success: #F5F5F5; --success-soft: #1A1A1A; --alert: #FFFFFF; --alert-soft: #2A2A2A; --warn-soft: #1F1F1F;
|
||||||
--info-soft: #163637; --on-ink: #0C1623;
|
--info-soft: #1C1C1C; --on-ink: #0A0A0A;
|
||||||
--tone-rose: #3A1418; --tone-clay: #1A2E1E; --tone-plum: #1B313E; --tone-sand: #163637; --tone-sage: #1F4446; --tone-ink: #172B46;
|
--tone-rose: #2A2A2A; --tone-clay: #1A1A1A; --tone-plum: #333333; --tone-sand: #242424; --tone-sage: #3A3A3A; --tone-ink: #444444;
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
:root[data-theme="dark"] {
|
:root[data-theme="dark"] {
|
||||||
--ink: #EDF8F8; --ink-2: #B9E2E3; --ink-3: #88B1CB;
|
--ink: #F5F5F5; --ink-2: #C8C8C8; --ink-3: #9A9A9A;
|
||||||
--paper: #0C1623; --canvas: #060B12; --mist: #122035; --line: #1B313E;
|
--paper: #0A0A0A; --canvas: #000000; --mist: #161616; --line: #2A2A2A;
|
||||||
--accent: #EB5F6B; --accent-ink: #FFFFFF; --accent-soft: #3A1418; --accent-hover: #F08790;
|
--accent: #F5F5F5; --accent-ink: #0A0A0A; --accent-soft: #2A2A2A; --accent-hover: #FFFFFF;
|
||||||
--brand-2: #6097B9; --brand-2-soft: #163637; --brand-3: #70C3C6;
|
--brand-2: #E0E0E0; --brand-2-soft: #1C1C1C; --brand-3: #3A3A3A;
|
||||||
--success: #5CC08F; --success-soft: #173328; --alert: #F08790; --alert-soft: #3A1418; --warn-soft: #3A321A;
|
--success: #F5F5F5; --success-soft: #1A1A1A; --alert: #FFFFFF; --alert-soft: #2A2A2A; --warn-soft: #1F1F1F;
|
||||||
--info-soft: #163637; --on-ink: #0C1623;
|
--info-soft: #1C1C1C; --on-ink: #0A0A0A;
|
||||||
--tone-rose: #3A1418; --tone-clay: #1A2E1E; --tone-plum: #1B313E; --tone-sand: #163637; --tone-sage: #1F4446; --tone-ink: #172B46;
|
--tone-rose: #2A2A2A; --tone-clay: #1A1A1A; --tone-plum: #333333; --tone-sand: #242424; --tone-sage: #3A3A3A; --tone-ink: #444444;
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -112,7 +112,6 @@ textarea.input { min-height: 110px; resize: vertical; }
|
||||||
.modal { background: var(--paper); border-radius: var(--r-lg); padding: 24px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 16px; }
|
.modal { background: var(--paper); border-radius: var(--r-lg); padding: 24px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 16px; }
|
||||||
.feedback-btn { white-space: nowrap; }
|
.feedback-btn { white-space: nowrap; }
|
||||||
@media (max-width: 700px) { .feedback-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .feedback-btn { padding: 0; width: 36px; } }
|
@media (max-width: 700px) { .feedback-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .feedback-btn { padding: 0; width: 36px; } }
|
||||||
.demo-strip { background: var(--ink); color: var(--on-ink) !important; color: var(--ink); font-size: 12px; text-align: center; padding: 4px 16px; }
|
|
||||||
|
|
||||||
/* ---------- student shell ---------- */
|
/* ---------- student shell ---------- */
|
||||||
.s-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
|
.s-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
|
||||||
|
|
@ -200,12 +199,18 @@ textarea.input { min-height: 110px; resize: vertical; }
|
||||||
|
|
||||||
/* player */
|
/* player */
|
||||||
.p-wrap { display: grid; gap: 20px; }
|
.p-wrap { display: grid; gap: 20px; }
|
||||||
|
/* lesson bar replaces the app tabs inside a course on phones/tablets */
|
||||||
|
.l-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
|
||||||
|
.l-bar button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: var(--r-pill); padding: 0 14px; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; }
|
||||||
|
.l-bar .l-next { background: var(--ink); color: var(--paper); border-color: var(--ink); }
|
||||||
|
.l-bar button:disabled { opacity: .4; cursor: default; }
|
||||||
|
@media (min-width: 1024px) { .l-bar { display: none; } }
|
||||||
@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; } }
|
@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 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 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; }
|
.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%; } }
|
@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)); }
|
.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 +280,9 @@ table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
|
||||||
.pay-logo { gap: 10px; }
|
.pay-logo { gap: 10px; }
|
||||||
|
|
||||||
/* ================= v3: cleaner shell, landing, course page, sign-in (inspo: e-Learning landing, OnlineLMS, Slothui course) ================= */
|
/* ================= 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; }
|
: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: #0C1623; --hero-b: #163637; } }
|
@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: #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: #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; }
|
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); }
|
.btn-lg { min-height: 50px; padding: 0 24px; font-size: var(--fs-base); }
|
||||||
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
|
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
|
||||||
|
|
@ -310,10 +315,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; } }
|
@media (max-width: 600px) { .lang-pick { padding: 0 4px 0 10px; } .lang-pick select { max-width: 76px; } }
|
||||||
|
|
||||||
/* landing */
|
/* landing */
|
||||||
.s-main { max-width: 1200px; padding-left: 20px; padding-right: 20px; gap: 64px; }
|
.s-main { max-width: 1200px; padding-left: 24px; padding-right: 24px; 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)); }
|
.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; }
|
.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 { 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 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; }
|
.l-hero .lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; }
|
||||||
|
|
@ -324,7 +332,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 { 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 { aspect-ratio: 4 / 3; border-radius: 16px; padding: 28px; }
|
||||||
.hero-frame .cover .ttl { font-size: clamp(26px, 3.4vw, 40px); }
|
.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); }
|
.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 { 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); }
|
.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 +428,7 @@ h1:lang(en), h2:lang(en), h3:lang(en), h1:lang(om), h2:lang(om), h3:lang(om), .b
|
||||||
/* sign-in */
|
/* 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); }
|
.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; } }
|
@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 .logo { margin-bottom: auto; }
|
||||||
.auth-side h2 { font-size: var(--fs-2xl); color: #fff; } .auth-side p { opacity: .8; }
|
.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); }
|
.auth-side .facts { color: rgba(255, 255, 255, .85); flex-direction: column; } .auth-side .facts svg { color: var(--brand-3); }
|
||||||
|
|
@ -435,7 +443,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; } }
|
@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; }
|
.btn-accent:hover { background: var(--accent-hover); filter: none; }
|
||||||
.logo { display: inline-grid; flex: none; }
|
.logo { display: inline-grid; flex: none; }
|
||||||
.logo svg { display: block; }
|
.logo svg { display: block; }
|
||||||
|
|
@ -456,11 +464,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); }
|
.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; }
|
.steps li::before { background: var(--accent); color: #fff; }
|
||||||
.pay-logo { background: var(--paper); }
|
.pay-logo { background: var(--paper); }
|
||||||
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #1D3557, #29495E 60%, #457B9D); color: #fff; }
|
.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: #A8DADC; opacity: .18; pointer-events: none; }
|
.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; }
|
.cta-band > * { position: relative; z-index: 1; }
|
||||||
.continue { background: linear-gradient(120deg, #1D3557, #29495E); color: #fff; }
|
.continue { background: #111; color: #fff; }
|
||||||
.continue .bar > i { background: #A8DADC; }
|
.continue .bar > i { background: #fff; }
|
||||||
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
|
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
|
||||||
.ccard:hover .ccard-cta { background: var(--accent); border-color: var(--accent); color: #fff; }
|
.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; }
|
.pay-mark { width: 48px; height: 28px; flex: none; display: grid; place-items: center; }
|
||||||
|
|
@ -481,10 +489,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 { 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 strong { display: block; color: var(--ink); }
|
||||||
.foot-people span { font-size: var(--fs-sm); color: var(--ink-3); }
|
.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)); }
|
.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)); } }
|
@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; }
|
.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 +533,15 @@ fieldset[disabled] .quiz-opt { cursor: default; }
|
||||||
.btn:active, .icon-btn:active, .seg button:active, .quiz-opt:active { transform: scale(0.97); }
|
.btn:active, .icon-btn:active, .seg button:active, .quiz-opt:active { transform: scale(0.97); }
|
||||||
.ccard:active, .cat-card:active { transform: scale(0.99); }
|
.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 */
|
/* 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); }
|
.ch > summary svg { transition: transform 200ms var(--ease-out); }
|
||||||
/* toast slides up from where it sits instead of popping in */
|
/* toast slides up from where it sits instead of popping in */
|
||||||
.toast { transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out); }
|
.toast { transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out); }
|
||||||
@starting-style { .toast { opacity: 0; translate: 0 8px; } }
|
@starting-style { .toast { opacity: 0; translate: 0 8px; } }
|
||||||
/* course page: play button in the corner so it never covers the Ge'ez title */
|
/* play button in the corner so it never covers the Ge'ez title (landing hero and course page) */
|
||||||
.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 .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); }
|
||||||
.c-screen:hover .play-big { transform: scale(1.06); }
|
.hero-frame:hover .play-big, .c-screen:hover .play-big { transform: scale(1.06); }
|
||||||
.c-screen .cover .ttl { max-width: calc(100% - 72px); }
|
.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 */
|
/* small thumbnails (my courses, checkout): two short lines instead of a clipped third */
|
||||||
.thumb .cover { padding: 10px; }
|
.thumb .cover { padding: 10px; }
|
||||||
.thumb .cover .ttl { font-size: 15px; line-height: 1.3; -webkit-line-clamp: 2; }
|
.thumb .cover .ttl { font-size: 15px; line-height: 1.3; -webkit-line-clamp: 2; }
|
||||||
|
|
@ -569,7 +573,306 @@ fieldset[disabled] .quiz-opt { cursor: default; }
|
||||||
/* UI motion under 300 ms */
|
/* UI motion under 300 ms */
|
||||||
.bar > i { transition: width 300ms var(--ease-out); }
|
.bar > i { transition: width 300ms var(--ease-out); }
|
||||||
.ring .fg { transition: stroke-dashoffset 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 */
|
/* keep a number and its unit together */
|
||||||
.statbar strong { white-space: nowrap; }
|
.statbar strong { white-space: nowrap; }
|
||||||
@media (max-width: 599px) { .statbar strong { font-size: var(--fs-lg); } }
|
@media (max-width: 599px) { .statbar strong { font-size: var(--fs-lg); } }
|
||||||
|
|
||||||
|
/* ---------- landing hero, 2026-10-20 (inspo: Hyper Effekt, Ferrari): headline set straight onto a moving reel of portraits ---------- */
|
||||||
|
.l-hero { --ink: #F5F5F5; --ink-2: #D6D6D6; --ink-3: #9A9A9A; --paper: #141414; --mist: #1C1C1C; --line: #3A3A3A; --accent: #FFFFFF; --accent-ink: #0A0A0A; --brand-2: #FFFFFF;
|
||||||
|
position: relative; overflow: hidden; isolation: isolate; color: var(--ink); background: #0A0A0A; margin: -12px calc(50% - 50vw + 12px) 0; border-radius: 28px;
|
||||||
|
min-height: min(88svh, 820px); display: flex; align-items: flex-end; padding: 0 clamp(20px, 5vw, 64px) clamp(28px, 5vw, 64px); }
|
||||||
|
.l-hero::before, .l-hero::after { display: none; }
|
||||||
|
.reel { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
|
||||||
|
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .55), rgba(10, 10, 10, .05) 30%, rgba(10, 10, 10, .35) 55%, #0A0A0A 96%), linear-gradient(90deg, rgba(10, 10, 10, .7), transparent 60%); }
|
||||||
|
.reel-track { display: flex; gap: 12px; height: 100%; width: max-content; padding: 12px 0; animation: reel 60s linear infinite; }
|
||||||
|
.reel-track img { height: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; object-position: center 22%; border-radius: 18px; flex: none; }
|
||||||
|
.reel-track img:nth-child(odd) { margin-top: 48px; height: calc(100% - 48px); }
|
||||||
|
.l-hero .hero-copy { align-items: flex-start; text-align: left; max-width: 720px; gap: 18px; }
|
||||||
|
.l-hero .live-pill { align-self: flex-start; }
|
||||||
|
.l-hero h1 { font-size: clamp(44px, 7.2vw, 96px); line-height: .96; letter-spacing: -.05em; max-width: 12ch; text-wrap: balance; }
|
||||||
|
.l-hero h1:lang(am), .l-hero h1:lang(ti) { line-height: 1.25; letter-spacing: 0; }
|
||||||
|
.l-hero .lead { max-width: 40ch; text-wrap: pretty; color: var(--ink-2); }
|
||||||
|
.l-hero .btn-ghost { background: rgba(10, 10, 10, .45); backdrop-filter: blur(8px); }
|
||||||
|
.l-hero .btn-ghost:hover { background: #1C1C1C; }
|
||||||
|
.l-hero .play-dot { background: #fff; color: #0A0A0A; }
|
||||||
|
.l-hero + .statbar { margin-top: 16px; }
|
||||||
|
@media (max-width: 760px) {
|
||||||
|
.l-hero { margin-top: -8px; border-radius: 22px; min-height: 86svh; padding: 0 18px 24px; }
|
||||||
|
.reel-track { animation-duration: 40s; gap: 8px; }
|
||||||
|
.reel-track img { border-radius: 14px; }
|
||||||
|
.reel-track img:nth-child(odd) { margin-top: 28px; height: calc(100% - 28px); }
|
||||||
|
.reel::after { background: linear-gradient(180deg, rgba(10, 10, 10, .5), transparent 22%, rgba(10, 10, 10, .55) 48%, #0A0A0A 82%); }
|
||||||
|
}
|
||||||
|
@media (prefers-reduced-motion: reduce) { .reel-track { animation: none; } }
|
||||||
|
|
||||||
|
/* ---------- 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); } }
|
||||||
|
|
||||||
|
/* steps: three photo cards; payment marks live inside step 2 instead of a whole panel */
|
||||||
|
.steps3 { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: s; }
|
||||||
|
.step { counter-increment: s; position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; min-height: 360px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; color: #fff; background: #141414; }
|
||||||
|
.step > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; z-index: -2; transition: transform 700ms var(--ease-out); }
|
||||||
|
.step::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .85)); }
|
||||||
|
.step:hover > img { transform: scale(1.04); }
|
||||||
|
.step::before { content: '0' counter(s); position: absolute; top: 16px; left: 18px; font-family: var(--f-head); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(10, 10, 10, .55); backdrop-filter: blur(6px); }
|
||||||
|
.step strong { font-size: clamp(20px, 2vw, 24px); line-height: 1.15; letter-spacing: -.02em; }
|
||||||
|
.step-pay { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||||
|
.step-pay .pay-mark { width: 44px; height: 28px; border-radius: 7px; background: #fff; padding: 3px 5px; }
|
||||||
|
.step-pay .pay-mark img { width: 100%; height: 100%; }
|
||||||
|
@media (max-width: 760px) {
|
||||||
|
.steps3 { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; scrollbar-width: none; }
|
||||||
|
.steps3::-webkit-scrollbar { display: none; }
|
||||||
|
.step { scroll-snap-align: start; min-height: 320px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.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: full wordmark at the top of the page, crossfades to the "Sm" monogram once scrolled (.s-top.scrolled) */
|
||||||
|
.brand { display: grid !important; place-items: center start; }
|
||||||
|
.brand > .logo { grid-area: 1 / 1; display: inline-grid !important; max-width: none; overflow: visible; transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out); transform-origin: left center; }
|
||||||
|
.brand > .logo + .logo { opacity: 0; transform: scale(.85); pointer-events: none; }
|
||||||
|
.brand > .logo + .logo img { height: 40px !important; max-height: none; }
|
||||||
|
.s-top.scrolled .brand > .logo:first-child { opacity: 0; transform: scale(.9) translateY(-4px); }
|
||||||
|
.s-top.scrolled .brand > .logo + .logo { opacity: 1; transform: none; }
|
||||||
|
@media (max-width: 600px) { .brand > .logo:first-child img { height: 34px !important; } }
|
||||||
|
@media (prefers-reduced-motion: reduce) { .brand > .logo { transition: none; } }
|
||||||
|
|
||||||
|
/* ---------- 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; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- course detail 2026-10-20 (user reference): info card + segmented tabs left, sticky purchase card right ---------- */
|
||||||
|
.cd { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "head side" "body side"; align-items: start; }
|
||||||
|
@media (max-width: 1023px) { .cd { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "body"; } }
|
||||||
|
.cd-head, .cd-buy, .cd-body { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
|
||||||
|
:root[data-theme="dark"] .cd-head, :root[data-theme="dark"] .cd-buy, :root[data-theme="dark"] .cd-body { background: #111; }
|
||||||
|
.cd-head { grid-area: head; padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px) 0; display: flex; flex-direction: column; gap: 16px; }
|
||||||
|
.cd-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
|
||||||
|
.cd .crumbs { gap: 8px; font-size: 13px; }
|
||||||
|
.cd .crumbs button { padding: 0; font-weight: 500; }
|
||||||
|
.cd .crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
|
.cd-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 6px; background: var(--mist); font-size: 12px; font-weight: 700; }
|
||||||
|
.cd-head h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.03em; max-width: 22ch; }
|
||||||
|
.cd-head h1:lang(am), .cd-head h1:lang(ti) { line-height: 1.35; letter-spacing: 0; }
|
||||||
|
.cd-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
|
||||||
|
.cd-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); color: var(--ink-2); }
|
||||||
|
.cd-pill svg { color: var(--ink-3); } .cd-pill strong { color: var(--ink); }
|
||||||
|
.cd-lead { color: var(--ink-2); max-width: 70ch; }
|
||||||
|
.cd-by { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px calc(-1 * clamp(20px, 3vw, 28px)) 0; padding: 16px clamp(20px, 3vw, 28px); border-top: 1px solid var(--line); }
|
||||||
|
.cd-by-txt { display: flex; flex-direction: column; line-height: 1.3; }
|
||||||
|
.cd-by-txt em { font-size: 12px; color: var(--ink-3); }
|
||||||
|
.cd-updated { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
|
||||||
|
|
||||||
|
.cd-side { grid-area: side; position: sticky; top: 84px; }
|
||||||
|
@media (max-width: 1023px) { .cd-side { position: static; } }
|
||||||
|
.cd-buy { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
|
||||||
|
.cd-preview { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--mist); cursor: pointer; }
|
||||||
|
.cd-preview[disabled] { cursor: default; }
|
||||||
|
.cd-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 600ms var(--ease-out); }
|
||||||
|
.cd-preview:hover img { transform: scale(1.03); }
|
||||||
|
.cd-preview-pill { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(20, 20, 20, .55); backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 600; }
|
||||||
|
.cd-preview-pill i { width: 1px; height: 14px; background: rgba(255, 255, 255, .4); }
|
||||||
|
.cd-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 4px 0; }
|
||||||
|
.cd-price .num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
|
||||||
|
.cd-price > span:last-child { font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); }
|
||||||
|
.cd-cta { display: flex; gap: 10px; }
|
||||||
|
.cd-cta .btn { flex: 1; border-radius: 999px; min-height: 54px; }
|
||||||
|
.cd-round { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background 160ms; }
|
||||||
|
.cd-round:hover { background: var(--mist); }
|
||||||
|
.cd-buy .btn-ghost.btn-block { border-radius: 999px; }
|
||||||
|
.cd-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); padding: 0 4px; }
|
||||||
|
.cd-includes { padding: 6px 4px 4px; display: flex; flex-direction: column; gap: 10px; }
|
||||||
|
.cd-includes h2 { font-size: var(--fs-base); }
|
||||||
|
.cd-includes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
|
||||||
|
.cd-includes li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
|
||||||
|
.cd-includes li svg { color: var(--ink-3); flex: none; }
|
||||||
|
|
||||||
|
.cd-body { grid-area: body; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
||||||
|
.cd-body > .banner { margin: 8px 8px 0; }
|
||||||
|
.cd-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--mist); }
|
||||||
|
.cd-tabs button { border: 0; background: none; padding: 12px 10px; border-radius: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background 160ms, color 160ms, box-shadow 160ms; }
|
||||||
|
.cd-tabs button:hover { color: var(--ink); }
|
||||||
|
.cd-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .06); }
|
||||||
|
:root[data-theme="dark"] .cd-tabs button[aria-selected="true"] { background: #262626; }
|
||||||
|
.cd-pane { padding: 20px clamp(12px, 2vw, 20px) 20px; display: flex; flex-direction: column; gap: 16px; }
|
||||||
|
.cd-pane h2 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xl); letter-spacing: -.02em; }
|
||||||
|
.cd-learn { list-style: none; margin: 0; padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; background: var(--mist); border-radius: 16px; }
|
||||||
|
@media (max-width: 640px) { .cd-learn { grid-template-columns: 1fr; } }
|
||||||
|
.cd-learn li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
|
||||||
|
.cd-learn li svg { flex: none; margin-top: 3px; color: var(--ink); }
|
||||||
|
.cd-content { padding-top: 12px; gap: 0; }
|
||||||
|
.cd-content > p { padding: 0 4px 10px; }
|
||||||
|
.cd-content .ch { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
|
||||||
|
.cd-content .ch:last-child { border-bottom: 1px solid var(--line); }
|
||||||
|
|
||||||
|
/* covers: a category photo until courses have uploaded art */
|
||||||
|
.cover.has-img { background: var(--mist); }
|
||||||
|
.cover.has-img img { object-position: center 25%; }
|
||||||
|
.cover.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .18), transparent 40%); pointer-events: none; }
|
||||||
|
.cover .pill { z-index: 1; }
|
||||||
|
|
||||||
|
/* checkout: same two cards as the course page */
|
||||||
|
.co { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "head side"; align-items: start; }
|
||||||
|
@media (max-width: 1023px) { .co { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side"; } }
|
||||||
|
.co-main { padding-bottom: clamp(20px, 3vw, 28px); }
|
||||||
|
.co-main h1 { font-size: clamp(26px, 3vw, 34px); }
|
||||||
|
.co-title { font-size: var(--fs-lg); line-height: 1.25; }
|
||||||
|
.co-total { padding-top: 12px; border-top: 1px solid var(--line); }
|
||||||
|
.co-total strong { font-size: 26px; font-weight: 800; }
|
||||||
|
.co .cd-preview { aspect-ratio: 16 / 9; cursor: default; }
|
||||||
|
|
||||||
|
/* sign-in: a portrait behind the side panel */
|
||||||
|
.auth-side { position: relative; overflow: hidden; isolation: isolate; }
|
||||||
|
.auth-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: -2; }
|
||||||
|
.auth-side::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .15) 30%, rgba(0, 0, 0, .85) 72%); }
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.cd-tabs button { padding: 10px 4px; font-size: 14px; }
|
||||||
|
.cd-pane h2 { font-size: var(--fs-lg); }
|
||||||
|
.co .cd-preview { display: none; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- mobile-first pass 2026-10-20 (inspo: Coursera / Babbel phone rails) ---------- */
|
||||||
|
@media (max-width: 560px) {
|
||||||
|
/* categories: a swipeable rail instead of a 2-up grid that orphans the third card */
|
||||||
|
.look-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; scrollbar-width: none; }
|
||||||
|
.look-grid::-webkit-scrollbar { display: none; }
|
||||||
|
.look { scroll-snap-align: start; }
|
||||||
|
/* stats: one row of three, icon over number */
|
||||||
|
.l-hero + .statbar { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; }
|
||||||
|
.statbar > div { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 10px; }
|
||||||
|
.statbar .stat-ic { width: 36px; height: 36px; border-radius: 10px; }
|
||||||
|
}
|
||||||
|
/* narrow phones: header actions must fit 360-390px signed out (feedback, theme, language, Get started) */
|
||||||
|
@media (max-width: 420px) { .s-actions { gap: 2px; } .s-actions .lang-pick > svg { display: none; } .s-actions .lang-pick { padding-left: 8px; } .s-top-in { gap: 6px; } }
|
||||||
|
/* "Powered by Yaltopia Tech": a light band sweeps across the name every few seconds */
|
||||||
|
.powered { text-align: center; font-size: 12px; color: var(--ink-3); padding: 18px 16px 4px; letter-spacing: .04em; }
|
||||||
|
.shine { font-weight: 700; text-decoration: none; color: transparent; background: linear-gradient(110deg, var(--ink-2) 40%, #fff 50%, var(--ink-2) 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; animation: shine 3.2s linear infinite; }
|
||||||
|
:root:not([data-theme="dark"]) .shine { background-image: linear-gradient(110deg, var(--ink) 40%, #B9B9B9 50%, var(--ink) 60%); }
|
||||||
|
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
|
||||||
|
@media (prefers-reduced-motion: reduce) { .shine { animation: none; color: var(--ink); background: none; } }
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import { useEffect, useRef, useState, type ReactNode } from 'react';
|
||||||
import type { Course, Locale } from '@lms/data';
|
import type { Course, Locale } from '@lms/data';
|
||||||
import { useApp } from './store';
|
import { useApp } from './store';
|
||||||
import { tr } from './domain';
|
import { tr } from './domain';
|
||||||
|
import { LOGO_MARK, LOGO_WORDMARK } from './brandLogo';
|
||||||
|
|
||||||
const PATHS: Record<string, string> = {
|
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',
|
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',
|
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',
|
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',
|
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 }) {
|
export function Icon({ name, size = 20, label }: { name: keyof typeof PATHS | string; size?: number; label?: string }) {
|
||||||
|
|
@ -59,75 +62,44 @@ 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.
|
// Sirkul logo: the full wordmark, or just the "Sm" monogram where space is tight. Height drives the size.
|
||||||
export function Logo({ size = 34 }: { size?: number }) {
|
export function Logo({ size = 34, mark = false }: { size?: number; mark?: boolean }) {
|
||||||
return (
|
return <span className="logo" aria-hidden><img src={mark ? LOGO_MARK : LOGO_WORDMARK} alt="" style={{ height: mark ? size : size * 1.25 }} /></span>;
|
||||||
<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>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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_ORIGIN = 'https://player.vimeo.com';
|
||||||
export const VIMEO_PLACEHOLDER = `${VIMEO_ORIGIN}/video/1084537?dnt=1&title=0&byline=0&portrait=0`;
|
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
|
// Makeup icons from IconPark Outline (ByteDance, Apache-2.0), via iconify.design. 48-unit grid, 4-unit stroke.
|
||||||
// under the case's grid lines so the shapes break across tiles (the reference's cut-paper look).
|
const KIT: Record<string, ReactNode> = {
|
||||||
const PANS = ['#E63946', '#F5AFB5', '#A8DADC', '#E9B8A7', '#457B9D', '#F1FAEE', '#C98B6B', '#FAD7DA', '#315A93', '#8E4B45', '#70C3C6', '#CB1928'];
|
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" /></>,
|
||||||
export function MakeupBox() {
|
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" />,
|
||||||
const W = 92, H = 92, G = 6, P = 14; // tile size, gap, case padding
|
lipstick: <path strokeLinecap="round" d="M29 24h12v20H29zM7 24h14v20H7zm3-12.545V24h8V4c-6.5 0-8 5.636-8 7.454M7 32h14" />,
|
||||||
return (
|
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" /></>,
|
||||||
<div className="foot-box" aria-hidden>
|
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" /></>,
|
||||||
<svg viewBox={`0 0 ${P * 2 + W * 3 + G * 2} ${P * 2 + H * 4 + G * 3}`} role="presentation">
|
};
|
||||||
<defs>
|
export function KitIcon({ name, size = 24 }: { name: keyof typeof KIT | string; size?: number }) {
|
||||||
<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>
|
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" stroke="currentColor" strokeWidth="4" strokeLinejoin="round" aria-hidden>{KIT[name]}</svg>;
|
||||||
</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>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const TONES = ['rose', 'clay', 'plum', 'sand', 'sage', 'ink'];
|
const TONES = ['rose', 'clay', 'plum', 'sand', 'sage', 'ink'];
|
||||||
|
|
||||||
|
// Stand-in photos (apps/demo/public/photos) until courses get uploaded covers: one per category, in category order.
|
||||||
|
export const CAT_PHOTOS = ['habesha-harari.jpg', 'hero.jpg', 'habesha-trad.jpg', 'habesha-eritrean.jpg'];
|
||||||
|
export function coursePhoto(course: Course, categoryIds: string[]) {
|
||||||
|
return `/photos/${CAT_PHOTOS[Math.max(0, categoryIds.indexOf(course.categoryId)) % CAT_PHOTOS.length]}`;
|
||||||
|
}
|
||||||
|
|
||||||
export function Cover({ course, locale, badge }: { course: Course; locale: Locale; badge?: ReactNode }) {
|
export function Cover({ course, locale, badge }: { course: Course; locale: Locale; badge?: ReactNode }) {
|
||||||
const { ds } = useApp();
|
const { ds, categories } = useApp();
|
||||||
// No image → the title itself, set in Ge'ez serif, is the cover (§11.2: the script is the visual identity).
|
// No image → the title itself, set in Ge'ez serif, is the cover (§11.2: the script is the visual identity).
|
||||||
// Shows the title in the other script from the page's language, so the cover adds a second language instead of repeating the card title.
|
// Shows the title in the other script from the page's language, so the cover adds a second language instead of repeating the card title.
|
||||||
const other = locale === 'am' || locale === 'ti' ? 'en' : 'am';
|
const other = locale === 'am' || locale === 'ti' ? 'en' : 'am';
|
||||||
const title = course.translations[other]?.title ?? tr(course.translations, locale)?.title ?? '';
|
const title = course.translations[other]?.title ?? tr(course.translations, locale)?.title ?? '';
|
||||||
const tone = course.coverTone && TONES.includes(course.coverTone) ? course.coverTone : 'ink';
|
const tone = course.coverTone && TONES.includes(course.coverTone) ? course.coverTone : 'ink';
|
||||||
return (
|
return (
|
||||||
<div className={`cover tone-${tone} ${course.coverAssetId ? 'has-img' : ''}`}>
|
<div className={`cover tone-${tone} has-img`}>
|
||||||
{course.coverAssetId && <img src={ds.assetUrl(course.coverAssetId)} alt="" />}
|
<img src={course.coverAssetId ? ds.assetUrl(course.coverAssetId) : coursePhoto(course, categories.map((k) => k.id))} alt="" loading="lazy" />
|
||||||
{badge}
|
{badge}
|
||||||
<span className="ttl" lang={other} aria-hidden>{title}</span>
|
<span className="ttl" lang={other} aria-hidden>{title}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@
|
||||||
"demoBanner": "ማሳያ — ክፍያ፣ ኤስኤምኤስ እና ኢሜይል የማስመሰያ ናቸው።",
|
"demoBanner": "ማሳያ — ክፍያ፣ ኤስኤምኤስ እና ኢሜይል የማስመሰያ ናቸው።",
|
||||||
"language": "ቋንቋ",
|
"language": "ቋንቋ",
|
||||||
"saveFailed": "ማስቀመጥ አልተቻለም። ግንኙነትዎን አረጋግጠው እንደገና ይሞክሩ።",
|
"saveFailed": "ማስቀመጥ አልተቻለም። ግንኙነትዎን አረጋግጠው እንደገና ይሞክሩ።",
|
||||||
"readOnly": "መመልከት ይችላሉ፣ ነገር ግን ይህ መለያ በማሳያው ላይ ለውጥ ማስቀመጥ አይችልም።"
|
"readOnly": "መመልከት ይችላሉ፣ ነገር ግን ይህ መለያ በማሳያው ላይ ለውጥ ማስቀመጥ አይችልም።",
|
||||||
|
"theme": "ጨለማ ገጽታ"
|
||||||
},
|
},
|
||||||
"nav": {
|
"nav": {
|
||||||
"home": "መነሻ",
|
"home": "መነሻ",
|
||||||
|
|
@ -27,7 +28,7 @@
|
||||||
"progress": "የእኔ እድገት"
|
"progress": "የእኔ እድገት"
|
||||||
},
|
},
|
||||||
"landing": {
|
"landing": {
|
||||||
"title": "ሙያዊ ሜካፕን በራስዎ ቋንቋ ይማሩ",
|
"title": "ከሥራ ላይ ካሉ ባለሙያዎች ሙያዊ ሜካፕ ይማሩ",
|
||||||
"lead": "በሥራ ላይ ካሉ ባለሙያዎች የቪዲዮ ኮርሶች። አንድ ጊዜ ይክፈሉ፣ ኮርሱ ለዘላለም የእርስዎ ነው፣ በስልክዎ ይመልከቱ።",
|
"lead": "በሥራ ላይ ካሉ ባለሙያዎች የቪዲዮ ኮርሶች። አንድ ጊዜ ይክፈሉ፣ ኮርሱ ለዘላለም የእርስዎ ነው፣ በስልክዎ ይመልከቱ።",
|
||||||
"browse": "ኮርሶችን ይመልከቱ",
|
"browse": "ኮርሶችን ይመልከቱ",
|
||||||
"start": "መለያ ይፍጠሩ",
|
"start": "መለያ ይፍጠሩ",
|
||||||
|
|
@ -53,7 +54,13 @@
|
||||||
"viewAll": "ሁሉንም ኮርሶች ይመልከቱ",
|
"viewAll": "ሁሉንም ኮርሶች ይመልከቱ",
|
||||||
"featuredLead": "ከባለሙያ የሜካፕ አርቲስቶች የተመረጡ ኮርሶች።",
|
"featuredLead": "ከባለሙያ የሜካፕ አርቲስቶች የተመረጡ ኮርሶች።",
|
||||||
"ctaTitle": "በነጻ የቅድመ እይታ ትምህርት ይጀምሩ",
|
"ctaTitle": "በነጻ የቅድመ እይታ ትምህርት ይጀምሩ",
|
||||||
"ctaBody": "ቅድመ እይታ ለማየት መለያ አያስፈልግም። ሲዘጋጁ ብቻ ይክፈሉ።"
|
"ctaBody": "ቅድመ እይታ ለማየት መለያ አያስፈልግም። ሲዘጋጁ ብቻ ይክፈሉ።",
|
||||||
|
"payLead": "ለእያንዳንዱ ኮርስ አንድ ጊዜ ይክፈሉ። ወርሃዊ ክፍያ የለም።",
|
||||||
|
"payLocal": "የሞባይል ገንዘብ",
|
||||||
|
"payCards": "የባንክ ካርዶች",
|
||||||
|
"payAbroad": "ከውጭ ሀገር",
|
||||||
|
"payNote": "በአሪፍፔይ ደህንነቱ በተጠበቀ መንገድ ይክፈሉ። ክፍያው እንደተጠናቀቀ ኮርሱ ይከፈታል።",
|
||||||
|
"waitPill": "በቅርቡ ይከፈታል · የተጠባባቂ ዝርዝሩን ይቀላቀሉ"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"phoneTitle": "በስልክዎ ይግቡ",
|
"phoneTitle": "በስልክዎ ይግቡ",
|
||||||
|
|
@ -148,8 +155,12 @@
|
||||||
"lifetime": "ለዘላለም",
|
"lifetime": "ለዘላለም",
|
||||||
"share": "አጋራ",
|
"share": "አጋራ",
|
||||||
"linkCopied": "ሊንኩ ተቀድቷል",
|
"linkCopied": "ሊንኩ ተቀድቷል",
|
||||||
"teaches": "በMakeUp Academy {n, plural, one {# ኮርስ} other {# ኮርሶች}}",
|
"teaches": "በSirkul Makeup {n, plural, one {# ኮርስ} other {# ኮርሶች}}",
|
||||||
"viewDetails": "ዝርዝር ይመልከቱ"
|
"viewDetails": "ዝርዝር ይመልከቱ",
|
||||||
|
"includes": "ይህ ኮርስ የሚያካትተው",
|
||||||
|
"previewLessons": "{n, plural, one {# ነጻ የቅድመ እይታ ትምህርት} other {# ነጻ የቅድመ እይታ ትምህርቶች}}",
|
||||||
|
"createdBy": "ያዘጋጀው",
|
||||||
|
"lifetimeAccess": "የዕድሜ ልክ መዳረሻ"
|
||||||
},
|
},
|
||||||
"checkout": {
|
"checkout": {
|
||||||
"title": "የመክፈያ መንገድ ይምረጡ",
|
"title": "የመክፈያ መንገድ ይምረጡ",
|
||||||
|
|
@ -175,6 +186,7 @@
|
||||||
"alreadyOwned": "ይህ ኮርስ አስቀድሞ የእርስዎ ነው።"
|
"alreadyOwned": "ይህ ኮርስ አስቀድሞ የእርስዎ ነው።"
|
||||||
},
|
},
|
||||||
"player": {
|
"player": {
|
||||||
|
"prev": "ቀዳሚ",
|
||||||
"back": "ወደ ኮርሱ ይመለሱ",
|
"back": "ወደ ኮርሱ ይመለሱ",
|
||||||
"notes": "የትምህርቱ ማስታወሻ",
|
"notes": "የትምህርቱ ማስታወሻ",
|
||||||
"next": "ቀጣይ ትምህርት",
|
"next": "ቀጣይ ትምህርት",
|
||||||
|
|
@ -320,10 +332,27 @@
|
||||||
"wellDone": "በጣም ጥሩ — አልፈዋል።"
|
"wellDone": "በጣም ጥሩ — አልፈዋል።"
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
|
"poweredBy": "በ<name></name> የተሠራ",
|
||||||
"tagline": "ሙያውን ይማሩ። ለዘላለም ያቆዩት።",
|
"tagline": "ሙያውን ይማሩ። ለዘላለም ያቆዩት።",
|
||||||
"instructors": "አሠልጣኝ",
|
"instructors": "አሠልጣኝ",
|
||||||
"learn": "ትምህርት",
|
"learn": "ትምህርት",
|
||||||
"support": "እገዛ",
|
"support": "እገዛ",
|
||||||
"rights": "መብቱ በሕግ የተጠበቀ ነው"
|
"rights": "መብቱ በሕግ የተጠበቀ ነው",
|
||||||
|
"contact": "ያግኙን",
|
||||||
|
"waitlist": "የተጠባባቂ ዝርዝሩን ይቀላቀሉ",
|
||||||
|
"kitTitle": "የመጀመሪያ ኪት",
|
||||||
|
"kitSub": "በመጀመሪያ ኮርስዎ የሚጠቀሙባቸው",
|
||||||
|
"kitCount": "{n} እቃዎች",
|
||||||
|
"kit1": "ፋውንዴሽንና ኮንሲለር",
|
||||||
|
"kit1Note": "መሠረት",
|
||||||
|
"kit2": "ብሩሾችና ስፖንጆች",
|
||||||
|
"kit2Note": "መሣሪያዎች",
|
||||||
|
"kit3": "የቅንድብ እርሳስና ጄል",
|
||||||
|
"kit3Note": "ቅንድብ",
|
||||||
|
"kit4": "ሊፕስቲክና ላይነር",
|
||||||
|
"kit4Note": "ከንፈር",
|
||||||
|
"workTitle": "የተማሪዎች ሥራ",
|
||||||
|
"workSub": "በሲርኩል ተማሪዎች የተሠሩ",
|
||||||
|
"credits": "የፎቶ ምንጮች"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@
|
||||||
"demoBanner": "Demo — payments, SMS and email are simulated.",
|
"demoBanner": "Demo — payments, SMS and email are simulated.",
|
||||||
"language": "Language",
|
"language": "Language",
|
||||||
"saveFailed": "Couldn't save. Check your connection and try again.",
|
"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": {
|
"nav": {
|
||||||
"home": "Home",
|
"home": "Home",
|
||||||
|
|
@ -27,7 +28,7 @@
|
||||||
"progress": "My progress"
|
"progress": "My progress"
|
||||||
},
|
},
|
||||||
"landing": {
|
"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.",
|
"lead": "Video courses from working artists. Pay once, keep the course for life, and watch on your phone.",
|
||||||
"browse": "Browse courses",
|
"browse": "Browse courses",
|
||||||
"start": "Create your account",
|
"start": "Create your account",
|
||||||
|
|
@ -53,7 +54,13 @@
|
||||||
"viewAll": "View all courses",
|
"viewAll": "View all courses",
|
||||||
"featuredLead": "Hand-picked courses from working makeup artists.",
|
"featuredLead": "Hand-picked courses from working makeup artists.",
|
||||||
"ctaTitle": "Start with a free preview lesson",
|
"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": {
|
"auth": {
|
||||||
"phoneTitle": "Sign in with your phone",
|
"phoneTitle": "Sign in with your phone",
|
||||||
|
|
@ -148,8 +155,12 @@
|
||||||
"lifetime": "Lifetime",
|
"lifetime": "Lifetime",
|
||||||
"share": "Share",
|
"share": "Share",
|
||||||
"linkCopied": "Link copied",
|
"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"
|
"viewDetails": "View details",
|
||||||
|
"includes": "This course includes",
|
||||||
|
"previewLessons": "{n, plural, one {# free preview lesson} other {# free preview lessons}}",
|
||||||
|
"createdBy": "Created by",
|
||||||
|
"lifetimeAccess": "Lifetime access"
|
||||||
},
|
},
|
||||||
"checkout": {
|
"checkout": {
|
||||||
"title": "Choose how to pay",
|
"title": "Choose how to pay",
|
||||||
|
|
@ -175,6 +186,7 @@
|
||||||
"alreadyOwned": "You already own this course."
|
"alreadyOwned": "You already own this course."
|
||||||
},
|
},
|
||||||
"player": {
|
"player": {
|
||||||
|
"prev": "Previous",
|
||||||
"back": "Back to course",
|
"back": "Back to course",
|
||||||
"notes": "Lesson notes",
|
"notes": "Lesson notes",
|
||||||
"next": "Next lesson",
|
"next": "Next lesson",
|
||||||
|
|
@ -320,10 +332,27 @@
|
||||||
"wellDone": "Well done — you passed."
|
"wellDone": "Well done — you passed."
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
|
"poweredBy": "Powered by <name></name>",
|
||||||
"tagline": "Learn the craft. Keep it for life.",
|
"tagline": "Learn the craft. Keep it for life.",
|
||||||
"instructors": "Instructor",
|
"instructors": "Instructor",
|
||||||
"learn": "Learn",
|
"learn": "Learn",
|
||||||
"support": "Support",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@
|
||||||
"demoBanner": "Agarsiisa — kaffaltiin, SMS fi imeeliin fakkeessa.",
|
"demoBanner": "Agarsiisa — kaffaltiin, SMS fi imeeliin fakkeessa.",
|
||||||
"language": "Afaan",
|
"language": "Afaan",
|
||||||
"saveFailed": "Olkaa'uun hin danda'amne. Walqunnamtii kee mirkaneessiitii irra deebi'ii yaali.",
|
"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": {
|
"nav": {
|
||||||
"home": "Mana",
|
"home": "Mana",
|
||||||
|
|
@ -27,7 +28,7 @@
|
||||||
"progress": "My progress"
|
"progress": "My progress"
|
||||||
},
|
},
|
||||||
"landing": {
|
"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.",
|
"lead": "Koorsiiwwan viidiyoo ogeeyyii hojii irra jiran irraa. Al tokko kaffali, koorsiin bara baraan kan kee ta'a, bilbila keetiin ilaali.",
|
||||||
"browse": "Koorsiiwwan ilaali",
|
"browse": "Koorsiiwwan ilaali",
|
||||||
"start": "Herrega uumi",
|
"start": "Herrega uumi",
|
||||||
|
|
@ -53,7 +54,13 @@
|
||||||
"viewAll": "View all courses",
|
"viewAll": "View all courses",
|
||||||
"featuredLead": "Hand-picked courses from working makeup artists.",
|
"featuredLead": "Hand-picked courses from working makeup artists.",
|
||||||
"ctaTitle": "Start with a free preview lesson",
|
"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": {
|
"auth": {
|
||||||
"phoneTitle": "Bilbila keetiin seeni",
|
"phoneTitle": "Bilbila keetiin seeni",
|
||||||
|
|
@ -148,8 +155,12 @@
|
||||||
"lifetime": "Lifetime",
|
"lifetime": "Lifetime",
|
||||||
"share": "Share",
|
"share": "Share",
|
||||||
"linkCopied": "Link copied",
|
"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"
|
"viewDetails": "View details",
|
||||||
|
"includes": "Koorsiin kun kan of keessaa qabu",
|
||||||
|
"previewLessons": "{n, plural, one {Barnoota bilisaa # ilaaluu} other {Barnoota bilisaa # ilaaluu}}",
|
||||||
|
"createdBy": "Kan qopheesse",
|
||||||
|
"lifetimeAccess": "Dhaqqabummaa umurii guutuu"
|
||||||
},
|
},
|
||||||
"checkout": {
|
"checkout": {
|
||||||
"title": "Akkaataa kaffaltii filadhu",
|
"title": "Akkaataa kaffaltii filadhu",
|
||||||
|
|
@ -175,6 +186,7 @@
|
||||||
"alreadyOwned": "Koorsiin kun duraanuu kan keeti."
|
"alreadyOwned": "Koorsiin kun duraanuu kan keeti."
|
||||||
},
|
},
|
||||||
"player": {
|
"player": {
|
||||||
|
"prev": "Kan duraa",
|
||||||
"back": "Gara koorsiitti deebi'i",
|
"back": "Gara koorsiitti deebi'i",
|
||||||
"notes": "Yaadannoo barnootaa",
|
"notes": "Yaadannoo barnootaa",
|
||||||
"next": "Barnoota itti aanu",
|
"next": "Barnoota itti aanu",
|
||||||
|
|
@ -320,10 +332,27 @@
|
||||||
"wellDone": "Baay'ee gaarii — darbiteetta."
|
"wellDone": "Baay'ee gaarii — darbiteetta."
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
|
"poweredBy": "<name></name>n kan hojjetame",
|
||||||
"tagline": "Ogummaa baradhu. Bara baraan qabadhu.",
|
"tagline": "Ogummaa baradhu. Bara baraan qabadhu.",
|
||||||
"instructors": "Leenjisaa",
|
"instructors": "Leenjisaa",
|
||||||
"learn": "Barnoota",
|
"learn": "Barnoota",
|
||||||
"support": "Deeggarsa",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@
|
||||||
"demoBanner": "መርኣያ — ክፍሊት፣ ኤስኤምኤስን ኢመይልን ናይ ምምሳል እዮም።",
|
"demoBanner": "መርኣያ — ክፍሊት፣ ኤስኤምኤስን ኢመይልን ናይ ምምሳል እዮም።",
|
||||||
"language": "ቋንቋ",
|
"language": "ቋንቋ",
|
||||||
"saveFailed": "ክዕቀብ ኣይከኣለን። ርክብካ ኣረጋግጽካ እንደገና ፈትን።",
|
"saveFailed": "ክዕቀብ ኣይከኣለን። ርክብካ ኣረጋግጽካ እንደገና ፈትን።",
|
||||||
"readOnly": "ክትርኢ ትኽእል ኢኻ፣ እዚ ሕሳብ ግን ኣብ መርኣያ ለውጢ ክዕቅብ ኣይክእልን።"
|
"readOnly": "ክትርኢ ትኽእል ኢኻ፣ እዚ ሕሳብ ግን ኣብ መርኣያ ለውጢ ክዕቅብ ኣይክእልን።",
|
||||||
|
"theme": "ጸልማት ገጽ"
|
||||||
},
|
},
|
||||||
"nav": {
|
"nav": {
|
||||||
"home": "መበገሲ",
|
"home": "መበገሲ",
|
||||||
|
|
@ -27,7 +28,7 @@
|
||||||
"progress": "My progress"
|
"progress": "My progress"
|
||||||
},
|
},
|
||||||
"landing": {
|
"landing": {
|
||||||
"title": "ሞያዊ ሜካፕ ብቋንቋኻ ተማሃር",
|
"title": "ካብ ኣብ ስራሕ ዘለዉ ሞያውያን ሞያዊ ሜካፕ ተማሃር",
|
||||||
"lead": "ካብ ኣብ ስራሕ ዘለዉ ክኢላታት ናይ ቪድዮ ኮርሳት። ሓንሳብ ክፈል፣ ኮርሱ ንዘለኣለም ናትካ እዩ፣ ብተሌፎንካ ርአ።",
|
"lead": "ካብ ኣብ ስራሕ ዘለዉ ክኢላታት ናይ ቪድዮ ኮርሳት። ሓንሳብ ክፈል፣ ኮርሱ ንዘለኣለም ናትካ እዩ፣ ብተሌፎንካ ርአ።",
|
||||||
"browse": "ኮርሳት ርአ",
|
"browse": "ኮርሳት ርአ",
|
||||||
"start": "ሕሳብ ፍጠር",
|
"start": "ሕሳብ ፍጠር",
|
||||||
|
|
@ -53,7 +54,13 @@
|
||||||
"viewAll": "View all courses",
|
"viewAll": "View all courses",
|
||||||
"featuredLead": "Hand-picked courses from working makeup artists.",
|
"featuredLead": "Hand-picked courses from working makeup artists.",
|
||||||
"ctaTitle": "Start with a free preview lesson",
|
"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": {
|
"auth": {
|
||||||
"phoneTitle": "ብተሌፎንካ እቶ",
|
"phoneTitle": "ብተሌፎንካ እቶ",
|
||||||
|
|
@ -148,8 +155,12 @@
|
||||||
"lifetime": "Lifetime",
|
"lifetime": "Lifetime",
|
||||||
"share": "Share",
|
"share": "Share",
|
||||||
"linkCopied": "Link copied",
|
"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"
|
"viewDetails": "View details",
|
||||||
|
"includes": "እዚ ኮርስ ዝሓዞ",
|
||||||
|
"previewLessons": "{n, plural, one {# ነጻ ቅድመ ርእይቶ ትምህርቲ} other {# ነጻ ቅድመ ርእይቶ ትምህርትታት}}",
|
||||||
|
"createdBy": "ዘዳለዎ",
|
||||||
|
"lifetimeAccess": "ንዘለኣለም ምርካብ"
|
||||||
},
|
},
|
||||||
"checkout": {
|
"checkout": {
|
||||||
"title": "መንገዲ ክፍሊት ምረጽ",
|
"title": "መንገዲ ክፍሊት ምረጽ",
|
||||||
|
|
@ -175,6 +186,7 @@
|
||||||
"alreadyOwned": "እዚ ኮርስ ድሮ ናትካ እዩ።"
|
"alreadyOwned": "እዚ ኮርስ ድሮ ናትካ እዩ።"
|
||||||
},
|
},
|
||||||
"player": {
|
"player": {
|
||||||
|
"prev": "ዝሓለፈ",
|
||||||
"back": "ናብ ኮርስ ተመለስ",
|
"back": "ናብ ኮርስ ተመለስ",
|
||||||
"notes": "መዘኻኸሪ ትምህርቲ",
|
"notes": "መዘኻኸሪ ትምህርቲ",
|
||||||
"next": "ዝቕጽል ትምህርቲ",
|
"next": "ዝቕጽል ትምህርቲ",
|
||||||
|
|
@ -320,10 +332,27 @@
|
||||||
"wellDone": "ጽቡቕ — ሓሊፍካ።"
|
"wellDone": "ጽቡቕ — ሓሊፍካ።"
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
|
"poweredBy": "ብ<name></name> ዝተሰርሐ",
|
||||||
"tagline": "ሞያ ተማሃር። ንሓዋሩ ሓዞ።",
|
"tagline": "ሞያ ተማሃር። ንሓዋሩ ሓዞ።",
|
||||||
"instructors": "መምህር",
|
"instructors": "መምህር",
|
||||||
"learn": "ትምህርቲ",
|
"learn": "ትምህርቲ",
|
||||||
"support": "ሓገዝ",
|
"support": "ሓገዝ",
|
||||||
"rights": "መሰል ብሕጊ ዝተሓለወ እዩ"
|
"rights": "መሰል ብሕጊ ዝተሓለወ እዩ",
|
||||||
|
"contact": "ርኸቡና",
|
||||||
|
"waitlist": "ናብ ዝርዝር ተጸበይቲ ተጸንበር",
|
||||||
|
"kitTitle": "መጀመርታ ኪት",
|
||||||
|
"kitSub": "ኣብ ቀዳማይ ኮርስካ እትጥቀመሉ",
|
||||||
|
"kitCount": "{n} ኣቑሑ",
|
||||||
|
"kit1": "ፋውንዴሽንን ኮንሲለርን",
|
||||||
|
"kit1Note": "መሰረት",
|
||||||
|
"kit2": "ብሩሻትን ስፖንጅን",
|
||||||
|
"kit2Note": "መሳርሒታት",
|
||||||
|
"kit3": "ናይ ቅንድቢ ርሳስን ጄልን",
|
||||||
|
"kit3Note": "ቅንድቢ",
|
||||||
|
"kit4": "ሊፕስቲክን ላይነርን",
|
||||||
|
"kit4Note": "ከናፍር",
|
||||||
|
"workTitle": "ስራሕ ተምሃሮ",
|
||||||
|
"workSub": "ብተምሃሮ ሲርኩል ዝተሰርሑ",
|
||||||
|
"credits": "ምንጪ ስእልታት"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ await new Promise((r) => setTimeout(r, 2000));
|
||||||
for (const route of ['#/am', '#/am/courses', '#/en/help']) { w.location.hash = route; await new Promise((r) => setTimeout(r, 300)); }
|
for (const route of ['#/am', '#/am/courses', '#/en/help']) { w.location.hash = route; await new Promise((r) => setTimeout(r, 300)); }
|
||||||
// React can re-insert hoisted <link>/<script> tags at hydration; jsdom doesn't fetch them, so scan the DOM too.
|
// React can re-insert hoisted <link>/<script> tags at hydration; jsdom doesn't fetch them, so scan the DOM too.
|
||||||
for (const el of w.document.querySelectorAll('link[href],script[src]')) network.push(`${el.tagName.toLowerCase()} ${el.getAttribute('href') ?? el.getAttribute('src')}`);
|
for (const el of w.document.querySelectorAll('link[href],script[src]')) network.push(`${el.tagName.toLowerCase()} ${el.getAttribute('href') ?? el.getAttribute('src')}`);
|
||||||
const allowed = (u) => /^link https:\/\/fonts\.(googleapis|gstatic)\.com/.test(u) || /cdnjs\.cloudflare\.com|cdn\.jsdelivr\.net\/npm|fonts\.googleapis\.com|fonts\.gstatic\.com/.test(u);
|
const allowed = (u) => /^(link|script) data:/.test(u) || /^link https:\/\/fonts\.(googleapis|gstatic)\.com/.test(u) || /cdnjs\.cloudflare\.com|cdn\.jsdelivr\.net\/npm|fonts\.googleapis\.com|fonts\.gstatic\.com/.test(u);
|
||||||
const bad = network.filter((n) => !allowed(n));
|
const bad = network.filter((n) => !allowed(n));
|
||||||
console.log({ networkAttempts: bad, errors });
|
console.log({ networkAttempts: bad, errors });
|
||||||
process.exit(bad.length || errors.length ? 1 : 0);
|
process.exit(bad.length || errors.length ? 1 : 0);
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
* Waitlist receiver for apps/demo/public/waitlist/index.html → one row per signup in a Google Sheet.
|
* 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):
|
* 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.
|
* 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.
|
* 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).
|
* 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).
|
* After editing this script, use Deploy → Manage deployments → Edit → New version (the URL stays the same).
|
||||||
*/
|
*/
|
||||||
const SHEET_NAME = 'Signups';
|
const SHEET_NAME = 'Signups';
|
||||||
|
|
@ -32,6 +32,12 @@ function doPost(e) {
|
||||||
return reply({ ok: true });
|
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. */
|
/** Server-side check: the page validates too, but anyone can POST here. */
|
||||||
function clean(d) {
|
function clean(d) {
|
||||||
const name = String(d.name || '').trim().slice(0, 80);
|
const name = String(d.name || '').trim().slice(0, 80);
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ const ctx = {
|
||||||
LockService: { getScriptLock: () => ({ waitLock() {}, releaseLock() {} }) },
|
LockService: { getScriptLock: () => ({ waitLock() {}, releaseLock() {} }) },
|
||||||
ContentService: { MimeType: { JSON: 'json' }, createTextOutput: (t) => ({ setMimeType: () => JSON.parse(t) }) },
|
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 post = (d) => ctx.doPost({ postData: { contents: JSON.stringify(d) } });
|
||||||
const ok = { name: 'Selam Tesfaye', email: 'Selam@Example.com', phone: '+251911234567', locale: 'en' };
|
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');
|
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');
|
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.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');
|
console.log('waitlist checks: all passed');
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,6 @@
|
||||||
"installCommand": "npx -y pnpm@9 install --frozen-lockfile",
|
"installCommand": "npx -y pnpm@9 install --frozen-lockfile",
|
||||||
"buildCommand": "npx -y pnpm@9 --filter demo build && node tools/vercel-build.mjs",
|
"buildCommand": "npx -y pnpm@9 --filter demo build && node tools/vercel-build.mjs",
|
||||||
"outputDirectory": "apps/demo/out",
|
"outputDirectory": "apps/demo/out",
|
||||||
"framework": null
|
"framework": null,
|
||||||
|
"rewrites": [{ "source": "/waitlist", "destination": "/waitlist/index.html" }]
|
||||||
}
|
}
|
||||||
|
|
|
||||||