Spaces:
Paused
Paused
Upload 20 files
Browse files- static/app.js +4 -4
- templates/index.html +12 -12
static/app.js
CHANGED
|
@@ -574,11 +574,11 @@
|
|
| 574 |
function showAddTab(tab) {
|
| 575 |
const isMagnet = tab === "magnet";
|
| 576 |
elements.addTabMagnet.className = isMagnet
|
| 577 |
-
? "add-tab font-display rounded-2xl border border-
|
| 578 |
-
: "add-tab font-display rounded-2xl border border-transparent px-4 py-3 text-sm font-semibold text-stone-300 transition hover:
|
| 579 |
elements.addTabFile.className = !isMagnet
|
| 580 |
-
? "add-tab font-display rounded-2xl border border-
|
| 581 |
-
: "add-tab font-display rounded-2xl border border-transparent px-4 py-3 text-sm font-semibold text-stone-300 transition hover:
|
| 582 |
elements.addPanelMagnet.classList.toggle("hidden", !isMagnet);
|
| 583 |
elements.addPanelFile.classList.toggle("hidden", isMagnet);
|
| 584 |
}
|
|
|
|
| 574 |
function showAddTab(tab) {
|
| 575 |
const isMagnet = tab === "magnet";
|
| 576 |
elements.addTabMagnet.className = isMagnet
|
| 577 |
+
? "add-tab font-display rounded-2xl border border-transparent bg-neon px-4 py-3 text-sm font-semibold text-ink transition hover:bg-[#4bf1d1]"
|
| 578 |
+
: "add-tab font-display rounded-2xl border border-transparent px-4 py-3 text-sm font-semibold text-stone-300 transition hover:bg-white/5";
|
| 579 |
elements.addTabFile.className = !isMagnet
|
| 580 |
+
? "add-tab font-display rounded-2xl border border-transparent bg-neon px-4 py-3 text-sm font-semibold text-ink transition hover:bg-[#4bf1d1]"
|
| 581 |
+
: "add-tab font-display rounded-2xl border border-transparent px-4 py-3 text-sm font-semibold text-stone-300 transition hover:bg-white/5";
|
| 582 |
elements.addPanelMagnet.classList.toggle("hidden", !isMagnet);
|
| 583 |
elements.addPanelFile.classList.toggle("hidden", isMagnet);
|
| 584 |
}
|
templates/index.html
CHANGED
|
@@ -257,8 +257,8 @@
|
|
| 257 |
</main>
|
| 258 |
|
| 259 |
<div id="add-modal" class="fixed inset-0 z-[70] hidden items-center justify-center bg-black/75 px-4 backdrop-blur-xl">
|
| 260 |
-
<div class="w-full max-w-2xl rounded-[30px] border border-
|
| 261 |
-
<div class="flex items-start justify-between border-b border-
|
| 262 |
<div class="flex items-center gap-4">
|
| 263 |
<div class="flex h-12 w-12 items-center justify-center rounded-2xl bg-neon/12 text-neon">
|
| 264 |
<i class="fa-solid fa-plus text-lg"></i>
|
|
@@ -268,17 +268,17 @@
|
|
| 268 |
<h3 class="font-display mt-2 text-xl font-semibold text-white">Push magnet link atau torrent file</h3>
|
| 269 |
</div>
|
| 270 |
</div>
|
| 271 |
-
<button id="add-modal-close" type="button" class="rounded-2xl border border-
|
| 272 |
<i class="fa-solid fa-xmark"></i>
|
| 273 |
</button>
|
| 274 |
</div>
|
| 275 |
|
| 276 |
<div class="p-5 sm:p-6">
|
| 277 |
-
<div class="grid grid-cols-2 gap-2 rounded-[24px] border border-
|
| 278 |
-
<button type="button" id="add-tab-magnet" data-add-tab="magnet" class="add-tab font-display rounded-2xl border border-
|
| 279 |
Magnet / URL
|
| 280 |
</button>
|
| 281 |
-
<button type="button" id="add-tab-file" data-add-tab="file" class="add-tab font-display rounded-2xl border border-transparent px-4 py-3 text-sm font-semibold text-stone-300 transition hover:
|
| 282 |
Torrent File
|
| 283 |
</button>
|
| 284 |
</div>
|
|
@@ -287,13 +287,13 @@
|
|
| 287 |
<form id="magnet-form" action="{{ url_for('add_magnet') }}" method="post" class="space-y-4">
|
| 288 |
<div>
|
| 289 |
<label class="mb-2 block text-sm text-stone-300">Magnet link atau URL</label>
|
| 290 |
-
<textarea name="magnet_link" rows="6" placeholder="magnet:?xt=urn:btih:... atau https://..." class="w-full rounded-[24px] border border-
|
| 291 |
</div>
|
| 292 |
<div class="grid grid-cols-2 gap-3">
|
| 293 |
-
<button type="button" data-close-add-modal class="font-display rounded-2xl border border-
|
| 294 |
Cancel
|
| 295 |
</button>
|
| 296 |
-
<button type="submit" class="font-display rounded-2xl border border-
|
| 297 |
Add Magnet
|
| 298 |
</button>
|
| 299 |
</div>
|
|
@@ -302,7 +302,7 @@
|
|
| 302 |
|
| 303 |
<div id="add-panel-file" data-add-panel="file" class="mt-5 hidden">
|
| 304 |
<form id="torrent-upload-form" action="{{ url_for('upload_torrent') }}" method="post" enctype="multipart/form-data" class="space-y-4">
|
| 305 |
-
<label class="block rounded-[24px] border border-dashed border-
|
| 306 |
<div class="mx-auto flex h-14 w-14 items-center justify-center rounded-3xl bg-white/[0.04] text-neon">
|
| 307 |
<i class="fa-solid fa-file-arrow-up text-lg"></i>
|
| 308 |
</div>
|
|
@@ -311,10 +311,10 @@
|
|
| 311 |
<input type="file" name="torrent_file" accept=".torrent" class="mt-5 block w-full text-sm text-stone-300 file:mr-4 file:rounded-full file:border-0 file:bg-neon file:px-4 file:py-2 file:font-semibold file:text-ink" />
|
| 312 |
</label>
|
| 313 |
<div class="grid grid-cols-2 gap-3">
|
| 314 |
-
<button type="button" data-close-add-modal class="font-display rounded-2xl border border-
|
| 315 |
Cancel
|
| 316 |
</button>
|
| 317 |
-
<button type="submit" class="font-display rounded-2xl border border-
|
| 318 |
Upload Torrent
|
| 319 |
</button>
|
| 320 |
</div>
|
|
|
|
| 257 |
</main>
|
| 258 |
|
| 259 |
<div id="add-modal" class="fixed inset-0 z-[70] hidden items-center justify-center bg-black/75 px-4 backdrop-blur-xl">
|
| 260 |
+
<div class="w-full max-w-2xl rounded-[30px] border border-[#1b2332] bg-[linear-gradient(180deg,rgba(14,18,28,0.98),rgba(10,13,20,0.97))] shadow-halo">
|
| 261 |
+
<div class="flex items-start justify-between border-b border-[#1b2332] px-5 py-5 sm:px-6">
|
| 262 |
<div class="flex items-center gap-4">
|
| 263 |
<div class="flex h-12 w-12 items-center justify-center rounded-2xl bg-neon/12 text-neon">
|
| 264 |
<i class="fa-solid fa-plus text-lg"></i>
|
|
|
|
| 268 |
<h3 class="font-display mt-2 text-xl font-semibold text-white">Push magnet link atau torrent file</h3>
|
| 269 |
</div>
|
| 270 |
</div>
|
| 271 |
+
<button id="add-modal-close" type="button" class="rounded-2xl border border-[#20293a] px-3 py-2 text-sm text-stone-400 transition hover:bg-white/5 hover:text-white">
|
| 272 |
<i class="fa-solid fa-xmark"></i>
|
| 273 |
</button>
|
| 274 |
</div>
|
| 275 |
|
| 276 |
<div class="p-5 sm:p-6">
|
| 277 |
+
<div class="grid grid-cols-2 gap-2 rounded-[24px] border border-[#1b2332] bg-black/20 p-2">
|
| 278 |
+
<button type="button" id="add-tab-magnet" data-add-tab="magnet" class="add-tab font-display rounded-2xl border border-transparent bg-neon px-4 py-3 text-sm font-semibold text-ink transition hover:bg-[#4bf1d1]">
|
| 279 |
Magnet / URL
|
| 280 |
</button>
|
| 281 |
+
<button type="button" id="add-tab-file" data-add-tab="file" class="add-tab font-display rounded-2xl border border-transparent px-4 py-3 text-sm font-semibold text-stone-300 transition hover:bg-white/5">
|
| 282 |
Torrent File
|
| 283 |
</button>
|
| 284 |
</div>
|
|
|
|
| 287 |
<form id="magnet-form" action="{{ url_for('add_magnet') }}" method="post" class="space-y-4">
|
| 288 |
<div>
|
| 289 |
<label class="mb-2 block text-sm text-stone-300">Magnet link atau URL</label>
|
| 290 |
+
<textarea name="magnet_link" rows="6" placeholder="magnet:?xt=urn:btih:... atau https://..." class="w-full rounded-[24px] border border-[#20293a] bg-black/30 px-4 py-4 text-sm text-white outline-none transition placeholder:text-stone-500 focus:border-neon/40"></textarea>
|
| 291 |
</div>
|
| 292 |
<div class="grid grid-cols-2 gap-3">
|
| 293 |
+
<button type="button" data-close-add-modal class="font-display rounded-2xl border border-[#20293a] bg-white/[0.03] px-4 py-3 text-sm font-medium text-stone-200 transition hover:bg-white/[0.06]">
|
| 294 |
Cancel
|
| 295 |
</button>
|
| 296 |
+
<button type="submit" class="font-display rounded-2xl border border-[#20293a] bg-white/[0.03] px-4 py-3 text-sm font-medium text-stone-100 transition hover:bg-white/[0.06]">
|
| 297 |
Add Magnet
|
| 298 |
</button>
|
| 299 |
</div>
|
|
|
|
| 302 |
|
| 303 |
<div id="add-panel-file" data-add-panel="file" class="mt-5 hidden">
|
| 304 |
<form id="torrent-upload-form" action="{{ url_for('upload_torrent') }}" method="post" enctype="multipart/form-data" class="space-y-4">
|
| 305 |
+
<label class="block rounded-[24px] border border-dashed border-[#20293a] bg-black/30 px-5 py-8 text-center transition hover:border-neon/30 hover:bg-black/40">
|
| 306 |
<div class="mx-auto flex h-14 w-14 items-center justify-center rounded-3xl bg-white/[0.04] text-neon">
|
| 307 |
<i class="fa-solid fa-file-arrow-up text-lg"></i>
|
| 308 |
</div>
|
|
|
|
| 311 |
<input type="file" name="torrent_file" accept=".torrent" class="mt-5 block w-full text-sm text-stone-300 file:mr-4 file:rounded-full file:border-0 file:bg-neon file:px-4 file:py-2 file:font-semibold file:text-ink" />
|
| 312 |
</label>
|
| 313 |
<div class="grid grid-cols-2 gap-3">
|
| 314 |
+
<button type="button" data-close-add-modal class="font-display rounded-2xl border border-[#20293a] bg-white/[0.03] px-4 py-3 text-sm font-medium text-stone-200 transition hover:bg-white/[0.06]">
|
| 315 |
Cancel
|
| 316 |
</button>
|
| 317 |
+
<button type="submit" class="font-display rounded-2xl border border-[#20293a] bg-white/[0.03] px-4 py-3 text-sm font-medium text-stone-100 transition hover:bg-white/[0.06]">
|
| 318 |
Upload Torrent
|
| 319 |
</button>
|
| 320 |
</div>
|