Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -284,14 +284,26 @@ st.sidebar.markdown('</div>', unsafe_allow_html=True)
|
|
| 284 |
|
| 285 |
|
| 286 |
# =================== HEADER ===================
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 295 |
|
| 296 |
|
| 297 |
# =================== 1. Pie Charts: Temuan/Person by Company (PG & UM) - PERBAIKAN ===================
|
|
|
|
| 284 |
|
| 285 |
|
| 286 |
# =================== HEADER ===================
|
| 287 |
+
# Gunakan kolom untuk menyusun logo dan teks secara horizontal
|
| 288 |
+
header_cols = st.columns([1, 3]) # Rasio lebar kolom: Logo (kecil), Teks (lebih besar)
|
| 289 |
+
|
| 290 |
+
with header_cols[0]:
|
| 291 |
+
# Cek apakah file logo ada, lalu tampilkan
|
| 292 |
+
logo_path = "pln.png" # Sesuaikan nama file jika berbeda
|
| 293 |
+
if os.path.exists(logo_path):
|
| 294 |
+
st.image(logo_path, caption="", width=100) # Atur width sesuai kebutuhan
|
| 295 |
+
else:
|
| 296 |
+
st.warning(f"Logo `{logo_path}` not found. Please place it in the same directory as this script.")
|
| 297 |
+
|
| 298 |
+
with header_cols[1]:
|
| 299 |
+
st.markdown("""
|
| 300 |
+
<div class="main-header">
|
| 301 |
+
<h1>PLN Audit Insight & Intelligence Dashboard</h1>
|
| 302 |
+
<p style="text-align:center; color:#546e7a; font-size:1.1em; margin-top:8px;">
|
| 303 |
+
Operational Risk Intelligence for Audit & Compliance
|
| 304 |
+
</p>
|
| 305 |
+
</div>
|
| 306 |
+
""", unsafe_allow_html=True)
|
| 307 |
|
| 308 |
|
| 309 |
# =================== 1. Pie Charts: Temuan/Person by Company (PG & UM) - PERBAIKAN ===================
|