GTsingh12 commited on
Commit
8048ad4
·
verified ·
1 Parent(s): f39ec9a

Refine aircraft scene geometry and animation

Browse files
Files changed (1) hide show
  1. server/ui_console.html +108 -64
server/ui_console.html CHANGED
@@ -192,6 +192,11 @@
192
  overflow: hidden;
193
  }
194
 
 
 
 
 
 
195
  .scene-stage::before {
196
  content: "";
197
  position: absolute;
@@ -234,10 +239,11 @@
234
 
235
  .holding-ring {
236
  position: absolute;
237
- left: 9.5%;
238
- top: 25%;
239
- width: 80px;
240
- height: 80px;
 
241
  border-radius: 50%;
242
  border: 1px dashed rgba(197, 166, 106, 0.28);
243
  opacity: 0;
@@ -258,19 +264,28 @@
258
  stroke-dasharray: 6 7;
259
  }
260
 
261
- .plane {
262
  position: absolute;
263
- width: 86px;
264
- left: 26px;
265
- top: 132px;
266
- transform-origin: center center;
 
267
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
 
 
 
 
 
 
268
  }
269
 
270
  .plane svg { width: 100%; height: auto; display: block; }
271
  .plane-body { fill: #f3f5f7; }
272
  .plane-wing { fill: #bfc8d0; }
273
  .plane-accent { fill: var(--gold); }
 
 
274
 
275
  .smoke,
276
  .impact {
@@ -280,40 +295,44 @@
280
  }
281
 
282
  .smoke {
283
- right: 18%;
284
- bottom: 56px;
285
- width: 100px;
286
- height: 100px;
 
287
  border-radius: 50%;
288
  background: radial-gradient(circle, rgba(255,255,255,0.36) 0%, rgba(203, 111, 102, 0.2) 38%, rgba(255,255,255,0.0) 72%);
289
  }
290
 
291
  .impact {
292
- right: 18%;
293
- bottom: 62px;
294
- width: 24px;
295
- height: 24px;
 
296
  border-radius: 50%;
297
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(216, 162, 97, 0.92) 42%, rgba(203, 111, 102, 0.0) 72%);
298
  }
299
 
300
- .scene-card[data-scene="ready"] .plane {
301
- transform: translate(0, 0) rotate(-8deg);
 
 
302
  }
303
 
304
- .scene-card[data-scene="inference"] .plane {
305
  animation: inference-flight 5s linear infinite;
306
  }
307
 
308
- .scene-card[data-scene="landing"] .plane {
309
  animation: landing-flight 3.6s ease-in-out forwards;
310
  }
311
 
312
- .scene-card[data-scene="approach"] .plane {
313
  animation: approach-flight 4.6s ease-in-out infinite;
314
  }
315
 
316
- .scene-card[data-scene="holding"] .plane {
317
  animation: holding-flight 5.4s linear infinite;
318
  }
319
 
@@ -321,7 +340,7 @@
321
  opacity: 1;
322
  }
323
 
324
- .scene-card[data-scene="warning"] .plane {
325
  animation: warning-flight 2.2s ease-in-out infinite;
326
  }
327
 
@@ -331,7 +350,7 @@
331
  animation: blink 0.75s steps(2, end) infinite;
332
  }
333
 
334
- .scene-card[data-scene="crash"] .plane {
335
  animation: crash-flight 2.8s ease-in forwards;
336
  }
337
 
@@ -593,53 +612,53 @@
593
  }
594
 
595
  @keyframes inference-flight {
596
- 0% { transform: translate(0, 0) rotate(-8deg); }
597
- 35% { transform: translate(210px, -38px) rotate(-6deg); }
598
- 70% { transform: translate(430px, -8px) rotate(2deg); }
599
- 100% { transform: translate(610px, -22px) rotate(-4deg); }
600
  }
601
 
602
  @keyframes landing-flight {
603
- 0% { transform: translate(0, 0) rotate(-10deg); }
604
- 55% { transform: translate(410px, -58px) rotate(-6deg); }
605
- 100% { transform: translate(650px, 86px) rotate(6deg); }
606
  }
607
 
608
  @keyframes approach-flight {
609
- 0% { transform: translate(26px, 0) rotate(-10deg); }
610
- 50% { transform: translate(380px, -44px) rotate(-2deg); }
611
- 100% { transform: translate(650px, 50px) rotate(5deg); }
612
  }
613
 
