chenemii commited on
Commit
687027d
·
1 Parent(s): 9a96dd6

Center title and position logo in top right corner

Browse files

- Use 3-column layout with proportions [1, 4, 1] for better spacing
- Center the 'Par-ity Project' title in the middle column
- Position logo in the right column for top-right appearance
- Maintain 120px logo width with proper fallback
- Clean layout that works reliably with Streamlit's component system

Files changed (1) hide show
  1. app/streamlit_app.py +6 -3
app/streamlit_app.py CHANGED
@@ -635,13 +635,16 @@ def main():
635
  </style>
636
  """, unsafe_allow_html=True)
637
 
638
- # Main title with logo
639
- col1, col2 = st.columns([3, 1])
640
 
641
  with col1:
642
- st.markdown('<div class="main-header"><h1>⛳ Par-ity Project</h1></div>', unsafe_allow_html=True)
643
 
644
  with col2:
 
 
 
645
  try:
646
  st.image("app/transparent2.png", width=120)
647
  except:
 
635
  </style>
636
  """, unsafe_allow_html=True)
637
 
638
+ # Header with centered title and right-aligned logo
639
+ col1, col2, col3 = st.columns([1, 4, 1])
640
 
641
  with col1:
642
+ st.write("") # Empty space
643
 
644
  with col2:
645
+ st.markdown('<div class="main-header"><h1>⛳ Par-ity Project</h1></div>', unsafe_allow_html=True)
646
+
647
+ with col3:
648
  try:
649
  st.image("app/transparent2.png", width=120)
650
  except: