diff --git a/apps/demo/app/layout.tsx b/apps/demo/app/layout.tsx index 70964d1..52d1db9 100644 --- a/apps/demo/app/layout.tsx +++ b/apps/demo/app/layout.tsx @@ -12,15 +12,15 @@ const css = readFileSync(join(process.cwd(), '../../packages/features/src/styles export default function RootLayout({ children }: { children: ReactNode }) { return ( - +
{/* next/font emits separate files, so fonts come from Google Fonts (allowed by the artifact CSP, §18.5) */} - {/* Saved theme, else the OS setting; runs before paint so dark mode doesn't flash white. */} - + {/* Saved theme, else dark (the brand default); runs before paint so there's no flash. */} + {children} diff --git a/packages/db/seed/demo-seed.mjs b/packages/db/seed/demo-seed.mjs index 3e32290..5dc2175 100644 --- a/packages/db/seed/demo-seed.mjs +++ b/packages/db/seed/demo-seed.mjs @@ -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: {}, 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' })])] })); diff --git a/packages/features/src/student.tsx b/packages/features/src/student.tsx index 8001045..f082155 100644 --- a/packages/features/src/student.tsx +++ b/packages/features/src/student.tsx @@ -67,10 +67,16 @@ function SignInGate({ children }: { children: ReactNode }) { export function StudentApp() { 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 unread = signedIn ? inbox.filter((n) => !n.readAt).length : 0; const mainRef = useRef{t.rich('footer.poweredBy', { name: () => Yaltopia Tech })}
); } @@ -261,7 +276,7 @@ const PHOTO_CREDITS: [string, string, string][] = [ ['T.Voekler', 'CC BY-SA 3.0', 'https://commons.wikimedia.org/wiki/File:Eritrean_woman.jpg'], ]; const WORK_PHOTOS = ['glam.jpg', 'habesha-harari.jpg', 'bridal.jpg', 'hero.jpg', 'skin.jpg', 'habesha-trad.jpg', 'foundations.jpg', 'habesha-eritrean.jpg', 'clients.jpg', 'habesha-bride.jpg']; -const PAY_GROUPS: [string, string[]][] = [['payLocal', ['TELEBIRR', 'CBE_BIRR']], ['payCards', ['VISA', 'MASTERCARD']], ['payAbroad', ['PAYPAL', 'ZELLE']]]; +const PAY_IDS = ['TELEBIRR', 'CBE_BIRR', 'VISA', 'MASTERCARD', 'PAYPAL', 'ZELLE']; function WaitPill({ label }: { label: string }) { const [i, setI] = useState(0); @@ -296,7 +311,7 @@ function Landing() { return ({t('landing.payLead')}{Number.isFinite(minPrice) && <> {t('landing.from', { price: formatMoney(minPrice, 'ETB') })}>}
-{t('landing.payLead')}{Number.isFinite(minPrice) && <> {t('landing.from', { price: formatMoney(minPrice, 'ETB') })}>}
{t('landing.how1')}
{t('landing.how2')}
{t('landing.how3')}{t('auth.noIdentity')}
} +