diff --git a/docs/specs/2026-06-21-add-book-form-design.md b/docs/specs/2026-06-21-add-book-form-design.md new file mode 100644 index 0000000..f1101c6 --- /dev/null +++ b/docs/specs/2026-06-21-add-book-form-design.md @@ -0,0 +1,169 @@ +# Spine — Add Book Form + +Adds a form to create new books in `spine.org`, plus the write function +to persist them. + +## Architecture + +``` +"Add book" link (index page) + │ + GET /add + │ +templates/add.mustache ←── [spine-index-model] for datalist values + │ + POST /add (form submission) + │ + [spine-add-book] ──→ writes to spine.org + │ + redirect to /index +``` + +## Template: `templates/add.mustache` + +A new Mustache template with the Pico CSS + Tabler Icons shell (matching the +index page) and a `