GMARTINEZMILLA commited on
Commit
ab3a4e6
1 Parent(s): 46a006c

feat: updated app script

Browse files
Files changed (1) hide show
  1. app.py +50 -37
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
- [data-testid="block-container"] {
21
- padding-left: 2rem;
22
- padding-right: 2rem;
23
- padding-top: 1rem;
24
- padding-bottom: 0rem;
25
- margin-bottom: -7rem;
26
- }
27
- [data-testid="stVerticalBlock"] {
28
- padding-left: 0rem;
29
- padding-right: 0rem;
30
- }
31
- [data-testid="stMetric"] {
32
- background-color: #393939;
33
- text-align: center;
34
- padding: 15px 0;
35
- }
36
- [data-testid="stMetricLabel"] {
37
- display: flex;
38
- justify-content: center;
39
- align-items: center;
40
- }
41
- [data-testid="stMetricDeltaIcon-Up"] {
42
- position: relative;
43
- left: 38%;
44
- -webkit-transform: translateX(-50%);
45
- -ms-transform: translateX(-50%);
46
- transform: translateX(-50%);
47
- }
48
- [data-testid="stMetricDeltaIcon-Down"] {
49
- position: relative;
50
- left: 38%;
51
- -webkit-transform: translateX(-50%);
52
- -ms-transform: translateX(-50%);
53
- transform: translateX(-50%);
54
- }
55
- </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
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