RezinaLMS-CustomerEnd/apps/demo/app/layout.tsx
kirukib 92cc6a8ddf feat: mobile-first landing pass, lesson bar, dark default, simulated courses
Inspo MCP references: Hyper Effekt / Ferrari (photo hero), Coursera / Babbel (phone rails).
- Hero: headline set on a full-bleed, slowly scrolling reel of portraits
- How it works + payment panels replaced by three photo step cards; pay marks inside step 2
- Phones: category and step cards swipe as rails, stats in one row, header fits 360-390px
- Lesson bar (Previous / n of N / Next lesson) replaces the app tabs inside a course below 1024px;
  app tabs show only when signed in
- Header logo crossfades from wordmark to monogram on scroll
- Language picker is one dropdown (header and footer)
- Dark theme by default; saved choice still wins
- Demo banner removed
- Footer: "Powered by Yaltopia Tech" with a shine sweep
- Seed: three more simulated courses (soft glam, traditional Habesha, building your clientele)
- artifact-check: data: URIs (the favicon) aren't network requests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 12:00:24 +03:00

29 lines
1.6 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="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 }} />
{/* 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>
);
}