614
  @keyframes holding-flight {
615
- 0% { transform: translate(34px, 0) rotate(0deg); }
616
- 25% { transform: translate(88px, -54px) rotate(52deg); }
617
- 50% { transform: translate(154px, 0) rotate(145deg); }
618
- 75% { transform: translate(88px, 54px) rotate(230deg); }
619
- 100% { transform: translate(34px, 0) rotate(320deg); }
620
  }
621
 
622
  @keyframes warning-flight {
623
- 0%, 100% { transform: translate(140px, -22px) rotate(-4deg); }
624
- 25% { transform: translate(280px, -40px) rotate(-1deg); }
625
- 50% { transform: translate(410px, 2px) rotate(6deg); }
626
- 75% { transform: translate(540px, -28px) rotate(-8deg); }
627
  }
628
 
629
  @keyframes crash-flight {
630
- 0% { transform: translate(120px, -20px) rotate(-3deg); }
631
- 40% { transform: translate(400px, 12px) rotate(12deg); }
632
- 100% { transform: translate(610px, 126px) rotate(58deg); }
633
  }
634
 
635
  @keyframes smoke-rise {
636
- 0% { transform: translateY(0) scale(0.9); }
637
- 100% { transform: translateY(-26px) scale(1.18); }
638
  }
639
 
640
  @keyframes flash {
641
- 0%, 100% { transform: scale(0.7); opacity: 0.4; }
642
- 50% { transform: scale(1.4); opacity: 1; }
643
  }
644
 
645
  @keyframes blink {
@@ -686,21 +705,28 @@
686
  <div class="scene-badge" id="scene-badge">Standby</div>
687
  </div>
688
  <div class="scene-stage">
689
- <svg class="flight-path" viewBox="0 0 760 250" preserveAspectRatio="none" aria-hidden="true">
690
- <path d="M40 178 C170 96, 280 84, 420 120 S660 172, 720 128"></path>
691
- </svg>
692
- <div class="holding-ring"></div>
693
- <div class="beacon"></div>
694
- <div class="plane" aria-hidden="true">
695
- <svg viewBox="0 0 120 64">
696
- <path class="plane-body" d="M5 33 L46 26 L67 7 L77 10 L68 28 L107 25 L115 32 L107 39 L68 36 L77 54 L67 57 L46 38 L5 31 Z"></path>
697
- <path class="plane-wing" d="M41 27 L63 10 L70 12 L57 29 Z"></path>
698
- <path class="plane-wing" d="M41 37 L63 54 L70 52 L57 35 Z"></path>
699
- <rect class="plane-accent" x="10" y="29" width="17" height="6" rx="2"></rect>
700
  </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
701
  </div>
702
- <div class="smoke"></div>
703
- <div class="impact"></div>
704
  <div class="runway"></div>
705
  </div>
706
  </div>
@@ -826,6 +852,15 @@ Select a model, run inference, and review the resulting flight case here.</pre>
826
  "Checking emergency priority overrides.",
827
  "Scoring fairness and schedule completeness."
828
  ];
 
 
 
 
 
 
 
 
 
829
 
830
  function tickClock() {
831
  const now = new Date();
@@ -988,6 +1023,15 @@ Select a model, run inference, and review the resulting flight case here.</pre>
988
  tickClock();
989
  window.setInterval(tickClock, 1000);
990
  resetTable();
 
 
 
 
 
 
 
 
 
991
  </script>
992
  </body>
993
  </html>
 
192
  overflow: hidden;
193
  }
194
 
