From 6e2a796be99b80dd85c176ccc81b581f2405485d Mon Sep 17 00:00:00 2001 From: James Brechtel Date: Sun, 21 Jun 2026 22:03:29 -0400 Subject: [PATCH] feat: replace Pico CSS with mockup custom CSS in both templates --- templates/add.mustache | 143 ++++++++++++++++---------------- templates/index.mustache | 171 +++++++++++++++++---------------------- 2 files changed, 145 insertions(+), 169 deletions(-) diff --git a/templates/add.mustache b/templates/add.mustache index 98afdee..1e16361 100644 --- a/templates/add.mustache +++ b/templates/add.mustache @@ -4,81 +4,76 @@ -Spine — Add Book - +Spine — add book + + -
-
-
- {{app_title}} · add book -
- -
- - - - - - - - - - - - - - - - - - - - - -
-
-
+
+
+
+ spine · add book +
+
+
+ + + + {{#existing_authors}} + + {{#existing_categories}} + + + + + + + +
+
+
+
diff --git a/templates/index.mustache b/templates/index.mustache index f4ff1a0..3a55277 100644 --- a/templates/index.mustache +++ b/templates/index.mustache @@ -4,103 +4,84 @@ -Spine — Direction A (agenda) - +Spine — agenda -{{! - View model for this template: - { - app_title: string, - total_books: number, - reading_count: number, - groups: [ - { - label: string, e.g. "on deck" - count: number, - books: [ - { - format_icon: string, Tabler class, e.g. "ti-headphones" (data layer maps FORMAT -> icon) - status_class: string, "want" | "reading" | "read" (maps Org TODO state -> pill style) - status_label: string, text shown in the pill - title: string, - author: string, - tags_inline: string?, optional, e.g. ":scifi:literary:" - rec_via: string?, optional, REC_BY -> rendered as "via {name}" - rating_display: string?, optional, e.g. "★★★★☆" - selected: boolean?, marks the in-focus row (expands detail) - detail: { optional; render when a row is expanded - meta: string, e.g. "started [2026-02-20] · hardcover · 62% · rating —" - notes: [ { date: string, text: string } ] reading log - }? - } - ] - } - ], - minibuffer: { command: string, text: string }? optional capture line - } -}} -
-
-
- -
+
+
+
+ spine + {{total_books}} books · {{reading_count}} reading +
{{#current_filter}} - +
{{/current_filter}} {{^current_filter}} - + {{/current_filter}} {{#groups}} @@ -116,7 +97,7 @@
{{#detail}}
-
{{meta}}
+
{{meta}}
{{#notes}}
{{date}}{{text}}
{{/notes}} @@ -124,22 +105,22 @@ {{/detail}} {{/books}} {{/groups}} + {{#summary_groups}} - + {{/summary_groups}} -
{{#minibuffer}} - +
{{/minibuffer}} -
-
+ +