Spaces:
Sleeping
Sleeping
File size: 4,411 Bytes
5dd645e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | :root {
color-scheme: dark;
--bg: #0b0d17;
--panel: #121521;
--panel-2: #171b29;
--border: #2a3042;
--text: #f3f5fb;
--muted: #929bb7;
--blue: #3f86ff;
--green: #39d98a;
--red: #ff5f70;
--amber: #ffbf47;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
letter-spacing: 0;
}
button, input { font: inherit; }
.app-shell {
width: min(1180px, calc(100% - 32px));
margin: 0 auto;
padding: 34px 0;
}
.app-header,
.report-heading,
.file-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
}
.app-header { margin-bottom: 22px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); }
h2 { margin-bottom: 0; font-size: 1.25rem; }
.eyebrow {
margin-bottom: 6px;
color: #7997d5;
font-size: 0.72rem;
font-weight: 800;
}
.status,
.verdict {
min-width: max-content;
border: 1px solid var(--border);
border-radius: 999px;
padding: 8px 11px;
color: var(--muted);
background: var(--panel);
font-size: 0.78rem;
font-weight: 800;
}
.status.online { color: var(--green); border-color: rgba(57, 217, 138, 0.38); }
.status.offline { color: var(--red); border-color: rgba(255, 95, 112, 0.38); }
.workspace {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
background: var(--panel);
}
.upload-panel,
.report-panel { padding: 24px; }
.upload-panel { border-right: 1px solid var(--border); }
.drop-zone {
position: relative;
display: grid;
place-items: center;
width: 100%;
aspect-ratio: 4 / 3;
overflow: hidden;
border: 1px dashed #3d4864;
border-radius: 6px;
background: #0d1019;
cursor: pointer;
}
.drop-zone:hover,
.drop-zone.dragging { border-color: var(--blue); background: #101727; }
.drop-content { display: grid; gap: 7px; text-align: center; }
.drop-content strong { font-size: 1.05rem; }
.drop-content small, .report-note, .disclaimer { color: var(--muted); }
#preview {
display: none;
width: 100%;
height: 100%;
object-fit: contain;
background: #090b12;
}
.drop-zone.has-preview #preview { display: block; }
.drop-zone.has-preview .drop-content { display: none; }
#imageInput { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-row { margin-top: 16px; }
#fileName { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
button {
min-width: 154px;
border: 1px solid #5b98ff;
border-radius: 6px;
padding: 11px 15px;
background: var(--blue);
color: white;
font-weight: 800;
cursor: pointer;
}
button:hover { background: #3177ee; }
button:disabled { cursor: wait; opacity: 0.6; }
.verdict.approved { color: var(--green); border-color: rgba(57, 217, 138, 0.42); }
.verdict.rejected, .verdict.error { color: var(--red); border-color: rgba(255, 95, 112, 0.42); }
.verdict.running { color: var(--amber); border-color: rgba(255, 191, 71, 0.42); }
.report-note { min-height: 42px; margin: 17px 0; line-height: 1.5; }
.test-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.test-list li {
display: grid;
grid-template-columns: 34px minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
min-height: 54px;
border: 1px solid var(--border);
border-radius: 6px;
padding: 9px 12px;
background: var(--panel-2);
}
.test-index { color: #6f7893; font-size: 0.74rem; font-weight: 900; }
.test-list b { color: var(--muted); font-size: 0.76rem; }
.test-list li.passed b { color: var(--green); }
.test-list li.rejected b, .test-list li.error b { color: var(--red); }
.test-list li.running b { color: var(--amber); }
.test-list li.skipped { opacity: 0.55; }
.disclaimer { margin: 16px 0 0; font-size: 0.78rem; line-height: 1.5; }
@media (max-width: 800px) {
.app-shell { width: min(100% - 20px, 620px); padding: 20px 0; }
.app-header { align-items: flex-start; }
.workspace { grid-template-columns: 1fr; }
.upload-panel { border-right: 0; border-bottom: 1px solid var(--border); }
.upload-panel, .report-panel { padding: 16px; }
.file-row { align-items: stretch; flex-direction: column; }
button { width: 100%; }
}
|