- Sirkul logo everywhere (header wordmark, phone monogram, favicon, footer); brand name "Sirkul Makeup" - One font (Plus Jakarta Sans) across app and waitlist; cursive serif removed - Habesha model photos from Wikimedia Commons (CC BY-SA, credited in footer and waitlist) - Landing: light/dark theme toggle, live waitlist pill, photo category cards, how-it-works + grouped payment panel, photo CTA; less emphasis on languages - Footer: framed card with starter-kit list (IconPark icons), student-work photo reel, credits - Waitlist: international country-code picker, live "people waiting" pill fed by a doGet signup count in the Apps Script (count only, no personal data) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
1.7 KiB
TypeScript
29 lines
1.7 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';
|
|
|
|
export const metadata = { title: 'Sirkul Makeup', description: 'Claude-hosted demo of the e-learning platform (SPEC §18).', icons: { icon: LOGO_MARK } };
|
|
|
|
// Inlined at build time instead of `import '…css'`: an imported stylesheet is re-requested by React's
|
|
// stylesheet hoisting at hydration, which the artifact CSP blocks. apps/web and apps/admin import it normally.
|
|
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="light" suppressHydrationWarning>
|
|
<head>
|
|
{/* next/font emits separate files, so fonts come from Google Fonts (allowed by the artifact CSP, §18.5) */}
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Ethiopic:wght@400;700&family=Noto+Serif+Ethiopic:wght@500;700&display=swap" />
|
|
<style dangerouslySetInnerHTML={{ __html: css }} />
|
|
{/* Saved theme, else the OS setting; runs before paint so dark mode doesn't flash white. */}
|
|
<script dangerouslySetInnerHTML={{ __html: "try{var t=localStorage.getItem('theme')||(matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light');document.documentElement.dataset.theme=t}catch(e){}" }} />
|
|
</head>
|
|
<body>{children}</body>
|
|
</html>
|
|
);
|
|
}
|