feat: enhance UI components and implement password reset flow with improved styling and validation
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
| Concern | Rule |
|
||||
|---|---|
|
||||
| Framework | Next.js **App Router** + **TypeScript**. Work within the existing structure; do not restructure or introduce a competing router. |
|
||||
| Styling / UI | **Tailwind CSS** for all styling — no CSS modules, styled-components, or inline style objects. UI primitives come from **shadcn/ui** (`components/ui/`, built on `@base-ui/react` + `class-variance-authority`); use/extend existing components there before adding a new one, and generate new primitives via the shadcn CLI to keep the pattern consistent. |
|
||||
| State / forms | **Plain React hooks** (`useState`, `useReducer`, custom hooks). No form/state library. |
|
||||
| Validation | **Dependency-free** (hand-rolled helpers). See §3. |
|
||||
| API access | A single **typed fetch client** (`lib/`) against `NEXT_PUBLIC_API_BASE_URL`; all calls go through it. No scattered `fetch()` in components. |
|
||||
|
||||
Reference in New Issue
Block a user