From 325b967945c87e326cb1fc7b15d002d46072ad6a Mon Sep 17 00:00:00 2001 From: "david.alvarez" Date: Fri, 3 Jul 2026 10:58:44 +0200 Subject: [PATCH] UI polish: centering, search width, dropdown contrast, cover thumbnails, branding, sticky headers - Constrain main content to max-w-5xl centered - Widen search input (w-72 md:w-80 lg:w-96) - Search dropdown: card with shadow, border, and primary-tinted hover - Branding: SVG music note icon + gradient text + tagline - Covers: 64px with front-250 thumbnail URL for faster loading - Badge colors per type (primary/secondary/accent/ghost) - Sticky table headers via table-pin-rows - SVG icons for Add/Remove/RSS/OPML buttons - Consistent hover transitions across tables --- src/main/resources/templates/artists.html | 6 +-- .../templates/fragments/artist-list.html | 52 ++++++++++--------- .../templates/fragments/feed-entries.html | 48 +++++++++++------ .../templates/fragments/search-results.html | 32 ++++++++---- .../resources/templates/layouts/base.html | 32 ++++++++---- src/main/resources/templates/releases.html | 27 +++++++--- 6 files changed, 126 insertions(+), 71 deletions(-) diff --git a/src/main/resources/templates/artists.html b/src/main/resources/templates/artists.html index fa5edcb..d0b0b0b 100644 --- a/src/main/resources/templates/artists.html +++ b/src/main/resources/templates/artists.html @@ -1,9 +1,9 @@ {#include layouts/base} {#page-content} -
-

🎤 Artists

+
+

🎤 Tracked Artists

- +
{/page-content} diff --git a/src/main/resources/templates/fragments/artist-list.html b/src/main/resources/templates/fragments/artist-list.html index 3989515..72b662c 100644 --- a/src/main/resources/templates/fragments/artist-list.html +++ b/src/main/resources/templates/fragments/artist-list.html @@ -1,80 +1,84 @@
{#if artists.isEmpty()} -
-

No artists tracked yet

-

Search for artists using the search bar above and click "+ Add"

+
+ + + +

No artists tracked yet

+

Search for artists using the search bar above and click + Add

{#else} -
- +
+
- + - + {#for artist in artists} - + - + diff --git a/src/main/resources/templates/fragments/feed-entries.html b/src/main/resources/templates/fragments/feed-entries.html index f09b09a..ec62085 100644 --- a/src/main/resources/templates/fragments/feed-entries.html +++ b/src/main/resources/templates/fragments/feed-entries.html @@ -1,46 +1,60 @@ {#if entries.isEmpty()} -
-

No releases found

-

Add artists to your collection to see their releases here

+
+ + + + +

No releases found

+

Add artists to your collection to see their releases here

{#else} -
-
Artist Since Release TypesActionsActions
{artist.name}
{#if artist.disambiguation} -
{artist.disambiguation}
+
{artist.disambiguation}
{/if}
{artist.createdAt}{artist.createdAt} -
-
-
+
+
- - + + - + {#for entry in entries} - + - + - + {/for} diff --git a/src/main/resources/templates/fragments/search-results.html b/src/main/resources/templates/fragments/search-results.html index f14c48d..126d58e 100644 --- a/src/main/resources/templates/fragments/search-results.html +++ b/src/main/resources/templates/fragments/search-results.html @@ -1,27 +1,37 @@ -
+
{#if artists.isEmpty()} -
No artists found
+
No artists found
{#else} {#for artist in artists} -
-
- {artist.name} +
+
+
+ {artist.name} + {#if artist.type} + {artist.type} + {/if} +
{#if artist.disambiguation} - — {artist.disambiguation} +
{artist.disambiguation}
+ {/if} + {#if artist.area} +
{artist.area}
{/if} -
- {artist.area}
-
+
{#if artist.alreadyTracked} - ✓ Added + + + Added + {#else} {/if}
diff --git a/src/main/resources/templates/layouts/base.html b/src/main/resources/templates/layouts/base.html index 07a3196..b363fb9 100644 --- a/src/main/resources/templates/layouts/base.html +++ b/src/main/resources/templates/layouts/base.html @@ -18,6 +18,9 @@ z-index: 50; width: 100%; } + body { + margin: 0; + } -
Cover
Cover Artist Release TypeDateDate
- Cover + onerror="this.style.display='none'"> {entry.artistName} + {entry.artistName} + + class="link link-hover font-medium"> {entry.title} - {entry.primaryType} + {#if entry.primaryType == 'Album'} + Album + {#else if entry.primaryType == 'Single'} + Single + {#else if entry.primaryType == 'EP'} + EP + {#else} + {entry.primaryType} + {/if} {entry.firstReleaseDate}{entry.firstReleaseDate}