Update index.html
Browse files- index.html +27 -10
index.html
CHANGED
|
@@ -50,7 +50,7 @@
|
|
| 50 |
font-size: 1.02rem;
|
| 51 |
}
|
| 52 |
main { padding-bottom: 16px; }
|
| 53 |
-
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items:
|
| 54 |
.panel {
|
| 55 |
min-width: 0;
|
| 56 |
padding: 16px 19px;
|
|
@@ -118,7 +118,17 @@
|
|
| 118 |
color: var(--muted);
|
| 119 |
padding: 28px;
|
| 120 |
}
|
| 121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
.score-label { margin: 0 0 3px; font-size: .9rem; color: var(--muted); font-weight: 650; }
|
| 123 |
.score {
|
| 124 |
color: var(--navy);
|
|
@@ -128,7 +138,7 @@
|
|
| 128 |
line-height: 1.17;
|
| 129 |
letter-spacing: -.04em;
|
| 130 |
}
|
| 131 |
-
.continuum { margin-top:
|
| 132 |
.continuum-label { font-size: .85rem; font-weight: 650; color: var(--navy-dark); margin-bottom: 11px; }
|
| 133 |
.scale {
|
| 134 |
position: relative;
|
|
@@ -173,7 +183,7 @@
|
|
| 173 |
.scale-ticks small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
|
| 174 |
.scale-caption { margin: 7px 0 0; color: #67768A; font-size: .72rem; line-height: 1.4; }
|
| 175 |
.outside { display: none; color: #805D25; font-weight: 650; margin-top: 9px; font-size: .78rem; }
|
| 176 |
-
.divider { border: 0; border-top: 1px solid var(--line); margin:
|
| 177 |
.secondary-label { font-size: .86rem; color: var(--muted); font-weight: 650; }
|
| 178 |
.secondary-value { color: var(--navy-dark); font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 5px; }
|
| 179 |
.interpretation { margin: 8px 0 0; font-size: .85rem; line-height: 1.43; color: #526174; }
|
|
@@ -191,7 +201,9 @@
|
|
| 191 |
@media (max-width: 790px) {
|
| 192 |
.container { width: min(100% - 30px, 1200px); }
|
| 193 |
header { padding: 30px 0 23px; }
|
| 194 |
-
.workspace { grid-template-columns: 1fr; gap: 15px; }
|
|
|
|
|
|
|
| 195 |
.panel { padding: 22px; }
|
| 196 |
.dropzone { min-height: 258px; }
|
| 197 |
.empty-result { min-height: 185px; }
|
|
@@ -249,8 +261,11 @@
|
|
| 249 |
<h2 id="results-heading">Style Analysis</h2>
|
| 250 |
<div id="empty-result" class="empty-result"></div>
|
| 251 |
<div id="results" class="results" aria-live="polite">
|
| 252 |
-
<
|
| 253 |
-
|
|
|
|
|
|
|
|
|
|
| 254 |
<div class="continuum">
|
| 255 |
<div class="continuum-label">Minimalism–Maximalism Continuum</div>
|
| 256 |
<div class="scale" role="img" aria-label="Stylistic continuum, minimalism on the left, moderate in the center, maximalism on the right">
|
|
@@ -261,8 +276,10 @@
|
|
| 261 |
<p id="outside" class="outside">The prediction is beyond the visual window; its marker is shown at the boundary. The numerical score is unchanged.</p>
|
| 262 |
</div>
|
| 263 |
<hr class="divider" />
|
| 264 |
-
<div class="secondary-
|
| 265 |
-
|
|
|
|
|
|
|
| 266 |
</div>
|
| 267 |
</section>
|
| 268 |
</div>
|
|
@@ -388,7 +405,7 @@
|
|
| 388 |
marker.style.left = `${pct}%`;
|
| 389 |
outside.style.display = Math.abs(centered) > DISPLAY_HALF_RANGE ? "block" : "none";
|
| 390 |
empty.style.display = "none";
|
| 391 |
-
results.style.display = "
|
| 392 |
status.textContent = "Analysis complete.";
|
| 393 |
} catch (error) {
|
| 394 |
clientPromise = null; // allow a fresh connection on retry
|
|
|
|
| 50 |
font-size: 1.02rem;
|
| 51 |
}
|
| 52 |
main { padding-bottom: 16px; }
|
| 53 |
+
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
|
| 54 |
.panel {
|
| 55 |
min-width: 0;
|
| 56 |
padding: 16px 19px;
|
|
|
|
| 118 |
color: var(--muted);
|
| 119 |
padding: 28px;
|
| 120 |
}
|
| 121 |
+
/* Match the upload card's height; distribute result blocks vertically. */
|
| 122 |
+
.workspace > .panel:last-child { display: flex; flex-direction: column; }
|
| 123 |
+
.empty-result { flex: 1; }
|
| 124 |
+
.results {
|
| 125 |
+
display: none;
|
| 126 |
+
flex: 1;
|
| 127 |
+
flex-direction: column;
|
| 128 |
+
justify-content: space-between;
|
| 129 |
+
gap: 12px;
|
| 130 |
+
padding: 2px 0 7px;
|
| 131 |
+
}
|
| 132 |
.score-label { margin: 0 0 3px; font-size: .9rem; color: var(--muted); font-weight: 650; }
|
| 133 |
.score {
|
| 134 |
color: var(--navy);
|
|
|
|
| 138 |
line-height: 1.17;
|
| 139 |
letter-spacing: -.04em;
|
| 140 |
}
|
| 141 |
+
.continuum { margin-top: 0; }
|
| 142 |
.continuum-label { font-size: .85rem; font-weight: 650; color: var(--navy-dark); margin-bottom: 11px; }
|
| 143 |
.scale {
|
| 144 |
position: relative;
|
|
|
|
| 183 |
.scale-ticks small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
|
| 184 |
.scale-caption { margin: 7px 0 0; color: #67768A; font-size: .72rem; line-height: 1.4; }
|
| 185 |
.outside { display: none; color: #805D25; font-weight: 650; margin-top: 9px; font-size: .78rem; }
|
| 186 |
+
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
|
| 187 |
.secondary-label { font-size: .86rem; color: var(--muted); font-weight: 650; }
|
| 188 |
.secondary-value { color: var(--navy-dark); font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 5px; }
|
| 189 |
.interpretation { margin: 8px 0 0; font-size: .85rem; line-height: 1.43; color: #526174; }
|
|
|
|
| 201 |
@media (max-width: 790px) {
|
| 202 |
.container { width: min(100% - 30px, 1200px); }
|
| 203 |
header { padding: 30px 0 23px; }
|
| 204 |
+
.workspace { grid-template-columns: 1fr; gap: 15px; align-items: start; }
|
| 205 |
+
.results { gap: 16px; padding-bottom: 0; }
|
| 206 |
+
.workspace > .panel:last-child { min-height: 0; }
|
| 207 |
.panel { padding: 22px; }
|
| 208 |
.dropzone { min-height: 258px; }
|
| 209 |
.empty-result { min-height: 185px; }
|
|
|
|
| 261 |
<h2 id="results-heading">Style Analysis</h2>
|
| 262 |
<div id="empty-result" class="empty-result"></div>
|
| 263 |
<div id="results" class="results" aria-live="polite">
|
| 264 |
+
<div class="primary-result">
|
| 265 |
+
<p class="score-label">Predicted Style Score</p>
|
| 266 |
+
<div id="style-score" class="score">—</div>
|
| 267 |
+
</div>
|
| 268 |
+
<hr class="divider" />
|
| 269 |
<div class="continuum">
|
| 270 |
<div class="continuum-label">Minimalism–Maximalism Continuum</div>
|
| 271 |
<div class="scale" role="img" aria-label="Stylistic continuum, minimalism on the left, moderate in the center, maximalism on the right">
|
|
|
|
| 276 |
<p id="outside" class="outside">The prediction is beyond the visual window; its marker is shown at the boundary. The numerical score is unchanged.</p>
|
| 277 |
</div>
|
| 278 |
<hr class="divider" />
|
| 279 |
+
<div class="secondary-result">
|
| 280 |
+
<div class="secondary-label">Estimated Expert Rating (1–7)</div>
|
| 281 |
+
<div id="expert-rating" class="secondary-value">—</div>
|
| 282 |
+
</div>
|
| 283 |
</div>
|
| 284 |
</section>
|
| 285 |
</div>
|
|
|
|
| 405 |
marker.style.left = `${pct}%`;
|
| 406 |
outside.style.display = Math.abs(centered) > DISPLAY_HALF_RANGE ? "block" : "none";
|
| 407 |
empty.style.display = "none";
|
| 408 |
+
results.style.display = "flex";
|
| 409 |
status.textContent = "Analysis complete.";
|
| 410 |
} catch (error) {
|
| 411 |
clientPromise = null; // allow a fresh connection on retry
|