Phase 4: HTMX frontend with dark palette

- 4 pages: Pantry, Recipes, Shopping List, Cook Log
- HTMX-powered: add/delete pantry items, toggle shopping, generate smart list
- Custom 13-colour palette from Lospec (dark bg, yellow accent)
- Mobile-responsive
- Whitenoise for static files in production
- All routes under /app/
- API (/api/) stays internal, frontend (/app/) for browser use
This commit is contained in:
Caine
2026-04-02 23:08:43 +01:00
parent 75e3256eae
commit 2a45be70e2
16 changed files with 1078 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
from django.urls import path
from . import views_htmx
urlpatterns = [
# Full pages
path("", views_htmx.pantry_page, name="app-pantry"),
path("recipes/", views_htmx.recipes_page, name="app-recipes"),
path("shopping/", views_htmx.shopping_page, name="app-shopping"),
path("log/", views_htmx.log_page, name="app-log"),
# HTMX partials
path("pantry/add/", views_htmx.pantry_add, name="app-pantry-add"),
path("pantry/<int:item_id>/delete/", views_htmx.pantry_delete, name="app-pantry-delete"),
path("shopping/generate/", views_htmx.shopping_generate, name="app-shopping-generate"),
path("shopping/<int:item_id>/toggle/", views_htmx.shopping_toggle, name="app-shopping-toggle"),
path("shopping/clear/", views_htmx.shopping_clear, name="app-shopping-clear"),
]