RezinaLMS-CustomerEnd/apps/demo/app/layout.tsx
kirukib afa77f5cca feat(demo): cleaner UI, sign-in page with student/admin switch, English default
- Navbar: brand | links | language, notifications, account menu
- Landing and course page redesigned (hero, stats bar, categories,
  breadcrumb course page with chapter accordion sidebar)
- Sign-in page with Student and Admin tabs; admin screens need an
  admin sign-in on top of edit access
- Admin dashboard: 4 stat cards, the rest in tabs

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

25 lines
1.3 KiB
TypeScript

import type { ReactNode } from 'react';
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
export const metadata = { title: 'MakeUp Academy', description: 'Claude-hosted demo of the e-learning platform (SPEC §18).' };
// 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">
<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=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" />
<style dangerouslySetInnerHTML={{ __html: css }} />
</head>
<body>{children}</body>
</html>
);
}