diff --git a/docs/visual-audit/README.md b/docs/visual-audit/README.md index 21230a1..e176499 100644 --- a/docs/visual-audit/README.md +++ b/docs/visual-audit/README.md @@ -62,3 +62,43 @@ Severity legend: **High** = materially harms UX/clarity, **Medium** = noticeable - **P1**: Introduce consistent, high-quality food imagery strategy (home + detail + cards). - **P1**: Reduce action clutter in detail and establish one primary action per context. - **P2**: Replace ad-hoc emoji iconography with a coherent icon system. + +--- + +# T04 Homepage Redesign (After) + +Date: 2026-03-26 +Task: T04 โ€” Homepage Redesign +Owner: agent-core-ui + +## What changed + +- Introduced a stronger home hero with clear action hierarchy: + - primary CTA: **Start a Recipe** + - secondary CTA: **Browse Library** + - responsive image panel with safe fallback chain (`hero.png` โ†’ `/images/hero-fallback.svg`) +- Added feature-highlight blocks using T03 asset icons: + - `/assets/category/icon-dinner.svg` + - `/assets/category/icon-lunch.svg` + - `/assets/category/icon-breakfast.svg` +- Improved visual hierarchy and spacing for the recipe discovery area: + - renamed section to **Recipe Library** + - improved search input and action sizing for touch targets + - retained filter behavior with clearer card grouping +- Polished footer structure in app shell: + - multi-column footer content + - quick links and stronger brand/utility hierarchy +- Empty state now uses T03 illustration (`/assets/empty-state/no-recipes.svg`) for better visual clarity. + +## Token alignment note (T02 dependency) + +- T02 token outputs are available (`frontend/src/theme.ts` + CSS custom properties in `frontend/src/index.css`). +- T04 consumed existing token-friendly values (radius + CSS vars via global styles) and avoided introducing breaking token assumptions. +- If T02 token contracts evolve, align CTA/card semantic classes first before changing component behavior. + +## After screenshots + +Saved under `docs/visual-audit/after/`: + +- `home-desktop.png` +- `home-mobile.png` diff --git a/docs/visual-audit/after/home-desktop.png b/docs/visual-audit/after/home-desktop.png new file mode 100644 index 0000000..3305149 Binary files /dev/null and b/docs/visual-audit/after/home-desktop.png differ diff --git a/docs/visual-audit/after/home-mobile.png b/docs/visual-audit/after/home-mobile.png new file mode 100644 index 0000000..5663551 Binary files /dev/null and b/docs/visual-audit/after/home-mobile.png differ diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 095c269..55f6cae 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -9,7 +9,6 @@ import { ToastContainer } from './components/Toast'; import { useToast } from './hooks/useToast'; import { createContext, useContext } from 'react'; -// Create toast context to share toast functionality across the app interface ToastContextType { success: (message: string, duration?: number) => string; error: (message: string, duration?: number) => string; @@ -79,15 +78,15 @@ function App() {
-
-
+
+
-

Recipe Manager

+

Recipe Manager

-
+
} /> } /> @@ -119,11 +118,24 @@ function App() {
-