This commit is contained in:
Anaïs Saraiva
2026-08-15 00:35:22 +02:00
parent 954384d1e4
commit d8b9fbe993
8 changed files with 578 additions and 388 deletions
+335 -208
View File
@@ -1,13 +1,15 @@
:root {
--bg: #0f1115;
--card: #171a21;
--border: #2a2f3a;
--text: #e6e8ee;
--muted: #9aa3b2;
--accent: #4f8cff;
--accent-hover: #3a74e0;
--danger: #e05252;
--bg: #0e1013;
--surface: #15181d;
--surface-2: #1a1e24;
--border: #262b33;
--text: #e7eaf0;
--muted: #98a1af;
--accent: #3f7bf6;
--accent-strong: #2f63d8;
--danger: #e05555;
--ok: #46b076;
--radius: 8px;
}
* {
@@ -20,37 +22,151 @@ body {
background: var(--bg);
color: var(--text);
min-height: 100vh;
}
button,
input {
font: inherit;
}
button {
cursor: pointer;
}
.app {
max-width: 1180px;
margin: 0 auto;
padding: 0 20px 48px;
}
/* ---- top bar ---- */
.topbar {
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
justify-content: space-between;
gap: 16px;
padding: 20px 0 18px;
border-bottom: 1px solid var(--border);
margin-bottom: 22px;
}
.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);
.brand {
display: flex;
align-items: center;
gap: 12px;
}
h1 {
margin: 0 0 4px;
font-size: 24px;
.logo {
width: 40px;
height: 40px;
border-radius: var(--radius);
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
color: #fff;
font-weight: 700;
display: grid;
place-items: center;
letter-spacing: 0.5px;
}
.tagline {
margin: 0 0 20px;
.brand-text h1 {
margin: 0;
font-size: 18px;
font-weight: 650;
line-height: 1.1;
}
.sub {
font-size: 12px;
color: var(--muted);
font-size: 14px;
}
.topbar-actions {
display: flex;
gap: 8px;
}
/* ---- buttons ---- */
.btn {
border: 1px solid transparent;
border-radius: var(--radius);
padding: 9px 14px;
font-size: 13px;
font-weight: 600;
transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn-primary {
background: var(--accent);
color: #fff;
}
.btn-primary:hover {
background: var(--accent-strong);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-ghost {
background: transparent;
border-color: var(--border);
color: var(--muted);
}
.btn-ghost:hover {
color: var(--text);
border-color: var(--muted);
}
.btn-danger {
background: transparent;
border: 1px solid var(--danger);
color: var(--danger);
}
.btn-danger:hover {
background: rgba(224, 85, 85, 0.1);
}
.btn-block {
width: 100%;
margin-top: 14px;
}
/* ---- layout ---- */
.layout {
display: grid;
grid-template-columns: 340px 1fr;
gap: 20px;
align-items: start;
}
.panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
}
.panel h2 {
margin: 0 0 16px;
font-size: 15px;
font-weight: 650;
letter-spacing: 0.2px;
}
/* ---- upload panel ---- */
.upload-panel {
position: sticky;
top: 20px;
}
.dropzone {
border: 2px dashed var(--border);
border-radius: 12px;
padding: 40px 20px;
border: 1.5px dashed var(--border);
border-radius: var(--radius);
padding: 26px 16px;
text-align: center;
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
@@ -61,61 +177,67 @@ h1 {
.dropzone.drag,
.dropzone:focus-visible {
border-color: var(--accent);
background: rgba(79, 140, 255, 0.06);
background: rgba(63, 123, 246, 0.06);
}
.dz-main {
margin: 0;
font-weight: 600;
font-size: 14px;
}
.dz-sub {
margin: 6px 0 0;
color: var(--muted);
font-size: 12px;
}
.dz-file {
margin: 12px 0 0;
font-size: 13px;
font-weight: 600;
color: var(--accent);
word-break: break-all;
}
.pw-row {
margin-top: 12px;
.field {
margin-top: 16px;
}
.pw-row input {
.field label {
display: block;
font-size: 12px;
font-weight: 600;
color: var(--muted);
margin-bottom: 6px;
letter-spacing: 0.3px;
}
.field input {
width: 100%;
background: var(--bg);
border: 1px solid var(--border);
color: var(--text);
border-radius: 8px;
padding: 10px 12px;
font-size: 13px;
border-radius: var(--radius);
padding: 11px 12px;
font-size: 14px;
}
.pw-row input:focus {
.field input:focus {
outline: none;
border-color: var(--accent);
}
.lock {
display: inline-block;
margin-left: 8px;
font-size: 11px;
font-weight: 600;
color: var(--muted);
background: rgba(79, 140, 255, 0.12);
border: 1px solid rgba(79, 140, 255, 0.3);
border-radius: 99px;
padding: 2px 8px;
vertical-align: middle;
}
/* ---- progress ---- */
.progress {
margin-top: 20px;
margin-top: 16px;
}
.progress-label {
display: flex;
justify-content: space-between;
gap: 12px;
font-size: 13px;
font-size: 12px;
color: var(--muted);
margin-bottom: 8px;
}
@@ -127,8 +249,8 @@ h1 {
}
.progress-track {
height: 8px;
background: var(--border);
height: 6px;
background: var(--surface-2);
border-radius: 99px;
overflow: hidden;
}
@@ -141,20 +263,27 @@ h1 {
transition: width 0.15s;
}
/* ---- result banner ---- */
.result {
margin-top: 20px;
margin-top: 16px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface-2);
padding: 12px;
}
.result-meta {
font-size: 14px;
.result-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 10px;
color: var(--muted);
word-break: break-all;
}
.result-meta strong {
color: var(--text);
.result-head span:first-child {
font-size: 13px;
font-weight: 600;
word-break: break-all;
}
.url-row {
@@ -168,65 +297,159 @@ h1 {
background: var(--bg);
border: 1px solid var(--border);
color: var(--text);
border-radius: 8px;
border-radius: var(--radius);
padding: 10px 12px;
font-size: 13px;
}
.result-actions {
/* ---- files panel ---- */
.panel-head {
display: flex;
gap: 8px;
margin-top: 10px;
align-items: baseline;
justify-content: space-between;
gap: 12px;
}
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;
.panel-head h2 {
margin-bottom: 4px;
}
button:hover {
background: var(--accent-hover);
.count {
font-size: 12px;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
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);
.files-note {
margin: 0 0 16px;
font-size: 12px;
color: var(--muted);
}
button.ghost:hover {
color: var(--text);
border-color: var(--muted);
.table-wrap {
border: 1px solid var(--border);
border-radius: var(--radius);
overflow-x: auto;
}
#notice {
margin-top: 16px;
.files-table {
width: 100%;
border-collapse: collapse;
min-width: 520px;
}
.files-table th,
.files-table td {
text-align: left;
padding: 12px 14px;
border-bottom: 1px solid var(--border);
font-size: 13px;
border-radius: 8px;
vertical-align: middle;
}
.files-table thead th {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.6px;
color: var(--muted);
background: var(--surface-2);
border-bottom: 1px solid var(--border);
font-weight: 600;
}
.files-table tbody tr:last-child td {
border-bottom: none;
}
.files-table tbody tr:hover td {
background: rgba(255, 255, 255, 0.015);
}
.col-name {
width: 40%;
}
.col-size {
width: 12%;
}
.col-date {
width: 20%;
}
.col-actions {
width: 28%;
text-align: right;
}
.file-name {
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
word-break: break-all;
}
.lock {
flex-shrink: 0;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.4px;
color: var(--muted);
background: rgba(63, 123, 246, 0.12);
border: 1px solid rgba(63, 123, 246, 0.3);
border-radius: 99px;
padding: 2px 8px;
}
.file-sub {
display: block;
font-size: 12px;
color: var(--muted);
font-weight: 400;
margin-top: 2px;
word-break: break-all;
}
.file-size,
.file-date {
color: var(--muted);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.row-actions {
display: flex;
justify-content: flex-end;
gap: 6px;
}
.row-actions .btn {
padding: 7px 10px;
font-size: 12px;
}
.empty {
text-align: center;
color: var(--muted);
font-size: 13px;
padding: 28px 0 6px;
margin: 0;
}
/* ---- notice ---- */
#notice {
margin-top: 14px;
font-size: 13px;
border-radius: var(--radius);
padding: 10px 12px;
}
#notice.error {
color: var(--danger);
background: rgba(224, 82, 82, 0.08);
border: 1px solid rgba(224, 82, 82, 0.3);
background: rgba(224, 85, 85, 0.08);
border: 1px solid rgba(224, 85, 85, 0.3);
}
#notice.info {
@@ -239,119 +462,23 @@ button.ghost:hover {
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;
/* ---- responsive ---- */
@media (max-width: 860px) {
.layout {
grid-template-columns: 1fr;
}
.dropzone {
padding: 28px 16px;
}
.url-row {
flex-direction: column;
}
.file-item {
flex-direction: column;
align-items: stretch;
}
.file-item-actions {
justify-content: flex-end;
.upload-panel {
position: static;
}
}
@media (max-width: 520px) {
.app {
padding: 0 12px 32px;
}
.topbar {
flex-wrap: wrap;
}
}