Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.63 KB

File metadata and controls

43 lines (31 loc) · 1.63 KB

Python Mood Color

Python FastAPI HTMX Tailwind Jinja2 Render

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.


Endpoints

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

Features

  • 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

Technology Stack

  • 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