SHELLAPANDIANGANHUNGING commited on
Commit
3a89bd8
·
verified ·
1 Parent(s): f38e51e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +61 -10
app.py CHANGED
@@ -307,17 +307,68 @@ df = load_data()
307
  # st.metric("Alarms (Red/Amber)", f"{df['is_alarm'].sum():,} ({df['is_alarm'].mean():.1%})")
308
 
309
  # ================= HEADER =================
 
 
 
 
 
 
 
 
 
 
 
 
 
 
310
  st.markdown("""
311
- <div style="text-align:center; font-family:Arial, sans-serif; margin-bottom:16px;">
312
- <h1 style="color:#154D9C; font-weight:bold; margin:0;">
313
- Tyre Pressure Monitoring System (TPMS) Analytics for Mining Equipments
314
- </h1>
315
- <p style="font-size:12px; color:#7d7d7d; margin:4px 0 2px 0;">
316
- Daily trend insights derived from 13–16 December 2023 data
317
- </p>
318
- <p style="font-size:10px; color:#7d7d7d; margin:2px 0 0 0;">
319
- &copy; 2025 Bukit Technology Digital. All rights reserved.
320
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  </div>
322
  """, unsafe_allow_html=True)
323
 
 
307
  # st.metric("Alarms (Red/Amber)", f"{df['is_alarm'].sum():,} ({df['is_alarm'].mean():.1%})")
308
 
309
  # ================= HEADER =================
310
+ # st.markdown("""
311
+ # <div style="text-align:center; font-family:Arial, sans-serif; margin-bottom:16px;">
312
+ # <h1 style="color:#154D9C; font-weight:bold; margin:0;">
313
+ # Tyre Pressure Monitoring System (TPMS) Analytics for Mining Equipments
314
+ # </h1>
315
+ # <p style="font-size:12px; color:#7d7d7d; margin:4px 0 2px 0;">
316
+ # Daily trend insights derived from 13–16 December 2023 data
317
+ # </p>
318
+ # <p style="font-size:10px; color:#7d7d7d; margin:2px 0 0 0;">
319
+ # &copy; 2025 Bukit Technology Digital. All rights reserved.
320
+ # </p>
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