61 lines
1.5 KiB
Markdown
61 lines
1.5 KiB
Markdown
|
|
# Examples — Frontend
|
||
|
|
|
||
|
|
## Landing Page
|
||
|
|
|
||
|
|
**Prompt:**
|
||
|
|
```
|
||
|
|
Build a SaaS landing page for an AI writing tool.
|
||
|
|
Dark theme, editorial typography. Sections: hero
|
||
|
|
with animated demo, features grid, pricing table,
|
||
|
|
FAQ accordion, footer with newsletter signup.
|
||
|
|
```
|
||
|
|
|
||
|
|
**Design choices:**
|
||
|
|
- Tone: Editorial/Magazine
|
||
|
|
- Font: Cabinet Grotesk (display) + Plus Jakarta Sans (body)
|
||
|
|
- Color: Near-black bg (#0c0c0c), warm white text, accent copper
|
||
|
|
- Memorable: Full-bleed hero with scroll-reveal text
|
||
|
|
|
||
|
|
## Dashboard
|
||
|
|
|
||
|
|
**Prompt:**
|
||
|
|
```
|
||
|
|
Create an analytics dashboard. Sidebar navigation,
|
||
|
|
header with search and user menu. Main area: stats
|
||
|
|
cards row, line chart, data table with pagination.
|
||
|
|
Light theme, clean and professional.
|
||
|
|
```
|
||
|
|
|
||
|
|
**Design choices:**
|
||
|
|
- Tone: Utilitarian/Clean
|
||
|
|
- Layout: 240px fixed sidebar, fluid main
|
||
|
|
- Components: shadcn/ui cards, recharts for graphs
|
||
|
|
- Data table: tanstack-table with sorting/filtering
|
||
|
|
|
||
|
|
## Checkout Form
|
||
|
|
|
||
|
|
**Prompt:**
|
||
|
|
```
|
||
|
|
Build a multi-step checkout form. Steps: cart review,
|
||
|
|
shipping address, payment method, confirmation.
|
||
|
|
Progress indicator, back/next navigation, form
|
||
|
|
validation with inline errors.
|
||
|
|
```
|
||
|
|
|
||
|
|
**Design choices:**
|
||
|
|
- Stepped progress bar at top
|
||
|
|
- React Hook Form + Zod for validation
|
||
|
|
- Preserve all input on navigation
|
||
|
|
- Optimistic feedback on submission
|
||
|
|
|
||
|
|
## Pre-Implementation Checklist
|
||
|
|
|
||
|
|
- [ ] Typography distinctive (not Inter/Roboto)
|
||
|
|
- [ ] Color follows 70-20-10
|
||
|
|
- [ ] Background has depth
|
||
|
|
- [ ] One memorable element
|
||
|
|
- [ ] Mobile-first responsive
|
||
|
|
- [ ] Focus states visible
|
||
|
|
- [ ] Loading states for async
|
||
|
|
- [ ] Error recovery paths
|