Commit ·
2aa6aed
1
Parent(s): 7cccc5b
minor ui tweaks
Browse files- index.html +15 -24
index.html
CHANGED
|
@@ -363,6 +363,14 @@
|
|
| 363 |
class="aspect-[2/3] w-full rounded-xl overflow-hidden bg-zinc-800 border border-zinc-700 relative group shadow-lg">
|
| 364 |
<img id="modalMainImage" src="" alt="Model preview"
|
| 365 |
class="w-full h-full object-cover transition-opacity duration-300">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 366 |
<!-- Image source badge for modal main image -->
|
| 367 |
<div class="absolute top-2 right-2 z-10">
|
| 368 |
<span id="modalImageBadge"
|
|
@@ -370,30 +378,13 @@
|
|
| 370 |
</div>
|
| 371 |
</div>
|
| 372 |
|
| 373 |
-
<!-- Action Bar (
|
| 374 |
-
<div class="
|
| 375 |
-
<!-- Secondary Action: View -->
|
| 376 |
-
<a id="openOriginalLink" href="#" target="_blank"
|
| 377 |
-
class="flex-1 flex items-center justify-center px-4 py-2.5 bg-zinc-800 hover:bg-zinc-750 border border-zinc-700 hover:border-zinc-600 rounded-lg transition-all group focus:outline-none focus:ring-2 focus:ring-zinc-500/50">
|
| 378 |
-
<i data-lucide="external-link"
|
| 379 |
-
class="h-5 w-5 text-zinc-400 group-hover:text-white transition-colors mr-3"></i>
|
| 380 |
-
<div class="flex flex-col text-left">
|
| 381 |
-
<span class="text-sm font-medium text-zinc-200 group-hover:text-white leading-tight">View</span>
|
| 382 |
-
<span
|
| 383 |
-
class="text-[10px] text-zinc-500 group-hover:text-zinc-400 font-medium tracking-wide leading-tight">SOURCE</span>
|
| 384 |
-
</div>
|
| 385 |
-
</a>
|
| 386 |
-
|
| 387 |
-
<!-- Primary Action: Download -->
|
| 388 |
<a id="downloadImageBtn" href="#" target="_blank" download
|
| 389 |
-
class="
|
| 390 |
<i data-lucide="download"
|
| 391 |
-
class="h-5 w-5 text-
|
| 392 |
-
<
|
| 393 |
-
<span class="text-sm font-medium text-white leading-tight">Download</span>
|
| 394 |
-
<span
|
| 395 |
-
class="text-[10px] text-indigo-200 group-hover:text-indigo-100 font-medium tracking-wide leading-tight">IMAGE</span>
|
| 396 |
-
</div>
|
| 397 |
</a>
|
| 398 |
</div>
|
| 399 |
|
|
@@ -458,8 +449,8 @@
|
|
| 458 |
"embedding": "https://huggingface.co/malcolmrey/embeddings/resolve/main/",
|
| 459 |
"flux": "https://huggingface.co/malcolmrey/flux/resolve/main/",
|
| 460 |
"wan": "https://huggingface.co/malcolmrey/wan/resolve/main/wan2.1/",
|
| 461 |
-
"sdxl": "https://huggingface.co/malcolmrey/sdxl/
|
| 462 |
-
"zimage": "https://huggingface.co/malcolmrey/zimage/
|
| 463 |
};
|
| 464 |
|
| 465 |
const TYPE_DISPLAY_NAMES = {
|
|
|
|
| 363 |
class="aspect-[2/3] w-full rounded-xl overflow-hidden bg-zinc-800 border border-zinc-700 relative group shadow-lg">
|
| 364 |
<img id="modalMainImage" src="" alt="Model preview"
|
| 365 |
class="w-full h-full object-cover transition-opacity duration-300">
|
| 366 |
+
|
| 367 |
+
<!-- View Original Button (Moved to Top Left) -->
|
| 368 |
+
<a id="openOriginalLink" href="#" target="_blank"
|
| 369 |
+
class="absolute top-2 left-2 p-2 bg-black/40 hover:bg-black/70 backdrop-blur-md rounded-lg text-white/80 hover:text-white border border-white/10 transition-all z-20 focus:outline-none focus:ring-2 focus:ring-indigo-500"
|
| 370 |
+
title="View Original Image">
|
| 371 |
+
<i data-lucide="external-link" class="h-4 w-4"></i>
|
| 372 |
+
</a>
|
| 373 |
+
|
| 374 |
<!-- Image source badge for modal main image -->
|
| 375 |
<div class="absolute top-2 right-2 z-10">
|
| 376 |
<span id="modalImageBadge"
|
|
|
|
| 378 |
</div>
|
| 379 |
</div>
|
| 380 |
|
| 381 |
+
<!-- Action Bar (Download Only - Full Width) -->
|
| 382 |
+
<div class="w-full">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 383 |
<a id="downloadImageBtn" href="#" target="_blank" download
|
| 384 |
+
class="w-full group flex items-center justify-center px-4 py-3.5 bg-indigo-600 hover:bg-indigo-500 border border-indigo-500 hover:border-indigo-400 rounded-xl transition-all duration-200 shadow-lg shadow-indigo-900/20 focus:outline-none focus:ring-2 focus:ring-indigo-500/50">
|
| 385 |
<i data-lucide="download"
|
| 386 |
+
class="h-5 w-5 text-white mr-2.5 transition-transform group-hover:-translate-y-0.5"></i>
|
| 387 |
+
<span class="text-sm font-semibold text-white leading-none">Download Original Image</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 388 |
</a>
|
| 389 |
</div>
|
| 390 |
|
|
|
|
| 449 |
"embedding": "https://huggingface.co/malcolmrey/embeddings/resolve/main/",
|
| 450 |
"flux": "https://huggingface.co/malcolmrey/flux/resolve/main/",
|
| 451 |
"wan": "https://huggingface.co/malcolmrey/wan/resolve/main/wan2.1/",
|
| 452 |
+
"sdxl": "https://huggingface.co/malcolmrey/sdxl/resolve/main/",
|
| 453 |
+
"zimage": "https://huggingface.co/malcolmrey/zimage/resolve/main/"
|
| 454 |
};
|
| 455 |
|
| 456 |
const TYPE_DISPLAY_NAMES = {
|