Fix background hierarchy: body base-100 (lightest), navbar base-200, cards base-100 with border, hover base-200
This commit is contained in:
@@ -8,13 +8,12 @@
|
||||
<script src="https://unpkg.com/htmx.org@2/dist/htmx.min.js"></script>
|
||||
<style>
|
||||
#search-wrapper { position: relative; width: 100%; }
|
||||
#search-results {
|
||||
position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
|
||||
}
|
||||
#search-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; }
|
||||
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
|
||||
.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,37 +27,28 @@
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body style="min-height:100vh;background:var(--b2)">
|
||||
<div style="display:flex;align-items:center;gap:1rem;padding:0.5rem 1rem;background:var(--b1);box-shadow:0 1px 3px rgba(0,0,0,0.1)">
|
||||
<div style="display:flex;align-items:center;gap:0.25rem;flex-shrink:0">
|
||||
<body class="min-h-screen bg-base-100">
|
||||
<div class="navbar bg-base-200 shadow-lg px-4">
|
||||
<div class="flex-1">
|
||||
<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 style="flex:1;text-align:center">
|
||||
<a href="/" style="text-decoration:none;font-size:1.25rem;font-weight:800;color:var(--p)">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">
|
||||
<div class="flex-none gap-2 flex items-center">
|
||||
<div id="search-wrapper" class="w-72">
|
||||
<form hx-get="/api/artists/search"
|
||||
hx-target="#search-results"
|
||||
hx-swap="innerHTML"
|
||||
hx-trigger="keyup changed delay:300ms from:#search-input">
|
||||
<input id="search-input"
|
||||
type="text"
|
||||
placeholder="Search artists..."
|
||||
class="input input-bordered input-sm w-full"
|
||||
name="q"
|
||||
autocomplete="off">
|
||||
<input id="search-input" type="text" placeholder="Search artists..."
|
||||
class="input input-bordered input-sm w-full" name="q" autocomplete="off">
|
||||
</form>
|
||||
<div id="search-results"></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="light">Light</option>
|
||||
<option value="synthwave">Synthwave</option>
|
||||
@@ -69,8 +59,7 @@
|
||||
<option value="nord">Nord</option>
|
||||
</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>
|
||||
|
||||
@@ -80,9 +69,7 @@
|
||||
|
||||
<dialog id="settingsModal" class="modal">
|
||||
<div class="modal-box max-w-md" id="settings-modal-content"
|
||||
hx-get="/api/settings/form"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML">
|
||||
hx-get="/api/settings/form" hx-trigger="load" hx-swap="innerHTML">
|
||||
<span class="loading loading-spinner"></span>
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
Reference in New Issue
Block a user