RezinaLMS-CustomerEnd/apps/demo/app/layout.tsx
kirukib 62ea6de365 feat(demo): Summer Ocean Breeze palette, placeholder logo, refreshed landing page
White base with navy text, punch-red calls to action and blue UI states;
placeholder logo mark and favicon; light theme pinned for the Vercel site.

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

28 lines
1.7 KiB
TypeScript

import type { ReactNode } from 'react';
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
// Placeholder favicon matching the <Logo /> mark in packages/features/src/ui.tsx.
const icon = `data:image/svg+xml,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"><rect width="34" height="34" rx="10" fill="#1D3557"/><path d="M7 22c3.5-6 7-6 10 0s6.5 6 10 0" fill="none" stroke="#A8DADC" stroke-width="3" stroke-linecap="round"/><circle cx="23.5" cy="11" r="3.5" fill="#E63946"/></svg>')}`;
export const metadata = { title: 'MakeUp Academy', description: 'Claude-hosted demo of the e-learning platform (SPEC §18).', icons: { icon } };
// 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">
<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>
);
}