Interactive mood color viewer with instant color updates
Displays mood-themed color cards asynchronously without full page reload.
Randomly selects colors from predefined palettes for each mood.
| Path | Method | Description |
|---|---|---|
/ |
GET |
Main page with mood buttons and initial placeholder card |
/mood/{mood} |
GET |
Returns a new mood card (HTMX partial) with a random color |
- Dynamic mood color cards updated instantly using HTMX
- Random color selected from a predefined palette per mood
- Smooth hover animations and responsive design with Tailwind CSS
- FastAPI backend serving HTML templates with Jinja2
- Fully asynchronous updates without page reload
- Python 3.12
- FastAPI – lightweight high-performance web framework
- Jinja2 – template engine for dynamic HTML
- HTMX – partial updates and dynamic content loading
- Tailwind CSS – utility-first responsive UI
- Render.com – zero-config deployment