From 695d46259df3711d28e8e868ee8ae759dd4f88f8 Mon Sep 17 00:00:00 2001 From: droideparanoico Date: Fri, 3 Jul 2026 11:12:58 +0200 Subject: [PATCH] Fix search, branding, header centering, and card-based feed layout - Search box now fills navbar center with max-width 400px - Dropdown items have more padding (p-4) and hover contrast - Branding uses cross-browser gradient text with visible tagline - Navbar centers tabs + search together in navbar-center - Feed redesigned as responsive card grid (cover-centered, details below) - Cards show large cover art with aspect-ratio:1, fallback SVG on 404 - Artist name, title, type badge, and date positioned under cover --- .../templates/fragments/feed-entries.html | 78 +++++++++---------- .../templates/fragments/search-results.html | 19 ++--- .../resources/templates/layouts/base.html | 57 +++++++------- src/main/resources/templates/releases.html | 2 +- 4 files changed, 75 insertions(+), 81 deletions(-) diff --git a/src/main/resources/templates/fragments/feed-entries.html b/src/main/resources/templates/fragments/feed-entries.html index b38a620..d9161d9 100644 --- a/src/main/resources/templates/fragments/feed-entries.html +++ b/src/main/resources/templates/fragments/feed-entries.html @@ -1,5 +1,5 @@ {#if entries.isEmpty()} -
+
@@ -8,46 +8,40 @@

Add artists to your collection to see their releases here

{#else} -
- - - - - - - - - - - - {#for entry in entries} - - - - - - - - {/for} - -
CoverArtistReleaseTypeDate
- - Cover - - {entry.artistName} - - {entry.title} - - - {#if entry.primaryType == 'Album'} - Album - {#else if entry.primaryType == 'Single'} - Single - {#else if entry.primaryType == 'EP'} - EP - {#else} - {entry.primaryType} - {/if} - {entry.firstReleaseDate}
+
+ {#for entry in entries} + +
+ Cover for {entry.title} +
+
+
{entry.artistName}
+
{entry.title}
+
+ {#if entry.primaryType == 'Album'} + Album + {#else if entry.primaryType == 'Single'} + Single + {#else if entry.primaryType == 'EP'} + EP + {#else} + {entry.primaryType} + {/if} + {#if entry.firstReleaseDate} + {entry.firstReleaseDate} + {/if} +
+
+
+ {/for}
{/if} diff --git a/src/main/resources/templates/fragments/search-results.html b/src/main/resources/templates/fragments/search-results.html index 681aaac..ee6feb9 100644 --- a/src/main/resources/templates/fragments/search-results.html +++ b/src/main/resources/templates/fragments/search-results.html @@ -1,18 +1,18 @@ -
+
{#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}
@@ -20,12 +20,13 @@
{#if artist.alreadyTracked} - + Added {#else} -