GuglielmoTor commited on
Commit
098b843
Β·
verified Β·
1 Parent(s): edbc1a6

Update ui/ui_generators.py

Browse files
Files changed (1) hide show
  1. ui/ui_generators.py +46 -2
ui/ui_generators.py CHANGED
@@ -344,6 +344,50 @@ def build_home_tab_ui():
344
  .button-container {
345
  margin-top: 24px;
346
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
347
 
348
  @media (max-width: 768px) {
349
  .hero-title {
@@ -530,11 +574,11 @@ def build_home_tab_ui():
530
  with gr.Row(equal_height=True):
531
  with gr.Column():
532
  btn_okr = gr.Button("🎯 Accedi agli OKR", variant="primary", size="lg",
533
- elem_classes="nav-button", scale=1)
534
 
535
  with gr.Column():
536
  btn_help = gr.Button("πŸ“š Documentazione", variant="secondary", size="lg",
537
- elem_classes="nav-button", scale=1)
538
 
539
  # Sezione "Come funziona" con stile migliorato
540
  gr.HTML("""
 
344
  .button-container {
345
  margin-top: 24px;
346
  }
347
+
348
+ /* Dark Mode Styles */
349
+ @media (prefers-color-scheme: dark) {
350
+ .overview-section {
351
+ background: #2d3748; /* Dark background */
352
+ border-color: #4a5568;
353
+ box-shadow: 0 10px 40px rgba(0,0,0,0.4);
354
+ }
355
+
356
+ .overview-header {
357
+ color: #f7fafc; /* Lighter text for dark background */
358
+ }
359
+
360
+ .overview-text {
361
+ color: #a0aec0; /* Lighter grey for paragraph text */
362
+ }
363
+
364
+ .feature-item {
365
+ background: linear-gradient(135deg, #2d3748, #1a202c);
366
+ border-color: #4a5568;
367
+ }
368
+
369
+ .feature-item:hover {
370
+ box-shadow: 0 8px 25px rgba(0,0,0,0.5);
371
+ }
372
+
373
+ .feature-text {
374
+ color: #e2e8f0;
375
+ }
376
+
377
+ .how-it-works-section {
378
+ background: linear-gradient(135deg, #1a202c, #2d3748);
379
+ border-color: #4a5568;
380
+ }
381
+
382
+ .how-it-works-header,
383
+ .step-title {
384
+ color: #f7fafc;
385
+ }
386
+
387
+ .step-description {
388
+ color: #a0aec0;
389
+ }
390
+ }
391
 
392
  @media (max-width: 768px) {
393
  .hero-title {
 
574
  with gr.Row(equal_height=True):
575
  with gr.Column():
576
  btn_okr = gr.Button("🎯 Accedi agli OKR", variant="primary", size="lg",
577
+ elem_classes="nav-button", scale=1)
578
 
579
  with gr.Column():
580
  btn_help = gr.Button("πŸ“š Documentazione", variant="secondary", size="lg",
581
+ elem_classes="nav-button", scale=1)
582
 
583
  # Sezione "Come funziona" con stile migliorato
584
  gr.HTML("""