ysharma HF Staff commited on
Commit
bfbc253
·
verified ·
1 Parent(s): 82dfac6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -2
app.py CHANGED
@@ -477,7 +477,7 @@ if check_dataset_health():
477
  else:
478
  logger.warning("⚠️ System starting with dataset health warnings")
479
 
480
- # Custom CSS for theme colors
481
  custom_css = """
482
  .gradio-container {
483
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
@@ -488,6 +488,37 @@ custom_css = """
488
  -webkit-text-fill-color: transparent;
489
  background-clip: text;
490
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
491
  """
492
 
493
  # Create the Gradio interface
@@ -618,7 +649,7 @@ with gr.Blocks(title="Gradio Agents & MCP Hackathon - Winter 2025", css=custom_c
618
  )
619
 
620
  # Submit button
621
- submit_btn = gr.Button("🚀 Register for Hackathon", variant="primary", size="lg")
622
 
623
  # Output
624
  output = gr.Markdown()
 
477
  else:
478
  logger.warning("⚠️ System starting with dataset health warnings")
479
 
480
+ # Custom CSS for gradient theme
481
  custom_css = """
482
  .gradio-container {
483
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
 
488
  -webkit-text-fill-color: transparent;
489
  background-clip: text;
490
  }
491
+
492
+ /* Gradient Submit Button Styling */
493
+ #gradient-submit-btn {
494
+ background: linear-gradient(135deg, #0a0a0a 0%, #FF7A00 35%, #4A90E2 70%, #ffffff 100%) !important;
495
+ border: none !important;
496
+ color: white !important;
497
+ font-weight: 600 !important;
498
+ font-size: 18px !important;
499
+ padding: 16px 32px !important;
500
+ border-radius: 12px !important;
501
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
502
+ transition: all 0.3s ease !important;
503
+ text-transform: none !important;
504
+ }
505
+
506
+ #gradient-submit-btn:hover {
507
+ transform: translateY(-2px) !important;
508
+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
509
+ }
510
+
511
+ #gradient-submit-btn:active {
512
+ transform: translateY(0px) !important;
513
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
514
+ }
515
+
516
+ /* Disabled state for the button */
517
+ #gradient-submit-btn:disabled {
518
+ opacity: 0.6 !important;
519
+ cursor: not-allowed !important;
520
+ transform: none !important;
521
+ }
522
  """
523
 
524
  # Create the Gradio interface
 
649
  )
650
 
651
  # Submit button
652
+ submit_btn = gr.Button("🚀 Register for Hackathon", variant="primary", size="lg", elem_id="gradient-submit-btn")
653
 
654
  # Output
655
  output = gr.Markdown()