Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -283,27 +283,26 @@ else:
|
|
| 283 |
st.sidebar.markdown('</div>', unsafe_allow_html=True)
|
| 284 |
|
| 285 |
|
| 286 |
-
# =================== HEADER ===================
|
| 287 |
-
# Gunakan
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
""", unsafe_allow_html=True)
|
| 307 |
|
| 308 |
# =================== 1. Pie Charts: Temuan/Person by Company (PG & UM) - PERBAIKAN ===================
|
| 309 |
st.markdown("<h3 class='section-title'>OBJECTIVE 1 - Company Reporting Activity: Who Reports the Most?</h3>", unsafe_allow_html=True)
|
|
|
|
| 283 |
st.sidebar.markdown('</div>', unsafe_allow_html=True)
|
| 284 |
|
| 285 |
|
| 286 |
+
# =================== HEADER DENGAN LOGO DI POJOK KANAN ATAS DALAM BOX ===================
|
| 287 |
+
# Gunakan HTML dan CSS untuk menyusun header dengan logo mengambang di kanan atas
|
| 288 |
+
header_html = f"""
|
| 289 |
+
<div class="main-header" style="position: relative; padding: 25px; box-sizing: border-box;">
|
| 290 |
+
<!-- Logo mengambang (absolute) di pojok kanan atas -->
|
| 291 |
+
<img src="pln.png" style="position: absolute; top: 10px; right: 10px; width: 80px; height: auto; object-fit: contain;" alt="PLN Logo">
|
| 292 |
+
|
| 293 |
+
<!-- Konten teks header -->
|
| 294 |
+
<h1>PLN Audit Insight & Intelligence Dashboard</h1>
|
| 295 |
+
<p style="text-align:center; color:#546e7a; font-size:1.1em; margin-top:8px;">
|
| 296 |
+
Operational Risk Intelligence for Audit & Compliance
|
| 297 |
+
</p>
|
| 298 |
+
</div>
|
| 299 |
+
"""
|
| 300 |
+
|
| 301 |
+
st.markdown(header_html, unsafe_allow_html=True)
|
| 302 |
+
|
| 303 |
+
# Pastikan file pln.png ada di direktori yang sama dengan app.py
|
| 304 |
+
if not os.path.exists("pln.png"):
|
| 305 |
+
st.warning("⚠️ File logo `pln.png` tidak ditemukan di direktori aplikasi. Harap letakkan file tersebut di sini.")
|
|
|
|
| 306 |
|
| 307 |
# =================== 1. Pie Charts: Temuan/Person by Company (PG & UM) - PERBAIKAN ===================
|
| 308 |
st.markdown("<h3 class='section-title'>OBJECTIVE 1 - Company Reporting Activity: Who Reports the Most?</h3>", unsafe_allow_html=True)
|