Spaces:
Sleeping
Sleeping
GMARTINEZMILLA
commited on
Commit
•
ab3a4e6
1
Parent(s):
46a006c
feat: updated app script
Browse files
app.py
CHANGED
@@ -16,43 +16,56 @@ st.set_page_config(page_title="DeepInsightz", page_icon=":bar_chart:", layout="w
|
|
16 |
|
17 |
# Custom CSS for styling similar to the inspiration
|
18 |
st.markdown("""
|
19 |
-
<style>
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
[data-testid="
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
}
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
}
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
}
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
""", unsafe_allow_html=True)
|
57 |
|
58 |
# Load CSV files at the top
|
|
|
16 |
|
17 |
# Custom CSS for styling similar to the inspiration
|
18 |
st.markdown("""
|
19 |
+
<style>
|
20 |
+
/* General Page Background */
|
21 |
+
body {
|
22 |
+
background-color: #282828;
|
23 |
+
color: white;
|
24 |
+
}
|
25 |
+
|
26 |
+
/* Container styling for metric boxes */
|
27 |
+
[data-testid="stMetric"] {
|
28 |
+
background-color: #4f4f4f;
|
29 |
+
border-radius: 10px;
|
30 |
+
text-align: center;
|
31 |
+
padding: 15px 0;
|
32 |
+
margin-bottom: 20px;
|
33 |
+
}
|
34 |
+
|
35 |
+
[data-testid="stMetricLabel"] {
|
36 |
+
display: flex;
|
37 |
+
justify-content: center;
|
38 |
+
align-items: center;
|
39 |
+
color: white;
|
40 |
+
}
|
41 |
+
|
42 |
+
[data-testid="stMetricDeltaIcon-Up"] {
|
43 |
+
position: relative;
|
44 |
+
left: 38%;
|
45 |
+
transform: translateX(-50%);
|
46 |
+
color: #00FF00; /* Green for positive delta */
|
47 |
+
}
|
48 |
+
|
49 |
+
[data-testid="stMetricDeltaIcon-Down"] {
|
50 |
+
position: relative;
|
51 |
+
left: 38%;
|
52 |
+
transform: translateX(-50%);
|
53 |
+
color: #FF0000; /* Red for negative delta */
|
54 |
+
}
|
55 |
+
|
56 |
+
/* Customize the sidebar background */
|
57 |
+
[data-testid="stSidebar"] {
|
58 |
+
background-color: #282828;
|
59 |
+
}
|
60 |
+
|
61 |
+
/* General container for charts and boxes */
|
62 |
+
.container {
|
63 |
+
display: flex;
|
64 |
+
justify-content: space-between;
|
65 |
+
background-color: #282828;
|
66 |
+
}
|
67 |
+
|
68 |
+
</style>
|
69 |
""", unsafe_allow_html=True)
|
70 |
|
71 |
# Load CSV files at the top
|