SHELLAPANDIANGANHUNGING commited on
Commit
999d9f4
Β·
verified Β·
1 Parent(s): a0de640

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -24
app.py CHANGED
@@ -197,42 +197,42 @@ def load_data():
197
 
198
  df = load_data()
199
 
200
- # ================= HEADER β€” DIPERBAIKI (LOGO AMAN + TIDAK PECAH) =================
201
  with st.container():
202
- col1, col2, col3 = st.columns([1, 5, 1])
203
 
204
- # LEFT β€” logo.png (Michelin)
205
  with col1:
206
- if os.path.exists("logo.png"):
207
- try:
208
- st.image("logo.png", width=100)
209
- except Exception as e:
210
- st.markdown('<div style="color:#003A8F; font-weight:700; font-size:16px;">Michelin</div>', unsafe_allow_html=True)
211
  else:
212
- st.markdown('<div style="color:#003A8F; font-weight:700; font-size:16px;">Michelin</div>', unsafe_allow_html=True)
 
 
 
213
 
214
  # CENTER β€” Title
215
  with col2:
216
  st.markdown("""
217
- <div style="text-align:center;">
218
- <h1 style="margin:0; color:#154D9C; font-weight:bold; line-height:1.3;">
219
- Tyre Pressure Monitoring System (TPMS) Analytics for Mining Equipments
220
- </h1>
221
- <p style="color:#7d7d7d; font-size:12px; margin:6px 0 0 0;">
222
- Daily trend insights derived from 13–16 December 2023 data
223
- </p>
224
- </div>
225
  """, unsafe_allow_html=True)
226
 
227
- # RIGHT β€” btech.png (BTech)
228
  with col3:
229
- if os.path.exists("btech.png"):
230
- try:
231
- st.image("btech.png", width=100)
232
- except Exception as e:
233
- st.markdown('<div style="color:#7d7d7d; font-weight:600; font-size:16px;">BTech</div>', unsafe_allow_html=True)
234
  else:
235
- st.markdown('<div style="color:#7d7d7d; font-weight:600; font-size:16px;">BTech</div>', unsafe_allow_html=True)
 
 
 
236
 
237
  # # ================= HEADER =================
238
  # st.markdown("""
 
197
 
198
  df = load_data()
199
 
200
+ # ================= HEADER β€” FIX FINAL (LOGO PASTI MUNCUL) =================
201
  with st.container():
202
+ col1, col2, col3 = st.columns([1.2, 6, 1.2])
203
 
204
+ # LEFT β€” Michelin Logo
205
  with col1:
206
+ if os.path.isfile("logo.png"):
207
+ st.image("logo.png", use_container_width=True)
 
 
 
208
  else:
209
+ st.markdown(
210
+ "<h4 style='color:#003A8F; text-align:center;'>Michelin</h4>",
211
+ unsafe_allow_html=True
212
+ )
213
 
214
  # CENTER β€” Title
215
  with col2:
216
  st.markdown("""
217
+ <div style="text-align:center;">
218
+ <h1 style="margin:0; color:#154D9C; font-weight:800;">
219
+ Tyre Pressure Monitoring System (TPMS) Analytics for Mining Equipments
220
+ </h1>
221
+ <p style="color:#7d7d7d; font-size:13px; margin-top:6px;">
222
+ Daily trend insights derived from 13–16 December 2023 data
223
+ </p>
224
+ </div>
225
  """, unsafe_allow_html=True)
226
 
227
+ # RIGHT β€” BTech Logo
228
  with col3:
229
+ if os.path.isfile("btech.png"):
230
+ st.image("btech.png", use_container_width=True)
 
 
 
231
  else:
232
+ st.markdown(
233
+ "<h4 style='color:#7d7d7d; text-align:center;'>BTech</h4>",
234
+ unsafe_allow_html=True
235
+ )
236
 
237
  # # ================= HEADER =================
238
  # st.markdown("""