From afa77f5cca97f94151ad815d73a56f1035199905 Mon Sep 17 00:00:00 2001 From: kirukib Date: Wed, 7 Oct 2026 01:35:24 +0300 Subject: [PATCH] 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 --- apps/demo/app/layout.tsx | 4 +- packages/features/src/admin.tsx | 62 +++-- packages/features/src/store.tsx | 9 +- packages/features/src/student.tsx | 396 ++++++++++++++++++++---------- packages/features/src/styles.css | 170 +++++++++++++ packages/features/src/ui.tsx | 8 + packages/i18n/messages/am.json | 51 +++- packages/i18n/messages/en.json | 51 +++- packages/i18n/messages/om.json | 51 +++- packages/i18n/messages/ti.json | 51 +++- 10 files changed, 674 insertions(+), 179 deletions(-) diff --git a/apps/demo/app/layout.tsx b/apps/demo/app/layout.tsx index cac0504..d28eb44 100644 --- a/apps/demo/app/layout.tsx +++ b/apps/demo/app/layout.tsx @@ -10,12 +10,12 @@ 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) */} - +