Fix UI: replace Tailwind classes with inline styles for CDN compatibility
This commit is contained in:
@@ -4,23 +4,23 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>DiscDrop</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.12.23/dist/full.min.css" rel="stylesheet">
|
||||
<script src="https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js"></script>
|
||||
<link href="https://cdn.jsdelivr.net/npm/daisyui@4/dist/full.min.css" rel="stylesheet">
|
||||
<script src="https://unpkg.com/htmx.org@2/dist/htmx.min.js"></script>
|
||||
<style>
|
||||
#search-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
#search-wrapper { position: relative; width: 280px; }
|
||||
@media (min-width: 768px) { #search-wrapper { width: 320px; } }
|
||||
@media (min-width: 1024px) { #search-wrapper { width: 384px; } }
|
||||
#search-results {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 50;
|
||||
width: 100%;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
|
||||
}
|
||||
main { max-width: 1024px; margin: 0 auto; padding: 1.5rem 1rem; }
|
||||
@media (min-width: 640px) { main { padding: 1.5rem 1.5rem; } }
|
||||
.brand-icon { width: 28px; height: 28px; }
|
||||
.icon-sm { width: 16px; height: 16px; }
|
||||
.icon-xs { width: 12px; height: 12px; }
|
||||
.icon-lg { width: 48px; height: 48px; }
|
||||
.cover-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
|
||||
.search-dropdown-item:hover { background: color-mix(in srgb, var(--p) 10%, transparent); }
|
||||
</style>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
@@ -35,22 +35,22 @@
|
||||
</script>
|
||||
</head>
|
||||
<body class="min-h-screen bg-base-200">
|
||||
<div class="navbar bg-base-100 shadow-lg px-6">
|
||||
<div class="navbar bg-base-100 shadow-lg px-4">
|
||||
<div class="navbar-start">
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="flex items-center gap-2">
|
||||
<a href="/" class="flex items-center gap-2 no-underline">
|
||||
<svg class="w-7 h-7 text-primary" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<svg class="brand-icon text-primary" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="6" cy="18" r="3"/>
|
||||
<circle cx="18" cy="16" r="3"/>
|
||||
<path d="M9 18V5l12-2v13"/>
|
||||
<path d="M9 9l12-2"/>
|
||||
</svg>
|
||||
<div>
|
||||
<span class="text-xl font-extrabold bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent">DiscDrop</span>
|
||||
<span class="text-xs text-base-content/50 hidden sm:block leading-none -mt-0.5">Release Groups Feed</span>
|
||||
<div class="text-xl font-bold" style="background:linear-gradient(135deg,var(--p),var(--a));-webkit-background-clip:text;-webkit-text-fill-color:transparent">DiscDrop</div>
|
||||
<div class="text-xs text-base-content/50 leading-none" style="display:none">Release Groups Feed</div>
|
||||
</div>
|
||||
</a>
|
||||
<div class="tabs tabs-box ml-4 hidden sm:flex">
|
||||
<div class="tabs tabs-box ml-2 hidden sm:flex">
|
||||
<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>
|
||||
@@ -58,7 +58,7 @@
|
||||
</div>
|
||||
|
||||
<div class="navbar-center">
|
||||
<div id="search-wrapper" class="w-72 md:w-80 lg:w-96">
|
||||
<div id="search-wrapper">
|
||||
<form hx-get="/api/artists/search"
|
||||
hx-target="#search-results"
|
||||
hx-swap="innerHTML"
|
||||
@@ -74,8 +74,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="navbar-end gap-2">
|
||||
<select class="select select-bordered select-sm w-full max-w-[8rem]"
|
||||
<div class="navbar-end gap-1">
|
||||
<select class="select select-bordered select-sm" style="width:7rem"
|
||||
onchange="setTheme(this)">
|
||||
<option value="dark">Dark</option>
|
||||
<option value="light">Light</option>
|
||||
@@ -87,12 +87,12 @@
|
||||
<option value="nord">Nord</option>
|
||||
</select>
|
||||
|
||||
<button class="btn btn-ghost btn-sm"
|
||||
<button class="btn btn-ghost btn-sm px-2"
|
||||
onclick="settingsModal.showModal()">⚙️</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<main class="max-w-5xl mx-auto px-4 sm:px-6 py-6">
|
||||
<main>
|
||||
{#insert page-content}{/insert}
|
||||
</main>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user