VYBECODEDDDDDDDDD

This commit is contained in:
Anaïs Saraiva
2026-08-15 00:20:45 +02:00
parent 1a2c8aaf7c
commit 5f201cf725
23 changed files with 2263 additions and 2 deletions
+325
View File
@@ -0,0 +1,325 @@
:root {
--bg: #0f1115;
--card: #171a21;
--border: #2a2f3a;
--text: #e6e8ee;
--muted: #9aa3b2;
--accent: #4f8cff;
--accent-hover: #3a74e0;
--danger: #e05252;
--ok: #46b076;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.card {
width: 100%;
max-width: 560px;
background: var(--card);
border: 1px solid var(--border);
border-radius: 14px;
padding: 28px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
h1 {
margin: 0 0 4px;
font-size: 24px;
}
.tagline {
margin: 0 0 20px;
color: var(--muted);
font-size: 14px;
}
.dropzone {
border: 2px dashed var(--border);
border-radius: 12px;
padding: 40px 20px;
text-align: center;
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
outline: none;
}
.dropzone:hover,
.dropzone.drag,
.dropzone:focus-visible {
border-color: var(--accent);
background: rgba(79, 140, 255, 0.06);
}
.dz-main {
margin: 0;
font-weight: 600;
}
.dz-sub {
margin: 6px 0 0;
color: var(--muted);
font-size: 13px;
}
.progress {
margin-top: 20px;
}
.progress-label {
display: flex;
justify-content: space-between;
gap: 12px;
font-size: 13px;
color: var(--muted);
margin-bottom: 8px;
}
.progress-label span:first-child {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.progress-track {
height: 8px;
background: var(--border);
border-radius: 99px;
overflow: hidden;
}
.progress-bar {
height: 100%;
width: 0%;
background: var(--accent);
border-radius: 99px;
transition: width 0.15s;
}
.result {
margin-top: 20px;
}
.result-meta {
font-size: 14px;
margin-bottom: 10px;
color: var(--muted);
word-break: break-all;
}
.result-meta strong {
color: var(--text);
font-weight: 600;
}
.url-row {
display: flex;
gap: 8px;
}
.url-row input {
flex: 1;
min-width: 0;
background: var(--bg);
border: 1px solid var(--border);
color: var(--text);
border-radius: 8px;
padding: 10px 12px;
font-size: 13px;
}
.result-actions {
display: flex;
gap: 8px;
margin-top: 10px;
}
button {
font: inherit;
cursor: pointer;
border: none;
border-radius: 8px;
padding: 9px 14px;
font-size: 13px;
background: var(--accent);
color: #fff;
transition: background 0.15s;
}
button:hover {
background: var(--accent-hover);
}
button.danger {
background: transparent;
border: 1px solid var(--danger);
color: var(--danger);
}
button.danger:hover {
background: rgba(224, 82, 82, 0.1);
}
button.ghost {
background: transparent;
border: 1px solid var(--border);
color: var(--muted);
}
button.ghost:hover {
color: var(--text);
border-color: var(--muted);
}
#notice {
margin-top: 16px;
font-size: 13px;
border-radius: 8px;
padding: 10px 12px;
}
#notice.error {
color: var(--danger);
background: rgba(224, 82, 82, 0.08);
border: 1px solid rgba(224, 82, 82, 0.3);
}
#notice.info {
color: var(--ok);
background: rgba(70, 176, 118, 0.08);
border: 1px solid rgba(70, 176, 118, 0.3);
}
.hidden {
display: none !important;
}
/* Client-side upload list */
.files {
margin-top: 24px;
border-top: 1px solid var(--border);
padding-top: 18px;
}
.files-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.files-head h2 {
margin: 0;
font-size: 15px;
font-weight: 600;
}
.files-note {
margin: 6px 0 12px;
font-size: 12px;
color: var(--muted);
}
#fileList {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.file-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px 12px;
}
.file-item-meta {
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.file-item-name {
font-size: 13px;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-item-sub {
font-size: 12px;
color: var(--muted);
white-space: nowrap;
}
.file-item-actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.btn-link {
font: inherit;
font-size: 13px;
color: #fff;
background: var(--accent);
border-radius: 8px;
padding: 8px 12px;
text-decoration: none;
transition: background 0.15s;
}
.btn-link:hover {
background: var(--accent-hover);
}
.file-item-actions button {
font-size: 12px;
padding: 8px 10px;
}
@media (max-width: 480px) {
.card {
padding: 20px;
}
.dropzone {
padding: 28px 16px;
}
.url-row {
flex-direction: column;
}
.file-item {
flex-direction: column;
align-items: stretch;
}
.file-item-actions {
justify-content: flex-end;
}
}