- After sign-in a 7-step spotlight tour shows students around (replay from the menu); ends on Esc or navigation - Course cards: edge-to-edge photo, student count (Course.enrolledCount), arrow that inverts on hover (fixes white-on-white hover in dark mode) - Landing: stats removed; How it works uses abstract CSS art; payment card grouped by mobile money, bank cards and from abroad; step 2 copy covers local and international payment - SEO: metadata (title template, description, keywords, canonical, Open Graph, Twitter), per-route titles, EducationalOrganization JSON-LD with founder Rezina Brhane and her TikTok, robots.txt, sitemap.xml; same tags on the waitlist page - Footers link the founder's TikTok - Backend issue drafted: design/issues/enrollment-counts.md - Smoke test: blocks third-party requests (Vimeo iframe stalled unloads), tolerates a missed load event; it caught a hook-order crash on the course page, fixed here Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
4.2 KiB
TypeScript
47 lines
4.2 KiB
TypeScript
import type { ReactNode } from 'react';
|
|
import { readFileSync } from 'node:fs';
|
|
import { join } from 'node:path';
|
|
|
|
import { LOGO_MARK } from '@lms/features/src/brandLogo';
|
|
|
|
const SITE = 'https://makeup-lms.vercel.app';
|
|
const DESCRIPTION = "Video makeup courses from working Ethiopian artists, founded by Rezina Brhane. Bridal, soft glam, skin prep and traditional Habesha looks. Pay once with Telebirr, CBE Birr, cards or PayPal, keep the course for life, and learn on your phone in Amharic, English, Afaan Oromoo or Tigrinya.";
|
|
export const metadata = {
|
|
metadataBase: new URL(SITE),
|
|
title: { default: 'Sirkul Makeup — Learn professional makeup from working artists', template: '%s · Sirkul Makeup' },
|
|
description: DESCRIPTION,
|
|
keywords: ['makeup course', 'makeup class Ethiopia', 'online makeup course', 'bridal makeup', 'Habesha makeup', 'makeup artist training', 'Addis Ababa makeup school', 'የሜካፕ ትምህርት', 'Rezina Brhane', 'Sirkul Makeup'],
|
|
authors: [{ name: 'Rezina Brhane', url: 'https://www.tiktok.com/@rezinabrhane' }],
|
|
creator: 'Rezina Brhane',
|
|
alternates: { canonical: '/' },
|
|
icons: { icon: LOGO_MARK },
|
|
openGraph: { type: 'website', url: SITE, siteName: 'Sirkul Makeup', title: 'Learn professional makeup from working artists', description: DESCRIPTION, images: [{ url: '/photos/hero.jpg', alt: 'Makeup by Sirkul Makeup School' }], locale: 'en_US', alternateLocale: ['am_ET', 'om_ET', 'ti_ET'] },
|
|
twitter: { card: 'summary_large_image', title: 'Sirkul Makeup — makeup courses on your phone', description: DESCRIPTION, images: ['/photos/hero.jpg'] },
|
|
robots: { index: true, follow: true },
|
|
};
|
|
export const viewport = { themeColor: '#0A0A0A' };
|
|
// Structured data: the school, its founder (Rezina Brhane) and her TikTok, so search results tie them together.
|
|
const ORG = {"@context": "https://schema.org", "@type": "EducationalOrganization", "name": "Sirkul Makeup School/Studio", "alternateName": "Sirkul Makeup", "url": "https://makeup-lms.vercel.app", "logo": "https://makeup-lms.vercel.app/brand/sirkul-logo.png", "image": "https://makeup-lms.vercel.app/photos/hero.jpg", "description": "Video makeup courses from working Ethiopian artists, founded by Rezina Brhane. Bridal, soft glam, skin prep and traditional Habesha looks. Pay once with Telebirr, CBE Birr, cards or PayPal, keep the course for life, and learn on your phone in Amharic, English, Afaan Oromoo or Tigrinya.", "founder": {"@type": "Person", "name": "Rezina Brhane", "jobTitle": "Founder and head of Sirkul Makeup", "sameAs": ["https://www.tiktok.com/@rezinabrhane"]}, "sameAs": ["https://www.tiktok.com/@rezinabrhane"], "areaServed": "ET", "knowsLanguage": ["am", "en", "om", "ti"], "contactPoint": {"@type": "ContactPoint", "contactType": "customer support", "telephone": "+251911234567", "availableLanguage": ["Amharic", "English", "Afaan Oromoo", "Tigrinya"]}};
|
|
|
|
// 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.
|
|
const css = readFileSync(join(process.cwd(), '../../packages/features/src/styles.css'), 'utf8');
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html lang="en" data-theme="dark" suppressHydrationWarning>
|
|
<head>
|
|
{/* next/font emits separate files, so fonts come from Google Fonts (allowed by the artifact CSP, §18.5) */}
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=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 }} />
|
|
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(ORG) }} />
|
|
{/* 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>
|
|
<body>{children}</body>
|
|
</html>
|
|
);
|
|
}
|