A dark analytics dashboard with animated KPI cards, live-updating charts, a collapsible sidebar and a command palette.
Prompt
1,382 characters
Create a responsive analytics dashboard app called "Pulse".
LAYOUT
- Collapsible left sidebar (64px icons-only / 240px expanded) with: Overview, Realtime, Audience, Revenue, Campaigns, Settings. Active item has a glowing left indicator.
- Top bar: page title, date range picker (Today, 7d, 30d, 90d, Custom), search button that opens a Cmd+K command palette, notification bell with unread dot, avatar menu.
- Theme: background #0B0B0F, cards #141419 with 1px rgba(255,255,255,0.08) border and 16px radius, electric violet accent (#8B5CF6) and cyan (#22D3EE) for charts.
OVERVIEW PAGE
1. 4 KPI cards (Visitors, Conversion rate, Revenue, Avg. session): big number that counts up, % change pill (green/red), tiny sparkline.
2. Main area chart "Traffic over time" with gradient fill, tooltip crosshair and a toggle between Visitors / Sessions.
3. Donut chart "Traffic sources" + legend with percentages.
4. Realtime panel: "Active users right now" number that updates every 3 seconds with mock data and a pulsing green dot.
5. Table "Top pages": sortable columns, sticky header, pagination, skeleton loading state.
DETAILS
- Use Recharts for charts, Framer Motion for card entrance (stagger 0.05s) and number tweens.
- Mock data in a separate file; all components typed with TypeScript.
- Empty, loading and error states for every widget. Mobile: sidebar becomes a bottom sheet menu.