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:
2026-07-03 12:33:35 +02:00
parent 508e4e6114
commit b6e57db54b
3 changed files with 13 additions and 12 deletions
+10 -9
View File
@@ -13,7 +13,6 @@
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-xs { width: 12px; height: 12px; flex-shrink: 0; }
.icon-lg { width: 48px; height: 48px; flex-shrink: 0; }
.cover-img { width: 250px; height: 250px; object-fit: cover; }
</style>
<script>
document.addEventListener('DOMContentLoaded', function () {
@@ -28,16 +27,20 @@
</script>
</head>
<body class="min-h-screen bg-base-100">
<div class="navbar bg-base-200 shadow-lg px-4">
<div class="flex-1">
<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 style="display:flex;align-items:center;gap:0.25rem;flex-shrink:0">
<div class="tabs tabs-box">
<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>
</div>
</div>
<div class="flex-none gap-2 flex items-center">
<div id="search-wrapper" class="w-72">
<div style="flex:1;text-align:center">
<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"
hx-target="#search-results"
hx-swap="innerHTML"
@@ -47,8 +50,7 @@
</form>
<div id="search-results"></div>
</div>
<select class="select select-bordered select-sm w-28" onchange="setTheme(this)">
<select class="select select-bordered select-sm" style="width:7rem;flex-shrink:0" onchange="setTheme(this)">
<option value="dark">Dark</option>
<option value="light">Light</option>
<option value="synthwave">Synthwave</option>
@@ -58,8 +60,7 @@
<option value="dim">Dim</option>
<option value="nord">Nord</option>
</select>
<button class="btn btn-ghost btn-sm" onclick="settingsModal.showModal()">⚙️</button>
<button class="btn btn-ghost btn-sm px-2" style="flex-shrink:0" onclick="settingsModal.showModal()">⚙️</button>
</div>
</div>