Fix navbar layout, card spacing, and background hierarchy
- Restore centered DiscDrop branding in navbar - Navbar bg: base-300 (darkest) - Cards bg: base-200 (intermediate), hover: base-300 (matches navbar) - Body bg: base-100 (lightest) - Card gap increased from gap-4 to gap-6
This commit is contained in:
@@ -4,10 +4,10 @@
|
|||||||
<p class="text-sm text-base-content/40 mt-2">Add artists to your collection to see their releases here</p>
|
<p class="text-sm text-base-content/40 mt-2">Add artists to your collection to see their releases here</p>
|
||||||
</div>
|
</div>
|
||||||
{#else}
|
{#else}
|
||||||
<div class="flex flex-col gap-4">
|
<div class="flex flex-col gap-6">
|
||||||
{#for entry in entries}
|
{#for entry in entries}
|
||||||
<a href="https://musicbrainz.org/release-group/{entry.mbid}" target="_blank" rel="noopener noreferrer"
|
<a href="https://musicbrainz.org/release-group/{entry.mbid}" target="_blank" rel="noopener noreferrer"
|
||||||
class="card card-side bg-base-100 border border-base-300 hover:bg-base-200 transition-colors overflow-hidden">
|
class="card card-side bg-base-200 border border-base-300 hover:bg-base-300 transition-colors shadow-sm overflow-hidden">
|
||||||
<figure class="w-64">
|
<figure class="w-64">
|
||||||
<img src="https://coverartarchive.org/release-group/{entry.mbid}/front-250"
|
<img src="https://coverartarchive.org/release-group/{entry.mbid}/front-250"
|
||||||
alt="{entry.title}" class="object-cover w-full h-full"
|
alt="{entry.title}" class="object-cover w-full h-full"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="bg-base-100 shadow-xl border border-base-300 rounded-box mt-1" style="max-height:24rem;overflow-y:auto">
|
<div class="bg-base-200 shadow-xl border border-base-300 rounded-box mt-1" style="max-height:24rem;overflow-y:auto">
|
||||||
{#if artists.isEmpty()}
|
{#if artists.isEmpty()}
|
||||||
<div class="p-6 text-sm text-center" style="color:var(--bc);opacity:0.5">No artists found</div>
|
<div class="p-6 text-sm text-center" style="color:var(--bc);opacity:0.5">No artists found</div>
|
||||||
{#else}
|
{#else}
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
|
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
|
||||||
.icon-xs { width: 12px; height: 12px; flex-shrink: 0; }
|
.icon-xs { width: 12px; height: 12px; flex-shrink: 0; }
|
||||||
.icon-lg { width: 48px; height: 48px; flex-shrink: 0; }
|
.icon-lg { width: 48px; height: 48px; flex-shrink: 0; }
|
||||||
.cover-img { width: 250px; height: 250px; object-fit: cover; }
|
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
@@ -28,16 +27,20 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body class="min-h-screen bg-base-100">
|
<body class="min-h-screen bg-base-100">
|
||||||
<div class="navbar bg-base-200 shadow-lg px-4">
|
<div style="display:flex;align-items:center;gap:1rem;padding:0.5rem 1rem;background:var(--b3);box-shadow:0 1px 3px rgba(0,0,0,0.1)">
|
||||||
<div class="flex-1">
|
<div style="display:flex;align-items:center;gap:0.25rem;flex-shrink:0">
|
||||||
<div class="tabs tabs-box">
|
<div class="tabs tabs-box">
|
||||||
<a href="/" class="tab tab-sm {#if activeTab == 'releases'}tab-active{/if}">Releases</a>
|
<a href="/" class="tab tab-sm {#if activeTab == 'releases'}tab-active{/if}">Releases</a>
|
||||||
<a href="/artists" class="tab tab-sm {#if activeTab == 'artists'}tab-active{/if}">Artists</a>
|
<a href="/artists" class="tab tab-sm {#if activeTab == 'artists'}tab-active{/if}">Artists</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex-none gap-2 flex items-center">
|
<div style="flex:1;text-align:center">
|
||||||
<div id="search-wrapper" class="w-72">
|
<a href="/" style="text-decoration:none;font-size:1.25rem;font-weight:800;color:var(--bc)">DiscDrop</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display:flex;align-items:center;gap:0.5rem;flex:1;justify-content:flex-end;max-width:50%">
|
||||||
|
<div id="search-wrapper" style="max-width:420px">
|
||||||
<form hx-get="/api/artists/search"
|
<form hx-get="/api/artists/search"
|
||||||
hx-target="#search-results"
|
hx-target="#search-results"
|
||||||
hx-swap="innerHTML"
|
hx-swap="innerHTML"
|
||||||
@@ -47,8 +50,7 @@
|
|||||||
</form>
|
</form>
|
||||||
<div id="search-results"></div>
|
<div id="search-results"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<select class="select select-bordered select-sm" style="width:7rem;flex-shrink:0" onchange="setTheme(this)">
|
||||||
<select class="select select-bordered select-sm w-28" onchange="setTheme(this)">
|
|
||||||
<option value="dark">Dark</option>
|
<option value="dark">Dark</option>
|
||||||
<option value="light">Light</option>
|
<option value="light">Light</option>
|
||||||
<option value="synthwave">Synthwave</option>
|
<option value="synthwave">Synthwave</option>
|
||||||
@@ -58,8 +60,7 @@
|
|||||||
<option value="dim">Dim</option>
|
<option value="dim">Dim</option>
|
||||||
<option value="nord">Nord</option>
|
<option value="nord">Nord</option>
|
||||||
</select>
|
</select>
|
||||||
|
<button class="btn btn-ghost btn-sm px-2" style="flex-shrink:0" onclick="settingsModal.showModal()">⚙️</button>
|
||||||
<button class="btn btn-ghost btn-sm" onclick="settingsModal.showModal()">⚙️</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user