195
+ .scene-stage-inner {
196
+ position: absolute;
197
+ inset: 0;
198
+ }
199
+
200
  .scene-stage::before {
201
  content: "";
202
  position: absolute;
 
239
 
240
  .holding-ring {
241
  position: absolute;
242
+ left: 18%;
243
+ top: 40%;
244
+ width: 18%;
245
+ aspect-ratio: 1;
246
+ transform: translate(-50%, -50%);
247
  border-radius: 50%;
248
  border: 1px dashed rgba(197, 166, 106, 0.28);
249
  opacity: 0;
 
264
  stroke-dasharray: 6 7;
265
  }
266
 
267
+ .flight-unit {
268
  position: absolute;
269
+ left: 12%;
270
+ top: 62%;
271
+ width: clamp(88px, 13%, 120px);
272
+ transform: translate(-50%, -50%) rotate(-6deg);
273
+ transform-origin: 50% 50%;
274
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
275
+ z-index: 2;
276
+ }
277
+
278
+ .plane {
279
+ position: relative;
280
+ width: 100%;
281
  }
282
 
283
  .plane svg { width: 100%; height: auto; display: block; }
284
  .plane-body { fill: #f3f5f7; }
285
  .plane-wing { fill: #bfc8d0; }
286
  .plane-accent { fill: var(--gold); }
287
+ .plane-tail { fill: #8aa2b7; }
288
+ .plane-window { fill: #31404d; }
289
 
290
  .smoke,
291
  .impact {
 
295
  }
296
 
297
  .smoke {
298
+ left: 16%;
299
+ top: 52%;
300
+ width: 66%;
301
+ aspect-ratio: 1;
302
+ transform: translate(-72%, -50%) scale(0.86);
303
  border-radius: 50%;
304
  background: radial-gradient(circle, rgba(255,255,255,0.36) 0%, rgba(203, 111, 102, 0.2) 38%, rgba(255,255,255,0.0) 72%);
305
  }
306
 
307
  .impact {
308
+ left: 88%;
309
+ top: 50%;
310
+ width: 28%;
311
+ aspect-ratio: 1;
312
+ transform: translate(-50%, -50%) scale(0.8);
313
  border-radius: 50%;
314
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(216, 162, 97, 0.92) 42%, rgba(203, 111, 102, 0.0) 72%);
315
  }
316
 
317
+ .scene-card[data-scene="ready"] .flight-unit {
318
+ left: 12%;
319
+ top: 62%;
320
+ transform: translate(-50%, -50%) rotate(-4deg);
321
  }
322
 
323
+ .scene-card[data-scene="inference"] .flight-unit {
324
  animation: inference-flight 5s linear infinite;
325
  }
326
 
327
+ .scene-card[data-scene="landing"] .flight-unit {
328
  animation: landing-flight 3.6s ease-in-out forwards;
329
  }
330
 
331
+ .scene-card[data-scene="approach"] .flight-unit {
332
  animation: approach-flight 4.6s ease-in-out infinite;
333
  }
334
 
335
+ .scene-card[data-scene="holding"] .flight-unit {
336
  animation: holding-flight 5.4s linear infinite;
337
  }
338
 
 
340
  opacity: 1;
341
  }
342
 
343
+ .scene-card[data-scene="warning"] .flight-unit {
344
  animation: warning-flight 2.2s ease-in-out infinite;
345
  }
346
 
 
350
  animation: blink 0.75s steps(2, end) infinite;
351
  }
352
 
353
+ .scene-card[data-scene="crash"] .flight-unit {
354
  animation: crash-flight 2.8s ease-in forwards;
355
  }
356
 
 
612
  }
613
 
614
  @keyframes inference-flight {
615
+ 0% { left: 12%; top: 62%; transform: translate(-50%, -50%) rotate(-5deg); }
616
+ 35% { left: 36%; top: 40%; transform: translate(-50%, -50%) rotate(-9deg); }
617
+ 70% { left: 64%; top: 48%; transform: translate(-50%, -50%) rotate(2deg); }
618
+ 100% { left: 88%; top: 36%; transform: translate(-50%, -50%) rotate(-7deg); }
619
  }
620
 
621
  @keyframes landing-flight {
622
+ 0% { left: 12%; top: 56%; transform: translate(-50%, -50%) rotate(-9deg); }
623
+ 55% { left: 56%; top: 34%; transform: translate(-50%, -50%) rotate(-5deg); }
624
+ 100% { left: 86%; top: 73%; transform: translate(-50%, -50%) rotate(8deg); }
625
  }
626
 
627
  @keyframes approach-flight {
628
+ 0% { left: 14%; top: 56%; transform: translate(-50%, -50%) rotate(-8deg); }
629
+ 50% { left: 54%; top: 41%; transform: translate(-50%, -50%) rotate(-2deg); }
630
+ 100% { left: 86%; top: 63%; transform: translate(-50%, -50%) rotate(5deg); }
631
  }
632
 
633
  @keyframes holding-flight {
634
+ 0% { left: 18%; top: 40%; transform: translate(-50%, -50%) rotate(0deg); }
635
+ 25% { left: 28%; top: 27%; transform: translate(-50%, -50%) rotate(56deg); }
636
+ 50% { left: 39%; top: 40%; transform: translate(-50%, -50%) rotate(148deg); }
637
+ 75% { left: 28%; top: 53%; transform: translate(-50%, -50%) rotate(238deg); }
638
+ 100% { left: 18%; top: 40%; transform: translate(-50%, -50%) rotate(320deg); }
639
  }
640
 
641
  @keyframes warning-flight {
642
+ 0%, 100% { left: 24%; top: 48%; transform: translate(-50%, -50%) rotate(-4deg); }
643
+ 25% { left: 42%; top: 36%; transform: translate(-50%, -50%) rotate(2deg); }
644
+ 50% { left: 60%; top: 54%; transform: translate(-50%, -50%) rotate(9deg); }
645
+ 75% { left: 78%; top: 40%; transform: translate(-50%, -50%) rotate(-10deg); }
646
  }
647
 
648
  @keyframes crash-flight {
649
+ 0% { left: 22%; top: 46%; transform: translate(-50%, -50%) rotate(-2deg); }
650
+ 40% { left: 58%; top: 50%; transform: translate(-50%, -50%) rotate(12deg); }
651
+ 100% { left: 82%; top: 74%; transform: translate(-50%, -50%) rotate(52deg); }
652
  }
653
 
654
  @keyframes smoke-rise {
655
+ 0% { transform: translate(-72%, -50%) scale(0.82); opacity: 0.55; }
656
+ 100% { transform: translate(-88%, -86%) scale(1.16); opacity: 0.05; }
657
  }
658
 
659
  @keyframes flash {
660
+ 0%, 100% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.4; }
661
+ 50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
662
  }
