Spaces:
Sleeping
Sleeping
Update app.py
#10
by
MiaadAlsulami - opened
app.py
CHANGED
|
@@ -335,24 +335,23 @@ def customize_navigation_menu_dark_green():
|
|
| 335 |
)
|
| 336 |
|
| 337 |
def customize_login_page_with_image(image_path):
|
| 338 |
-
# Use columns to center the logo
|
| 339 |
-
col1, col2, col3 = st.columns([1, 2, 1]) # Adjust the ratios to center the
|
| 340 |
-
with col2: # Place the logo in the middle column
|
| 341 |
st.image(image_path, width=200, use_container_width=False) # Adjust width as needed
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
)
|
| 356 |
|
| 357 |
def customize_submit_button():
|
| 358 |
st.markdown(
|
|
|
|
| 335 |
)
|
| 336 |
|
| 337 |
def customize_login_page_with_image(image_path):
|
| 338 |
+
# Use columns to center the logo and title
|
| 339 |
+
col1, col2, col3 = st.columns([1, 2, 1]) # Adjust the ratios to center the content
|
| 340 |
+
with col2: # Place the logo and title in the middle column
|
| 341 |
st.image(image_path, width=200, use_container_width=False) # Adjust width as needed
|
| 342 |
+
st.markdown(
|
| 343 |
+
"""
|
| 344 |
+
<style>
|
| 345 |
+
h1 {
|
| 346 |
+
color: #084C3C !important; /* Dark green for Login Page title */
|
| 347 |
+
text-align: center; /* Center align the title */
|
| 348 |
+
margin-top: 0 !important; /* Remove extra spacing above the title */
|
| 349 |
+
}
|
| 350 |
+
</style>
|
| 351 |
+
""",
|
| 352 |
+
unsafe_allow_html=True
|
| 353 |
+
)
|
| 354 |
+
st.title("Login Page") # The title will be styled in dark green
|
|
|
|
| 355 |
|
| 356 |
def customize_submit_button():
|
| 357 |
st.markdown(
|