Spaces:
Paused
Paused
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
- 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 |
-
#
|
| 639 |
-
col1, col2 = st.columns([
|
| 640 |
|
| 641 |
with col1:
|
| 642 |
-
st.
|
| 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:
|