Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,6 +154,22 @@ label, .stSelectbox label, .stMultiselect label, .stCheckbox label {
|
|
| 154 |
font-size: 10px;
|
| 155 |
color: var(--text-muted);
|
| 156 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
</style>
|
| 158 |
""", unsafe_allow_html=True)
|
| 159 |
|
|
@@ -198,30 +214,38 @@ def load_data():
|
|
| 198 |
df = load_data()
|
| 199 |
|
| 200 |
# ================= HEADER β LOGO EMBEDDED (PASTI MUNCUL) =================
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
col1, col2, col3 = st.columns([1, 5, 1])
|
| 204 |
-
|
| 205 |
-
# LEFT β MICHELIN (SAMA DENGAN PLN)
|
| 206 |
-
with col1:
|
| 207 |
-
st.image("logo.png", width=120)
|
| 208 |
-
|
| 209 |
-
# CENTER β TITLE
|
| 210 |
-
with col2:
|
| 211 |
-
st.markdown("""
|
| 212 |
-
<div class="header-title">
|
| 213 |
-
<h1 style="margin-bottom:6px;">
|
| 214 |
-
Proactive Safety Intelligence & Analytics Dashboard
|
| 215 |
-
</h1>
|
| 216 |
-
</div>
|
| 217 |
-
""", unsafe_allow_html=True)
|
| 218 |
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
|
| 223 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
|
|
|
|
| 225 |
# ================= OBJECTIVES (1β6) =================
|
| 226 |
|
| 227 |
# # ================= HEADER =================
|
|
|
|
| 154 |
font-size: 10px;
|
| 155 |
color: var(--text-muted);
|
| 156 |
}
|
| 157 |
+
|
| 158 |
+
/* ================= HEADER ================= */
|
| 159 |
+
.header-box {
|
| 160 |
+
display: flex;
|
| 161 |
+
justify-content: space-between;
|
| 162 |
+
align-items: center;
|
| 163 |
+
padding: 10px 20px;
|
| 164 |
+
background: white;
|
| 165 |
+
border-bottom: 1px solid var(--border);
|
| 166 |
+
margin-bottom: 20px;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
.header-title {
|
| 170 |
+
text-align: center;
|
| 171 |
+
flex: 1;
|
| 172 |
+
}
|
| 173 |
</style>
|
| 174 |
""", unsafe_allow_html=True)
|
| 175 |
|
|
|
|
| 214 |
df = load_data()
|
| 215 |
|
| 216 |
# ================= HEADER β LOGO EMBEDDED (PASTI MUNCUL) =================
|
| 217 |
+
st.markdown('<div class="header-box">', unsafe_allow_html=True)
|
| 218 |
+
col1, col2, col3 = st.columns([1, 5, 1])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
|
| 220 |
+
# LEFT β MICHELIN (SAMA DENGAN PLN)
|
| 221 |
+
with col1:
|
| 222 |
+
# Try to load logo.png with error handling
|
| 223 |
+
try:
|
| 224 |
+
st.image("logo.png", width=50)
|
| 225 |
+
except:
|
| 226 |
+
# If logo.png doesn't exist, show a placeholder or text
|
| 227 |
+
st.markdown("")
|
| 228 |
|
| 229 |
+
# CENTER β TITLE
|
| 230 |
+
with col2:
|
| 231 |
+
st.markdown("""
|
| 232 |
+
<div class="header-title">
|
| 233 |
+
<h1 style="margin-bottom:6px;">
|
| 234 |
+
Proactive Safety Intelligence & Analytics Dashboard
|
| 235 |
+
</h1>
|
| 236 |
+
</div>
|
| 237 |
+
""", unsafe_allow_html=True)
|
| 238 |
+
|
| 239 |
+
# RIGHT β BTECH (SAMA DENGAN PLN)
|
| 240 |
+
with col3:
|
| 241 |
+
# Try to load btech.png with error handling
|
| 242 |
+
try:
|
| 243 |
+
st.image("btech.png", width=50)
|
| 244 |
+
except:
|
| 245 |
+
# If btech.png doesn't exist, show a placeholder or text
|
| 246 |
+
st.markdown("")
|
| 247 |
|
| 248 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 249 |
# ================= OBJECTIVES (1β6) =================
|
| 250 |
|
| 251 |
# # ================= HEADER =================
|