dehezhang2 commited on
Commit
fedbe71
·
verified ·
1 Parent(s): 29fe43e

deploy rater (Docker/FastAPI): registration + completeness gate + /api/submit → dataset

Browse files
Files changed (1) hide show
  1. static/index.html +10 -6
static/index.html CHANGED
@@ -139,7 +139,9 @@
139
  font-weight: 600; }
140
  .case-header .case-counter { color: var(--muted); font-size: 12px; }
141
  .prompt-box { background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
142
- padding: 14px 16px; line-height: 1.7; font-size: 15px; flex: 1; min-width: 280px; }
 
 
143
  .prompt-box .label { font-size: 10px; text-transform: uppercase; color: var(--muted);
144
  letter-spacing: 0.5px; margin-bottom: 8px; }
145
  /* Highlight imperative verbs + control directives (Add / Use / Make ...) so
@@ -151,7 +153,9 @@
151
  /* ---------- two-pane case layout ---------- */
152
  .case-pane-wrap { flex: 1 1 auto; min-height: 0;
153
  display: grid; gap: 18px;
154
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* 50 / 50 */
 
 
155
  align-items: stretch; }
156
  @media (max-width: 900px) {
157
  .case-pane-wrap { grid-template-columns: 1fr; }
@@ -186,12 +190,12 @@
186
  border-color: var(--accent); font-weight: 700; }
187
  .video-tile { display: flex; flex-direction: column; gap: 6px; }
188
  .video-tile.hidden { display: none; }
189
- /* Cap the video size so the prompt-box (flex-growing below) gets the bulk
190
- of the left pane. Width is also capped at 540 px so it doesn't dominate
191
- the column on a 50/50 split with a wide window. */
192
  .video-frame { position: relative; background: #000; border: 1px solid var(--border);
193
  border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9;
194
- max-height: 30vh; max-width: 540px; align-self: start; }
195
  .video-frame video { width: 100%; height: 100%; display: block; background: #000; }
196
  .video-frame .empty-state { position: absolute; inset: 0; display: flex;
197
  flex-direction: column; align-items: center; justify-content: center;
 
139
  font-weight: 600; }
140
  .case-header .case-counter { color: var(--muted); font-size: 12px; }
141
  .prompt-box { background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
142
+ padding: 14px 16px; line-height: 1.7; font-size: 15px; flex: 1;
143
+ min-width: 280px; max-width: 560px; align-self: start;
144
+ width: 100%; box-sizing: border-box; }
145
  .prompt-box .label { font-size: 10px; text-transform: uppercase; color: var(--muted);
146
  letter-spacing: 0.5px; margin-bottom: 8px; }
147
  /* Highlight imperative verbs + control directives (Add / Use / Make ...) so
 
153
  /* ---------- two-pane case layout ---------- */
154
  .case-pane-wrap { flex: 1 1 auto; min-height: 0;
155
  display: grid; gap: 18px;
156
+ /* Slightly favour the left pane (video + prompt) over the right
157
+ (rating cards). Roughly 56% / 44%. */
158
+ grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
159
  align-items: stretch; }
160
  @media (max-width: 900px) {
161
  .case-pane-wrap { grid-template-columns: 1fr; }
 
190
  border-color: var(--accent); font-weight: 700; }
191
  .video-tile { display: flex; flex-direction: column; gap: 6px; }
192
  .video-tile.hidden { display: none; }
193
+ /* Video gets a generous width budget (up to 680 px), the prompt-box below
194
+ it is constrained narrower so the column doesn't look like a single
195
+ wide block of text. */
196
  .video-frame { position: relative; background: #000; border: 1px solid var(--border);
197
  border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9;
198
+ max-height: 34vh; max-width: 680px; align-self: start; }
199
  .video-frame video { width: 100%; height: 100%; display: block; background: #000; }
200
  .video-frame .empty-state { position: absolute; inset: 0; display: flex;
201
  flex-direction: column; align-items: center; justify-content: center;