Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -321,56 +321,39 @@ df = load_data()
|
|
| 321 |
# </div>
|
| 322 |
# """, unsafe_allow_html=True)
|
| 323 |
# ================= HEADER + DUAL LOGO (KIRI: logo.png | KANAN: btech.png) =================
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
.header-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
.logo
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
.title-main {
|
| 349 |
-
font-size: 2.2rem;
|
| 350 |
-
font-weight: 800;
|
| 351 |
-
color: #154D9C;
|
| 352 |
-
margin: 0;
|
| 353 |
-
}
|
| 354 |
-
.sub1, .sub2 {
|
| 355 |
-
font-size: 12px;
|
| 356 |
-
color: #7d7d7d;
|
| 357 |
-
margin: 4px 0 2px 0;
|
| 358 |
-
}
|
| 359 |
-
.sub2 { font-size: 10px; }
|
| 360 |
-
</style>
|
| 361 |
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
<p class="sub1">Daily trend insights derived from 13–16 December 2023 data</p>
|
| 371 |
-
<p class="sub2">© 2025 Bukit Technology Digital. All rights reserved.</p>
|
| 372 |
-
</div>
|
| 373 |
-
""", unsafe_allow_html=True)
|
| 374 |
|
| 375 |
# # ================= HEADER =================
|
| 376 |
# st.markdown("""
|
|
@@ -1675,7 +1658,18 @@ st.markdown(f"""
|
|
| 1675 |
""", unsafe_allow_html=True)
|
| 1676 |
|
| 1677 |
st.markdown("""
|
| 1678 |
-
<div class="footer"
|
| 1679 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1680 |
</div>
|
| 1681 |
""", unsafe_allow_html=True)
|
|
|
|
| 321 |
# </div>
|
| 322 |
# """, unsafe_allow_html=True)
|
| 323 |
# ================= HEADER + DUAL LOGO (KIRI: logo.png | KANAN: btech.png) =================
|
| 324 |
+
# ==== HEADER LAYOUT (Columns) ====
|
| 325 |
+
with st.container():
|
| 326 |
+
st.markdown('<div class="header-box">', unsafe_allow_html=True)
|
| 327 |
+
col1, col2, col3 = st.columns([1, 5, 1]) # kiri & kanan kecil, tengah besar
|
| 328 |
+
|
| 329 |
+
# LEFT — logo.png (Michelin / calon customer)
|
| 330 |
+
with col1:
|
| 331 |
+
try:
|
| 332 |
+
st.image("logo.png", width=100)
|
| 333 |
+
except:
|
| 334 |
+
st.empty() # tidak tampilkan apa-apa jika error
|
| 335 |
+
|
| 336 |
+
# CENTER — TITLE
|
| 337 |
+
with col2:
|
| 338 |
+
st.markdown("""
|
| 339 |
+
<div class="header-title" style="text-align:center;">
|
| 340 |
+
<h1 style="margin:0; color:#154D9C; font-weight:bold;">
|
| 341 |
+
Tyre Pressure Monitoring System (TPMS) Analytics for Mining Equipments
|
| 342 |
+
</h1>
|
| 343 |
+
<p style="color:#7d7d7d; font-size:12px; margin:4px 0 2px 0;">
|
| 344 |
+
Daily trend insights derived from 13–16 December 2023 data
|
| 345 |
+
</p>
|
| 346 |
+
</div>
|
| 347 |
+
""", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 348 |
|
| 349 |
+
# RIGHT — btech.png (BTech logo)
|
| 350 |
+
with col3:
|
| 351 |
+
try:
|
| 352 |
+
st.image("btech.png", width=100)
|
| 353 |
+
except:
|
| 354 |
+
st.empty() # fallback silent
|
| 355 |
+
|
| 356 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 357 |
|
| 358 |
# # ================= HEADER =================
|
| 359 |
# st.markdown("""
|
|
|
|
| 1658 |
""", unsafe_allow_html=True)
|
| 1659 |
|
| 1660 |
st.markdown("""
|
| 1661 |
+
<div class="footer" style="
|
| 1662 |
+
text-align: center;
|
| 1663 |
+
padding: 12px 0;
|
| 1664 |
+
margin-top: 20px;
|
| 1665 |
+
font-family: Arial, sans-serif;
|
| 1666 |
+
border-top: 1px solid #f0f0f0;
|
| 1667 |
+
">
|
| 1668 |
+
<div style="font-weight: bold; color: #154D9C; margin-bottom: 4px;">
|
| 1669 |
+
Michelin Mining Tyre Analytics
|
| 1670 |
+
</div>
|
| 1671 |
+
<div style="font-size: 10px; color: #7d7d7d;">
|
| 1672 |
+
© 2025 Bukit Technology Digital. All rights reserved.
|
| 1673 |
+
</div>
|
| 1674 |
</div>
|
| 1675 |
""", unsafe_allow_html=True)
|