Spaces:
Running
Running
Update ui/ui_generators.py
Browse files- ui/ui_generators.py +18 -6
ui/ui_generators.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
# ui_generators.py
|
2 |
"""
|
3 |
Generates HTML content and Matplotlib plots for the Gradio UI tabs,
|
4 |
and UI components for the Analytics tab.
|
@@ -76,6 +75,7 @@ def build_home_tab_ui():
|
|
76 |
font-size: 3.2em;
|
77 |
font-weight: 800;
|
78 |
margin-bottom: 24px;
|
|
|
79 |
background: linear-gradient(45deg, #ffffff, #e0e7ff);
|
80 |
-webkit-background-clip: text;
|
81 |
-webkit-text-fill-color: transparent;
|
@@ -83,6 +83,18 @@ def build_home_tab_ui():
|
|
83 |
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
|
84 |
line-height: 1.2;
|
85 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
.hero-subtitle {
|
88 |
font-size: 1.4em;
|
@@ -363,11 +375,12 @@ def build_home_tab_ui():
|
|
363 |
gr.HTML(css_styles)
|
364 |
|
365 |
# Main hero section
|
|
|
366 |
gr.HTML("""
|
367 |
<div class="hero-section">
|
368 |
<div class="hero-content">
|
369 |
<h1 class="hero-title">
|
370 |
-
|
371 |
</h1>
|
372 |
<p class="hero-subtitle">
|
373 |
Transform your LinkedIn presence with data-driven insights and actionable strategies
|
@@ -508,16 +521,16 @@ def build_home_tab_ui():
|
|
508 |
with gr.Row(equal_height=True):
|
509 |
with gr.Column():
|
510 |
btn_graphs = gr.Button("π Explore Graphs", variant="primary", size="lg",
|
511 |
-
|
512 |
|
513 |
with gr.Column():
|
514 |
btn_reports = gr.Button("π View Reports", variant="primary", size="lg",
|
515 |
-
|
516 |
|
517 |
with gr.Row(equal_height=True):
|
518 |
with gr.Column():
|
519 |
btn_okr = gr.Button("π― Access OKRs", variant="primary", size="lg",
|
520 |
-
|
521 |
|
522 |
with gr.Column():
|
523 |
btn_help = gr.Button("π Documentation", variant="secondary", size="lg",
|
@@ -1010,4 +1023,3 @@ def create_enhanced_report_tab(agentic_modules_loaded_status: bool):
|
|
1010 |
|
1011 |
# Return both header HTML and body Markdown components for app.py to update
|
1012 |
return agentic_pipeline_status_md, report_selector_dd, report_header_html_display, report_body_markdown_display
|
1013 |
-
|
|
|
|
|
1 |
"""
|
2 |
Generates HTML content and Matplotlib plots for the Gradio UI tabs,
|
3 |
and UI components for the Analytics tab.
|
|
|
75 |
font-size: 3.2em;
|
76 |
font-weight: 800;
|
77 |
margin-bottom: 24px;
|
78 |
+
/* Apply gradient and text-fill to the text, but not the emoji */
|
79 |
background: linear-gradient(45deg, #ffffff, #e0e7ff);
|
80 |
-webkit-background-clip: text;
|
81 |
-webkit-text-fill-color: transparent;
|
|
|
83 |
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
|
84 |
line-height: 1.2;
|
85 |
}
|
86 |
+
|
87 |
+
/* NEW CSS: Style for the rocket emoji */
|
88 |
+
.hero-title .rocket-emoji {
|
89 |
+
background: none; /* Remove background effect */
|
90 |
+
-webkit-background-clip: unset; /* Revert background clipping */
|
91 |
+
background-clip: unset;
|
92 |
+
-webkit-text-fill-color: initial; /* Revert text fill color to default */
|
93 |
+
color: initial; /* Ensure emoji color is default (often colorful) */
|
94 |
+
text-shadow: none; /* Remove text shadow for the emoji if it impacts it negatively */
|
95 |
+
display: inline-block; /* Ensure it respects vertical alignment */
|
96 |
+
vertical-align: middle; /* Adjust vertical alignment if needed */
|
97 |
+
}
|
98 |
|
99 |
.hero-subtitle {
|
100 |
font-size: 1.4em;
|
|
|
375 |
gr.HTML(css_styles)
|
376 |
|
377 |
# Main hero section
|
378 |
+
# MODIFIED: Wrapped the rocket emoji in a <span> with class "rocket-emoji"
|
379 |
gr.HTML("""
|
380 |
<div class="hero-section">
|
381 |
<div class="hero-content">
|
382 |
<h1 class="hero-title">
|
383 |
+
<span class="rocket-emoji">π</span> LinkedIn Employer Brand Analytics
|
384 |
</h1>
|
385 |
<p class="hero-subtitle">
|
386 |
Transform your LinkedIn presence with data-driven insights and actionable strategies
|
|
|
521 |
with gr.Row(equal_height=True):
|
522 |
with gr.Column():
|
523 |
btn_graphs = gr.Button("π Explore Graphs", variant="primary", size="lg",
|
524 |
+
elem_classes="nav-button", scale=1)
|
525 |
|
526 |
with gr.Column():
|
527 |
btn_reports = gr.Button("π View Reports", variant="primary", size="lg",
|
528 |
+
elem_classes="nav-button", scale=1)
|
529 |
|
530 |
with gr.Row(equal_height=True):
|
531 |
with gr.Column():
|
532 |
btn_okr = gr.Button("π― Access OKRs", variant="primary", size="lg",
|
533 |
+
elem_classes="nav-button", scale=1)
|
534 |
|
535 |
with gr.Column():
|
536 |
btn_help = gr.Button("π Documentation", variant="secondary", size="lg",
|
|
|
1023 |
|
1024 |
# Return both header HTML and body Markdown components for app.py to update
|
1025 |
return agentic_pipeline_status_md, report_selector_dd, report_header_html_display, report_body_markdown_display
|
|