Spaces:
Paused
Paused
Finish modern UI: rounded components everywhere, readable hero contrast
Browse files
app.py
CHANGED
|
@@ -23,6 +23,85 @@ CSS = """
|
|
| 23 |
.hero .pill b { color: #C9A227; }
|
| 24 |
button.primary { background: #0D1B2A !important; border-radius: 12px !important; }
|
| 25 |
.footnote { color: #64748b; font-size: 13.5px; line-height: 1.55; margin-top: 18px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
"""
|
| 27 |
|
| 28 |
MIC_SVG = """<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0 0 14 0"/><path d="M12 19v3"/></svg>"""
|
|
|
|
| 23 |
.hero .pill b { color: #C9A227; }
|
| 24 |
button.primary { background: #0D1B2A !important; border-radius: 12px !important; }
|
| 25 |
.footnote { color: #64748b; font-size: 13.5px; line-height: 1.55; margin-top: 18px; }
|
| 26 |
+
|
| 27 |
+
/* ---- Every Gradio component: rounded, soft border, soft shadow (no square boxes) ---- */
|
| 28 |
+
.gradio-container .block,
|
| 29 |
+
.gradio-container .form,
|
| 30 |
+
.gradio-container .wrap,
|
| 31 |
+
.gradio-container .panel,
|
| 32 |
+
.gradio-container .component,
|
| 33 |
+
.gradio-container .audio,
|
| 34 |
+
.gradio-container .plot,
|
| 35 |
+
.gradio-container .input,
|
| 36 |
+
.gradio-container .output {
|
| 37 |
+
border-radius: 18px !important;
|
| 38 |
+
overflow: hidden !important;
|
| 39 |
+
border: 1px solid #E2E8F0 !important;
|
| 40 |
+
background: #FFFFFF !important;
|
| 41 |
+
box-shadow: 0 4px 20px rgba(13,27,42,.06) !important;
|
| 42 |
+
}
|
| 43 |
+
.gradio-container .block:has(.hero),
|
| 44 |
+
.gradio-container .block:has(.card),
|
| 45 |
+
.gradio-container .block.footnote {
|
| 46 |
+
background: transparent !important;
|
| 47 |
+
border: none !important;
|
| 48 |
+
box-shadow: none !important;
|
| 49 |
+
}
|
| 50 |
+
.gradio-container button {
|
| 51 |
+
border-radius: 12px !important;
|
| 52 |
+
}
|
| 53 |
+
.gradio-container button.primary {
|
| 54 |
+
background: #0D1B2A !important;
|
| 55 |
+
color: #fff !important;
|
| 56 |
+
border: none !important;
|
| 57 |
+
}
|
| 58 |
+
.gradio-container button.primary:hover {
|
| 59 |
+
background: #1B3A5C !important;
|
| 60 |
+
}
|
| 61 |
+
.gradio-container input[type="text"],
|
| 62 |
+
.gradio-container textarea,
|
| 63 |
+
.gradio-container input[type="number"] {
|
| 64 |
+
border-radius: 12px !important;
|
| 65 |
+
}
|
| 66 |
+
.gradio-container .tab-nav {
|
| 67 |
+
background: #FFFFFF !important;
|
| 68 |
+
border: 1px solid #E2E8F0 !important;
|
| 69 |
+
border-radius: 14px !important;
|
| 70 |
+
padding: 4px !important;
|
| 71 |
+
gap: 4px !important;
|
| 72 |
+
}
|
| 73 |
+
.gradio-container .tab-nav button {
|
| 74 |
+
border-radius: 10px !important;
|
| 75 |
+
border: none !important;
|
| 76 |
+
}
|
| 77 |
+
.gradio-container .tab-nav button.selected {
|
| 78 |
+
background: #0D1B2A !important;
|
| 79 |
+
color: #fff !important;
|
| 80 |
+
}
|
| 81 |
+
.gradio-container .radio label,
|
| 82 |
+
.gradio-container [class*="radio"] label {
|
| 83 |
+
border-radius: 999px !important;
|
| 84 |
+
border: 1px solid #E2E8F0 !important;
|
| 85 |
+
padding: 6px 14px !important;
|
| 86 |
+
background: #FFFFFF !important;
|
| 87 |
+
}
|
| 88 |
+
.gradio-container label span {
|
| 89 |
+
font-weight: 600 !important;
|
| 90 |
+
color: #0D1B2A !important;
|
| 91 |
+
}
|
| 92 |
+
.gradio-container audio {
|
| 93 |
+
border-radius: 12px !important;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
/* ---- Hero text must stay white on the dark navy hero (Gradio theme otherwise forces dark text) ---- */
|
| 97 |
+
.hero h1 { color: #FFFFFF !important; }
|
| 98 |
+
.hero .tagline { color: rgba(255,255,255,.92) !important; }
|
| 99 |
+
.hero .pill { color: #FFFFFF !important; }
|
| 100 |
+
.hero .hero-icon { color: #E5C15D !important; background: rgba(201,162,39,.25) !important; }
|
| 101 |
+
|
| 102 |
+
/* Bold words inside the hero tagline + solid gold icon tile for contrast */
|
| 103 |
+
.hero .tagline b, .hero .tagline strong { color: #E5C15D !important; }
|
| 104 |
+
.hero .hero-icon { background: #C9A227 !important; color: #0D1B2A !important; }
|
| 105 |
"""
|
| 106 |
|
| 107 |
MIC_SVG = """<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0 0 14 0"/><path d="M12 19v3"/></svg>"""
|