Spaces:
Running
Running
Update ui/config.py
Browse files- ui/config.py +47 -62
ui/config.py
CHANGED
@@ -2,85 +2,70 @@ import gradio as gr
|
|
2 |
# Custom CSS for enhanced UI
|
3 |
|
4 |
custom_title_css = """
|
5 |
-
|
6 |
-
|
|
|
7 |
font-weight: 800 !important;
|
8 |
-
|
9 |
-
-webkit-background-clip: text !important;
|
10 |
-
-webkit-text-fill-color: transparent !important;
|
11 |
-
background-clip: text !important;
|
12 |
text-align: center !important;
|
13 |
-
margin:
|
14 |
-
|
15 |
-
|
16 |
}
|
17 |
|
18 |
-
.main-subtitle {
|
19 |
-
font-size:
|
20 |
-
color: #
|
21 |
text-align: center !important;
|
22 |
-
margin: 0 0
|
23 |
font-weight: 400 !important;
|
24 |
-
|
25 |
-
max-width: 800px !important;
|
26 |
-
margin-left: auto !important;
|
27 |
-
margin-right: auto !important;
|
28 |
}
|
29 |
|
30 |
-
.title-container {
|
31 |
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
|
32 |
-
border-radius:
|
33 |
-
padding:
|
34 |
-
margin:
|
35 |
-
box-shadow: 0
|
36 |
-
border:
|
37 |
-
position: relative !important;
|
38 |
-
overflow: hidden !important;
|
39 |
}
|
40 |
|
41 |
-
.
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
left: 0 !important;
|
46 |
-
right: 0 !important;
|
47 |
-
height: 4px !important;
|
48 |
-
background: linear-gradient(90deg, #0077B5, #00A0DC, #0066CC) !important;
|
49 |
}
|
50 |
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
transform: translateY(-5px);
|
67 |
-
}
|
68 |
}
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
}
|
79 |
-
|
80 |
-
.title-container {
|
81 |
-
padding: 2rem 1rem !important;
|
82 |
-
margin: 1rem 0 !important;
|
83 |
-
}
|
84 |
}
|
85 |
"""
|
86 |
|
|
|
2 |
# Custom CSS for enhanced UI
|
3 |
|
4 |
custom_title_css = """
|
5 |
+
/* Target the HTML component specifically */
|
6 |
+
.gradio-html .main-title {
|
7 |
+
font-size: 48px !important;
|
8 |
font-weight: 800 !important;
|
9 |
+
color: #0077B5 !important;
|
|
|
|
|
|
|
10 |
text-align: center !important;
|
11 |
+
margin: 20px 0 10px 0 !important;
|
12 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
13 |
+
text-shadow: 2px 2px 4px rgba(0,0,0,0.1) !important;
|
14 |
}
|
15 |
|
16 |
+
.gradio-html .main-subtitle {
|
17 |
+
font-size: 18px !important;
|
18 |
+
color: #666666 !important;
|
19 |
text-align: center !important;
|
20 |
+
margin: 0 0 30px 0 !important;
|
21 |
font-weight: 400 !important;
|
22 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
+
.gradio-html .title-container {
|
26 |
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
|
27 |
+
border-radius: 15px !important;
|
28 |
+
padding: 40px 20px !important;
|
29 |
+
margin: 20px 0 !important;
|
30 |
+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
|
31 |
+
border: 2px solid #e2e8f0 !important;
|
|
|
|
|
32 |
}
|
33 |
|
34 |
+
.gradio-html .emoji-icon {
|
35 |
+
font-size: 40px !important;
|
36 |
+
margin-right: 10px !important;
|
37 |
+
vertical-align: middle !important;
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
|
40 |
+
/* Alternative approach - target by element directly */
|
41 |
+
div[data-testid="HTML"] .main-title,
|
42 |
+
.gr-html .main-title {
|
43 |
+
font-size: 48px !important;
|
44 |
+
font-weight: 800 !important;
|
45 |
+
color: #0077B5 !important;
|
46 |
+
text-align: center !important;
|
47 |
+
margin: 20px 0 10px 0 !important;
|
48 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
49 |
}
|
50 |
|
51 |
+
div[data-testid="HTML"] .main-subtitle,
|
52 |
+
.gr-html .main-subtitle {
|
53 |
+
font-size: 18px !important;
|
54 |
+
color: #666666 !important;
|
55 |
+
text-align: center !important;
|
56 |
+
margin: 0 0 30px 0 !important;
|
57 |
+
font-weight: 400 !important;
|
58 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
|
|
|
|
59 |
}
|
60 |
|
61 |
+
div[data-testid="HTML"] .title-container,
|
62 |
+
.gr-html .title-container {
|
63 |
+
background: #f8fafc !important;
|
64 |
+
border-radius: 15px !important;
|
65 |
+
padding: 40px 20px !important;
|
66 |
+
margin: 20px 0 !important;
|
67 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
|
68 |
+
border: 2px solid #e2e8f0 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
}
|
70 |
"""
|
71 |
|