# Reference: Tasks 19-21 — Polish ## Task 19: Responsive Design ### Desktop (>1024px) - Full sidebar (272px) + TopBar + 2-column card grid - All tiles at full spec (as designed in Tasks 8-15) - Command palette at 580px width ### Tablet (768–1024px) - Sidebar: collapse to icon-only (56px) or hide entirely with toggle - TopBar: full, but search bar may shrink (reduce min-width) - Card grid: can stay 2-column if space permits, or switch to 1-column - Activity grid inside CareerActivity tile: switch to 1-column ### Mobile (<768px) - Sidebar: hidden entirely (off-canvas or removed) - TopBar: simplified — brand text may truncate, hide search bar center section - Navigation: consider a hamburger menu or bottom nav for key actions - Card grid: single column - All tiles stack vertically (full-width) - Metric grid in LatestResults: stays 2x2 (compact enough) - Activity grid in CareerActivity: single column - Touch targets: all clickable elements 48px+ minimum - Command palette: full-width with reduced padding ### Breakpoint Strategy Use Tailwind responsive prefixes: - `lg:` for desktop (>1024px) - `md:` for tablet (>768px) - Default styles for mobile-first ### Key responsive classes: ``` /* Card grid */ grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-[16px] /* Sidebar visibility */ hidden lg:flex lg:flex-col /* TopBar search */ hidden md:block /* Activity grid */ grid grid-cols-1 md:grid-cols-2 /* Sidebar width */ lg:w-[272px] lg:min-w-[272px] ``` --- ## Task 20: Accessibility Audit ### Semantic HTML | Element | Tag | Notes | |---------|-----|-------| | TopBar | `
` | Fixed at top | | Sidebar | `