From 42a20e3be3e6a70760e1ff2aefa56e918b4e4e7f Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sun, 1 Mar 2026 12:22:36 -0500 Subject: [PATCH] feat: Improve wood paneling border colors and background blend - Update wood-light border from harsh black (#2a2a2a) to lighter warm brown (#8b5a2b) for better harmony with light background - Update wood-dark border from #5c3317 to #7a5228 (slightly lighter medium brown) for improved visibility on dark backgrounds - Update wood-mahogany border from #5c3317 to #8b3a3a (medium red-brown) to enhance mahogany's characteristic reddish tones - Reduce background blend opacity from 60% to 40% to create more subtle text area background that complements new border colors These changes improve visual consistency between border colors and their respective wood paneling backgrounds while maintaining good text contrast across all wood themes. --- templates/collections_templ.go | 40 +++++++++++++++++++++++++++++----- templates/dashboard.templ | 2 +- templates/dashboard_templ.go | 2 +- web/src/dashboard.ts | 2 +- web/static/input.css | 6 ++--- 5 files changed, 40 insertions(+), 12 deletions(-) diff --git a/templates/collections_templ.go b/templates/collections_templ.go index 78284f9..784aea0 100644 --- a/templates/collections_templ.go +++ b/templates/collections_templ.go @@ -202,14 +202,14 @@ func CollectionDetail(user User, collection CollectionData, books []handlers.Boo } } for _, book := range books { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "
\"Cover\"

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var10 string templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(book.Title) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/collections.templ`, Line: 301, Col: 108} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/collections.templ`, Line: 300, Col: 22} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) if templ_7745c5c3_Err != nil { @@ -220,14 +220,14 @@ func CollectionDetail(user User, collection CollectionData, books []handlers.Boo return templ_7745c5c3_Err } if book.Author != "" { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "

by ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "

by ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var11 string templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(book.Author) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/collections.templ`, Line: 303, Col: 82} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/collections.templ`, Line: 307, Col: 27} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11)) if templ_7745c5c3_Err != nil { @@ -238,12 +238,40 @@ func CollectionDetail(user User, collection CollectionData, books []handlers.Boo return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 21, "

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 21, "

") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if book.CoverImagePath != "" { + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "\"Cover\"") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + } else { + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "\"Cover\"") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 25, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "

Add Books to Collection

Search and select books to add to this collection.

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "

Add Books to Collection

Search and select books to add to this collection.

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/dashboard.templ b/templates/dashboard.templ index 99c5415..f5b8bce 100644 --- a/templates/dashboard.templ +++ b/templates/dashboard.templ @@ -185,7 +185,7 @@ templ BookCard(item handlers.BookInfo) { /> } -
+

{ item.Title }

diff --git a/templates/dashboard_templ.go b/templates/dashboard_templ.go index 29d91df..bb7c376 100644 --- a/templates/dashboard_templ.go +++ b/templates/dashboard_templ.go @@ -424,7 +424,7 @@ func BookCard(item handlers.BookInfo) templ.Component { return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 36, "

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 36, "

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/web/src/dashboard.ts b/web/src/dashboard.ts index 30a3fa4..33b3e91 100644 --- a/web/src/dashboard.ts +++ b/web/src/dashboard.ts @@ -344,7 +344,7 @@ function renderBookCard(book: BookInfo): string { loading="lazy" onerror="this.src='/static/placeholder-book.svg'">

-
+

${book.title}

diff --git a/web/static/input.css b/web/static/input.css index d97eff9..e2779ff 100644 --- a/web/static/input.css +++ b/web/static/input.css @@ -265,21 +265,21 @@ #collections-container[data-wood="wood-light"] { --wood-text-primary: #1a1a1a; --wood-text-secondary: #4a4a4a; - --wood-border: #2a2a2a; + --wood-border: #8b5a2b; } /* Wood Dark - needs light text */ #collections-container[data-wood="wood-dark"] { --wood-text-primary: #f5f5f5; --wood-text-secondary: #c0c0c0; - --wood-border: #5c3317; + --wood-border: #7a5228; } /* Wood Mahogany - needs light text (darkest background) */ #collections-container[data-wood="wood-mahogany"] { --wood-text-primary: #f5f5f5; --wood-text-secondary: #c0c0c0; - --wood-border: #5c3317; + --wood-border: #8b3a3a; } /* Apply wood-specific text colors to all text within collections container */