rivapereira123 commited on
Commit
9b3e5f9
·
verified ·
1 Parent(s): edb08e3

Update ui/components.py

Browse files
Files changed (1) hide show
  1. ui/components.py +86 -0
ui/components.py CHANGED
@@ -382,6 +382,87 @@ def get_custom_css():
382
  .quiz-result-output {
383
  margin-top: 2em;
384
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
385
 
386
 
387
  """
@@ -574,3 +655,8 @@ def gradio_show_response(response: str, metadata: dict, safety: dict):
574
 
575
  return response_text, metadata_display, safety_display
576
 
 
 
 
 
 
 
382
  .quiz-result-output {
383
  margin-top: 2em;
384
  }
385
+
386
+ /* Dark Mode Adjustments */
387
+ @media (prefers-color-scheme: dark) {
388
+ .main-container {
389
+ background: rgba(40, 40, 40, 0.95);
390
+ color: #e0e0e0;
391
+ border: 1px solid rgba(70, 70, 70, 0.2);
392
+ }
393
+ .header-section {
394
+ background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
395
+ box-shadow: 0 10px 30px rgba(0,0,0,0.3);
396
+ }
397
+ .query-container {
398
+ background: linear-gradient(135deg, #303030 0%, #252525 100%);
399
+ border: 2px solid #555;
400
+ }
401
+ .response-container {
402
+ background: linear-gradient(135deg, #252525 0%, #303030 100%);
403
+ border: 2px solid #666;
404
+ }
405
+ .stats-container {
406
+ background: linear-gradient(135deg, #353535 0%, #404040 100%);
407
+ border-left: 5px solid #666;
408
+ }
409
+ .example-scenario-btn {
410
+ background-color: #333;
411
+ border: 1px solid #555;
412
+ color: #e0e0e0;
413
+ }
414
+ .quiz-container {
415
+ background: linear-gradient(135deg, #303030 0%, #252525 100%);
416
+ border: 2px solid #666;
417
+ }
418
+ .quiz-question {
419
+ background: linear-gradient(135deg, #2a2a2a 0%, #353535 100%);
420
+ border-left: 5px solid #666;
421
+ color: #e0e0e0;
422
+ }
423
+ .quiz-option {
424
+ background: linear-gradient(135deg, #2a2a2a 0%, #353535 100%);
425
+ border: 2px solid #444;
426
+ color: #e0e0e0;
427
+ }
428
+ .quiz-option:hover {
429
+ border-color: #888;
430
+ }
431
+ .quiz-option.selected {
432
+ background: linear-gradient(135deg, #555 0%, #666 100%);
433
+ border-color: #777;
434
+ }
435
+ .quiz-results {
436
+ background: linear-gradient(135deg, #303030 0%, #252525 100%);
437
+ border-left: 5px solid #888;
438
+ }
439
+ .quiz-result-item {
440
+ background: #333;
441
+ border-left: 4px solid #666;
442
+ color: #e0e0e0;
443
+ }
444
+ .quiz-result-correct {
445
+ border-left-color: #4CAF50 !important;
446
+ background: linear-gradient(135deg, #2d4d2d 0%, #3a3a3a 100%) !important;
447
+ }
448
+ .quiz-result-incorrect {
449
+ border-left-color: #e74c3c !important;
450
+ background: linear-gradient(135deg, #4d2d2d 0%, #3a3a3a 100%) !important;
451
+ }
452
+ .quiz-feedback {
453
+ background: linear-gradient(135deg, #3a3a3a 0%, #404040 100%);
454
+ border-left: 3px solid #4CAF50;
455
+ color: #a0a0a0;
456
+ }
457
+ .quiz-header {
458
+ background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
459
+ }
460
+ .quiz-progress {
461
+ background: #3a3a3a;
462
+ border: 2px solid #555;
463
+ color: #a0a0a0;
464
+ }
465
+ }
466
 
467
 
468
  """
 
655
 
656
  return response_text, metadata_display, safety_display
657
 
658
+
659
+
660
+
661
+
662
+