James McCool commited on
Commit
c1b6b3a
·
1 Parent(s): 13ab6ca

Enhance lineup summary display in app.py by expanding the layout to three columns. Introduced a markdown format for displaying total salary, median, and ownership percentages, improving visual clarity and user engagement.

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1028,11 +1028,14 @@ with tab4:
1028
  })
1029
  summary_row = summary_row[['Salary', 'Median', 'Own%']]
1030
 
1031
- col1, col2 = st.columns(2)
1032
  with col1:
1033
  st.write(f"Rem$/Player: ${round((50000 - total_salary) / (10 - len(filled_lineup)), 0)}")
1034
- with col2:
1035
- st.write(f"Totals: ${total_salary}, {round(total_median, 2)}, {round(total_own, 2)}")
 
 
 
1036
 
1037
  # Optionally, add a button to clear the lineup
1038
  if st.button("Clear Lineup", key='clear_lineup'):
 
1028
  })
1029
  summary_row = summary_row[['Salary', 'Median', 'Own%']]
1030
 
1031
+ col1, col2, col3 = st.columns(3)
1032
  with col1:
1033
  st.write(f"Rem$/Player: ${round((50000 - total_salary) / (10 - len(filled_lineup)), 0)}")
1034
+
1035
+ with col3:
1036
+ st.markdown(
1037
+ f":violet-badge[:material/payments: {round(total_salary, 0)}] :green-badge[:material/mode_heat: {round(total_median, 2)}] :blue-badge[:material/percent: {round(total_own, 2)}]"
1038
+ )
1039
 
1040
  # Optionally, add a button to clear the lineup
1041
  if st.button("Clear Lineup", key='clear_lineup'):