Enhance Next.js configuration and dependencies for improved functionality and localization support. Added support for internationalization with next-intl, updated global styles, and integrated new fonts. Removed default home page and updated README with project details and setup instructions.
This commit is contained in:
1 parent
2911dea00b
commit
44f4fa98e2
320 files changed
+31666
-220
No files matched your search
@@ -0,0 +1,15 @@
|
||||
---
|
||||
description: Bootstrap when starting UI/design work in this repo
|
||||
alwaysApply: true
|
||||
---
|
||||
|
||||
# Design & UI bootstrap
|
||||
|
||||
When the task touches UI, styling, layout, or visual consistency:
|
||||
|
||||
1. Read `docs/design-system-rules.md` and skill `shadcn-ui`.
|
||||
2. Use **only** shadcn theme tokens + Tailwind (`bg-primary`, `text-muted-foreground`, `Card`, `Button`, …). Never `ds-*` or `--brand-*`.
|
||||
3. Add missing primitives with `npx shadcn@latest add <name>` (see https://ui.shadcn.com/docs/installation).
|
||||
4. Follow `.cursor/rules/ui-architecture.mdc` (thin pages, atomic folders).
|
||||
5. Load skills when relevant: `shadcn-ui`, `frontend-excellence`, `vercel-react-best-practices`.
|
||||
6. Behavioral playbook remains `PLAYBOOK.md` + `docs/state/*` for task scope.
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
description: UI architecture — thin pages, extract components, data via lib
|
||||
alwaysApply: true
|
||||
---
|
||||
|
||||
# UI architecture
|
||||
|
||||
Adapted from NoorClinic Front.Patient.App; paths match this repo.
|
||||
|
||||
## New work
|
||||
|
||||
- **Pages** (`src/app/**/page.tsx`): orchestration only — params, compose templates/sections, wire handlers.
|
||||
- **UI**: put reusable or substantial sections in `src/components/molecules` or `src/components/organisms` (extract when reusable or roughly >80 lines of JSX). Templates live in `src/components/templates`. Primitives in `src/components/atoms` / `src/components/ui` (shadcn).
|
||||
- **Data**: only through `src/lib/data/*` (and Route Handlers that call the same accessors). Do not fetch ad-hoc from page files beyond those accessors.
|
||||
- Shared domain types/helpers live under `src/lib/`.
|
||||
|
||||
## Design consistency
|
||||
|
||||
- Before UI changes, follow `docs/design-system-rules.md` and shadcn theme tokens in `src/app/globals.css` (`--primary`, `--accent`, …).
|
||||
- Skills: `shadcn-ui`, `design-system-rules` (methodology — keep AUT palette in shadcn CSS vars).
|
||||
|
||||
## Extending existing fat pages
|
||||
|
||||
Do not grow a large page further with new inline UI. Extract the new piece into a component first.
|
||||
|
||||
## Deferred
|
||||
|
||||
Wholesale refactors of existing fat pages are out of scope unless the feature requires it.
|
||||
Reference in new issue
Block a user