From 62ea6de36504aea0f7698cedf4e86e94db086b2c Mon Sep 17 00:00:00 2001 From: kirukib Date: Wed, 7 Oct 2026 13:28:01 +0300 Subject: [PATCH] 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 --- apps/demo/app/layout.tsx | 7 +- packages/features/src/admin.tsx | 4 +- packages/features/src/student.tsx | 12 +-- packages/features/src/styles.css | 117 ++++++++++++++++++++---------- packages/features/src/ui.tsx | 15 +++- 5 files changed, 105 insertions(+), 50 deletions(-) diff --git a/apps/demo/app/layout.tsx b/apps/demo/app/layout.tsx index d28eb44..03bdb0b 100644 --- a/apps/demo/app/layout.tsx +++ b/apps/demo/app/layout.tsx @@ -2,7 +2,10 @@ 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).' }; +// Placeholder favicon matching the mark in packages/features/src/ui.tsx. +const icon = `data:image/svg+xml,${encodeURIComponent('')}`; + +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. @@ -10,7 +13,7 @@ const css = readFileSync(join(process.cwd(), '../../packages/features/src/styles export default function RootLayout({ children }: { children: ReactNode }) { return ( - + {/* next/font emits separate files, so fonts come from Google Fonts (allowed by the artifact CSP, §18.5) */} diff --git a/packages/features/src/admin.tsx b/packages/features/src/admin.tsx index 988a715..afb72fa 100644 --- a/packages/features/src/admin.tsx +++ b/packages/features/src/admin.tsx @@ -9,7 +9,7 @@ import { owns, publishedLessons, publishProblems, ROLE_AREAS, tr, validateLocation, type Area, type Period, } from './domain'; import { LocationFields } from './student'; -import { Cover, Empty, FeedbackButton, fmtDate, fmtDateTime, Icon, Modal, Skeleton, StatusPill } from './ui'; +import { Cover, Empty, FeedbackButton, fmtDate, fmtDateTime, Icon, Logo, Modal, Skeleton, StatusPill } from './ui'; const ROLE_LABEL: Record = { SUPER_ADMIN: 'Super admin', CONTENT_MANAGER: 'Content manager', SUPPORT_AGENT: 'Support agent', FINANCE: 'Finance', ANALYST: 'Analyst' }; const NAV: { group: string; items: [Area, string, string][] }[] = [ @@ -75,7 +75,7 @@ function AdminShell() { return (