663
 
664
  @keyframes blink {
 
705
  <div class="scene-badge" id="scene-badge">Standby</div>
706
  </div>
707
  <div class="scene-stage">
708
+ <div class="scene-stage-inner">
709
+ <svg class="flight-path" viewBox="0 0 760 250" preserveAspectRatio="none" aria-hidden="true">
710
+ <path d="M40 178 C170 96, 280 84, 420 120 S660 172, 720 128"></path>
 
 
 
 
 
 
 
 
711
  </svg>
712
+ <div class="holding-ring"></div>
713
+ <div class="beacon"></div>
714
+ <div class="flight-unit" aria-hidden="true">
715
+ <div class="smoke"></div>
716
+ <div class="impact"></div>
717
+ <div class="plane">
718
+ <svg viewBox="0 0 160 80">
719
+ <path class="plane-body" d="M10 42 L60 35 L91 11 L103 15 L90 38 L145 34 L154 40 L145 46 L90 42 L103 65 L91 69 L60 45 L10 38 Z"></path>
720
+ <path class="plane-wing" d="M58 35 L95 12 L101 16 L73 39 Z"></path>
721
+ <path class="plane-wing" d="M58 45 L95 68 L101 64 L73 41 Z"></path>
722
+ <path class="plane-tail" d="M32 37 L15 24 L23 24 L42 36 Z"></path>
723
+ <path class="plane-tail" d="M32 43 L15 56 L23 56 L42 44 Z"></path>
724
+ <rect class="plane-accent" x="18" y="36" width="16" height="8" rx="3"></rect>
725
+ <circle class="plane-window" cx="129" cy="40" r="3"></circle>
726
+ </svg>
727
+ </div>
728
+ </div>
729
  </div>
 
 
730
  <div class="runway"></div>
731
  </div>
732
  </div>
 
852
  "Checking emergency priority overrides.",
853
  "Scoring fairness and schedule completeness."
854
  ];
855
+ const scenePreviewMap = {
856
+ ready: ["Ready for departure", "Start a run and the aircraft will move into an inference scene, then settle into a matching outcome case.", "Standby"],
857
+ inference: ["Aircraft in flight", "The aircraft is actively moving while the model evaluates constraints and priorities.", "Inference"],
858
+ landing: ["Smooth landing", "The run scored strongly enough to end in a clean, controlled touchdown.", "Landing"],
859
+ approach: ["Controlled approach", "The model is lined up well, but it still shows a little operational roughness.", "Approach"],
860
+ holding: ["Holding pattern", "The aircraft remains safe, but the run is indecisive enough to keep it circling.", "Holding"],
861
+ warning: ["Turbulence warning", "The model output is unstable enough to show a visibly unsettled approach.", "Warning"],
862
+ crash: ["Loss of control", "The run quality fell apart badly enough to trigger the crash case.", "Crash"]
863
+ };
864
 
865
  function tickClock() {
866
  const now = new Date();
 
1023
  tickClock();
1024
  window.setInterval(tickClock, 1000);
1025
  resetTable();
1026
+
1027
+ const previewScene = new URLSearchParams(window.location.search).get("scene");
1028
+ if (previewScene && scenePreviewMap[previewScene]) {
1029
+ const [title, caption, badge] = scenePreviewMap[previewScene];
1030
+ setScene(previewScene, title, caption, badge);
1031
+ runMessage.textContent = `Preview mode: ${caption}`;
1032
+ runState.textContent = "Preview";
1033
+ logMeta.textContent = `Preview | ${previewScene}`;
1034
+ }
1035
  </script>
1036
  </body>
1037
  </html>