mabuseif commited on
Commit
cce6f8a
·
verified ·
1 Parent(s): be70b16

Update app/building_information.py

Browse files
Files changed (1) hide show
  1. app/building_information.py +19 -2
app/building_information.py CHANGED
@@ -291,13 +291,30 @@ def display_building_info_help():
291
  """)
292
 
293
  def display_orientation_diagram():
 
294
  col1, col2 = st.columns(2)
295
 
296
  with col1:
297
- st.image("images/orientation1.jpg", caption="Building Orientation Angle = 0", use_column_width="auto")
 
 
 
 
 
 
 
 
298
 
299
  with col2:
300
- st.image("images/orientation2.jpg", caption="Building Orientation Angle = 45", use_column_width="auto")
 
 
 
 
 
 
 
 
301
 
302
  def calculate_volume(floor_area: float, height: float) -> float:
303
  """
 
291
  """)
292
 
293
  def display_orientation_diagram():
294
+ """Display orientation images showing building orientation."""
295
  col1, col2 = st.columns(2)
296
 
297
  with col1:
298
+ st.markdown(
299
+ """
300
+ <div style="display: flex; justify-content: center; align-items: center;">
301
+ <img src="images/orientation1.jpg" width="300" />
302
+ </div>
303
+ <p style="text-align: center;">Building Orientation Angle = 0</p>
304
+ """,
305
+ unsafe_allow_html=True
306
+ )
307
 
308
  with col2:
309
+ st.markdown(
310
+ """
311
+ <div style="display: flex; justify-content: center; align-items: center;">
312
+ <img src="images/orientation2.jpg" width="300" />
313
+ </div>
314
+ <p style="text-align: center;">Building Orientation Angle = 45</p>
315
+ """,
316
+ unsafe_allow_html=True
317
+ )
318
 
319
  def calculate_volume(floor_area: float, height: float) -> float:
320
  """