File size: 6,343 Bytes
b53842c 865a374 b53842c 865a374 b53842c 20f7f76 ff06182 b53842c 47fd98a b53842c 865a374 b53842c 20f7f76 a0bce21 b53842c 923d033 b53842c 20f7f76 b53842c 20f7f76 b53842c 08ac99b b53842c 08ac99b b53842c 7f6402f 20f7f76 7f6402f 3ddc65f dc939d2 3ddc65f dc939d2 3ddc65f dc939d2 3ddc65f dc939d2 b53842c 20f7f76 865a374 b53842c 865a374 b53842c 865a374 b53842c d7b1942 b53842c 865a374 b53842c 865a374 b53842c 865a374 b53842c 0ce0b86 865a374 0ce0b86 b53842c f6faef3 20f7f76 ff06182 c1094a0 b53842c 865a374 b53842c c9f5dfd ff06182 20f7f76 865a374 b53842c f6faef3 ff06182 b53842c 865a374 b53842c 865a374 b53842c 865a374 b53842c 865a374 b53842c c1094a0 b53842c ff06182 b53842c | 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 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 | :root {
color-scheme: light;
font-family:
"Space Grotesk",
"Avenir Next",
"Segoe UI",
sans-serif;
line-height: 1.5;
font-weight: 400;
--paper: #f4f4f2;
--ink: #171717;
--muted: #666666;
--panel: rgba(250, 250, 248, 0.96);
--panel-strong: #ffffff;
--border: rgba(23, 23, 23, 0.14);
--accent: #2a2a2a;
--accent-strong: #111111;
--error: #8a1f1f;
background:
radial-gradient(circle at top, rgba(0, 0, 0, 0.04), transparent 42%),
linear-gradient(180deg, #fbfbfa 0%, #f0f0ed 100%);
color: var(--ink);
}
* {
box-sizing: border-box;
}
html,
body,
#app {
min-height: 100%;
}
body {
margin: 0;
}
button,
input {
font: inherit;
}
img {
display: block;
max-width: 100%;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.shell {
display: grid;
min-height: 100vh;
grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
gap: 18px;
padding: 18px;
align-items: start;
}
.compare-panel {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 28px;
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
}
.hero {
display: flex;
flex-direction: column;
gap: 14px;
padding: 10px 8px;
}
.hero h1 {
margin: 0;
font-size: clamp(2.05rem, 2.8vw, 3.2rem);
line-height: 0.96;
letter-spacing: -0.06em;
}
.lede {
margin: 0;
max-width: 30rem;
color: var(--muted);
}
.status-card {
display: grid;
gap: 10px 20px;
grid-template-columns: repeat(2, minmax(0, 1fr));
padding-block: 10px 12px;
border-block: 1px solid var(--border);
}
.status-card > div:last-child {
grid-column: 1 / -1;
}
.label {
margin: 0 0 4px;
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--muted);
}
.value,
.status-text {
margin: 0;
}
.model-picker {
display: grid;
gap: 8px;
padding-block: 4px 10px;
}
.model-title {
margin: 0;
font-size: 1.05rem;
font-weight: 700;
color: var(--ink);
}
.model-meta {
color: var(--muted);
font-size: 0.9rem;
}
.dropzone {
display: grid;
place-items: center;
gap: 8px;
min-height: 180px;
padding: 20px;
border: 1.5px dashed rgba(23, 23, 23, 0.22);
border-radius: 24px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 245, 243, 0.96));
text-align: center;
cursor: pointer;
transition:
transform 180ms ease,
border-color 180ms ease,
box-shadow 180ms ease;
}
.dropzone-active {
border-color: rgba(23, 23, 23, 0.38);
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
}
.dropzone-title {
margin: 0;
font-size: 1.15rem;
font-weight: 700;
}
.dropzone-copy {
margin: 0;
color: var(--muted);
}
.actions {
display: grid;
gap: 12px;
}
.button {
border: 1px solid transparent;
border-radius: 999px;
padding: 14px 20px;
font-weight: 700;
cursor: pointer;
transition:
transform 180ms ease,
opacity 180ms ease,
background 180ms ease;
}
.button:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.button:not(:disabled):hover {
transform: translateY(-1px);
}
.button-primary {
background: linear-gradient(180deg, #2a2a2a, #111111);
color: white;
border-color: rgba(0, 0, 0, 0.4);
}
.button-secondary {
background: rgba(255, 255, 255, 0.92);
border: 1px solid rgba(23, 23, 23, 0.18);
color: var(--ink);
}
.error-text {
margin: 0;
color: var(--error);
}
.workspace {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 18px;
align-self: start;
position: sticky;
top: 18px;
}
.stage {
display: grid;
flex: 1;
place-items: center;
position: relative;
overflow: hidden;
min-height: 360px;
border-radius: 20px;
background:
radial-gradient(circle at center, rgba(0, 0, 0, 0.035), transparent 56%),
rgba(255, 255, 255, 0.82);
}
.checkerboard {
background-color: #f7f7f7;
background-image:
linear-gradient(45deg, #e6e6e6 25%, transparent 25%),
linear-gradient(-45deg, #e6e6e6 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #e6e6e6 75%),
linear-gradient(-45deg, transparent 75%, #e6e6e6 75%);
background-position:
0 0,
0 10px,
10px -10px,
-10px 0;
background-size: 20px 20px;
}
.stage img {
width: 100%;
height: 100%;
object-fit: contain;
}
.compare-panel {
display: flex;
flex-direction: column;
height: calc(100vh - 36px);
gap: 12px;
padding: 12px;
}
.compare-stage {
cursor: col-resize;
flex: 1;
min-height: 0;
user-select: none;
}
.compare-image {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.compare-divider {
position: absolute;
inset-block: 0;
width: 2px;
background: linear-gradient(180deg, transparent, rgba(24, 34, 37, 0.8), transparent);
box-shadow:
0 0 0 1px rgba(255, 255, 255, 0.55),
0 0 18px rgba(24, 34, 37, 0.24);
}
.compare-handle {
position: absolute;
top: 50%;
left: 50%;
display: flex;
gap: 4px;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
border: 1px solid rgba(23, 23, 23, 0.14);
border-radius: 999px;
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
transform: translate(-50%, -50%);
}
.compare-handle span {
width: 2px;
height: 14px;
border-radius: 999px;
background: rgba(24, 34, 37, 0.72);
}
.stage-badge {
position: absolute;
top: 16px;
display: grid;
gap: 2px;
padding: 10px 12px;
border: 1px solid rgba(23, 23, 23, 0.12);
border-radius: 14px;
background: rgba(255, 255, 255, 0.9);
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
color: var(--muted);
font-size: 0.88rem;
}
.stage-badge-left {
left: 16px;
}
.stage-badge-right {
right: 16px;
text-align: right;
}
.stage-badge-title {
color: var(--ink);
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.empty {
margin: 0;
max-width: 16rem;
text-align: center;
color: var(--muted);
}
@media (max-width: 1180px) {
.shell {
grid-template-columns: 1fr;
}
.workspace {
grid-template-columns: 1fr;
position: static;
}
.compare-panel {
height: auto;
}
.stage {
min-height: 320px;
}
.compare-stage {
min-height: 380px;
}
}
|