Spaces:
Sleeping
Sleeping
Update modules/ui/ui.py
Browse files- modules/ui/ui.py +30 -30
modules/ui/ui.py
CHANGED
|
@@ -119,36 +119,35 @@ def main():
|
|
| 119 |
logger.info(f"Saliendo de main() - Estado final de la sesi贸n: {st.session_state}")
|
| 120 |
|
| 121 |
def login_register_page(lang_code, t):
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
""", unsafe_allow_html=True)
|
| 149 |
-
|
| 150 |
-
# 2. Contenedor principal para login y contenido
|
| 151 |
with st.container():
|
|
|
|
|
|
|
| 152 |
left_column, right_column = st.columns([1, 3])
|
| 153 |
|
| 154 |
with left_column:
|
|
@@ -165,7 +164,8 @@ def login_register_page(lang_code, t):
|
|
| 165 |
|
| 166 |
with right_column:
|
| 167 |
display_videos_and_info(lang_code, t)
|
| 168 |
-
|
|
|
|
| 169 |
|
| 170 |
def login_form(lang_code, t):
|
| 171 |
with st.form("login_form"):
|
|
|
|
| 119 |
logger.info(f"Saliendo de main() - Estado final de la sesi贸n: {st.session_state}")
|
| 120 |
|
| 121 |
def login_register_page(lang_code, t):
|
| 122 |
+
def login_register_page(lang_code, t):
|
| 123 |
+
"""P谩gina de login con logo integrado"""
|
| 124 |
+
|
| 125 |
+
# 1. Contenedor superior para el logo
|
| 126 |
+
st.markdown("""
|
| 127 |
+
<style>
|
| 128 |
+
.logo-container {
|
| 129 |
+
text-align: center;
|
| 130 |
+
padding: 2rem 0;
|
| 131 |
+
margin-bottom: 1rem;
|
| 132 |
+
}
|
| 133 |
+
.logo-container img {
|
| 134 |
+
height: 120px; /* Ajusta este valor seg煤n necesites */
|
| 135 |
+
width: auto;
|
| 136 |
+
object-fit: contain;
|
| 137 |
+
}
|
| 138 |
+
.main-content {
|
| 139 |
+
margin-top: 2rem;
|
| 140 |
+
}
|
| 141 |
+
</style>
|
| 142 |
+
<div class="logo-container">
|
| 143 |
+
<img src="./assets/img/logo_92x92.png" alt="AIdeaText Logo">
|
| 144 |
+
</div>
|
| 145 |
+
""", unsafe_allow_html=True)
|
| 146 |
+
|
| 147 |
+
# 2. Contenedor para el contenido principal
|
|
|
|
|
|
|
|
|
|
| 148 |
with st.container():
|
| 149 |
+
st.markdown('<div class="main-content">', unsafe_allow_html=True)
|
| 150 |
+
|
| 151 |
left_column, right_column = st.columns([1, 3])
|
| 152 |
|
| 153 |
with left_column:
|
|
|
|
| 164 |
|
| 165 |
with right_column:
|
| 166 |
display_videos_and_info(lang_code, t)
|
| 167 |
+
|
| 168 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 169 |
|
| 170 |
def login_form(lang_code, t):
|
| 171 |
with st.form("login_form"):
|