SHELLAPANDIANGANHUNGING commited on
Commit
e71807d
·
verified ·
1 Parent(s): 595fad0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +45 -51
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
- st.markdown("""
325
- <style>
326
- .header-container {
327
- position: relative;
328
- text-align: center;
329
- padding: 30px 0 20px 0;
330
- margin-bottom: 20px;
331
- }
332
- .logo-left, .logo-right {
333
- position: absolute;
334
- top: 10px;
335
- z-index: 100;
336
- background: white;
337
- padding: 6px;
338
- border-radius: 10px;
339
- box-shadow: 0 2px 8px rgba(0,0,0,0.08);
340
- border: 1px solid #e0e0e0;
341
- }
342
- .logo-left {
343
- left: 20px;
344
- }
345
- .logo-right {
346
- right: 20px;
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
- <div class="header-container">
363
- <div class="logo-left">
364
- <img src="logo.png" width="100" style="display:block;" />
365
- </div>
366
- <div class="logo-right">
367
- <img src="btech.png" width="100" style="display:block;" />
368
- </div>
369
- <h1 class="title-main">Tyre Pressure Monitoring System (TPMS) Analytics for Mining Equipments</h1>
370
- <p class="sub1">Daily trend insights derived from 13–16 December 2023 data</p>
371
- <p class="sub2">&copy; 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
- Michelin Mining Tyre Analytics
 
 
 
 
 
 
 
 
 
 
 
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
+ &copy; 2025 Bukit Technology Digital. All rights reserved.
1673
+ </div>
1674
  </div>
1675
  """, unsafe_allow_html=True)