Update modules/ui/ui.py
Browse files- modules/ui/ui.py +3 -9
modules/ui/ui.py
CHANGED
@@ -118,12 +118,11 @@ def main():
|
|
118 |
|
119 |
logger.info(f"Saliendo de main() - Estado final de la sesi贸n: {st.session_state}")
|
120 |
|
121 |
-
|
122 |
def login_register_page(lang_code, t):
|
123 |
# 1. Contenedor para el logo
|
124 |
with st.container():
|
125 |
-
# CSS personalizado
|
126 |
-
st.
|
127 |
<style>
|
128 |
[alt=Logo] {
|
129 |
height: 8rem;
|
@@ -133,14 +132,12 @@ def login_register_page(lang_code, t):
|
|
133 |
display: block;
|
134 |
}
|
135 |
|
136 |
-
/* Contenedor del logo */
|
137 |
.logo-container {
|
138 |
text-align: center;
|
139 |
padding: 1rem 0;
|
140 |
margin-bottom: 2rem;
|
141 |
}
|
142 |
|
143 |
-
/* Ajustes para el contenedor de login */
|
144 |
.login-container {
|
145 |
margin-top: 2rem;
|
146 |
}
|
@@ -152,12 +149,9 @@ def login_register_page(lang_code, t):
|
|
152 |
|
153 |
# 2. Contenedor principal para login y contenido
|
154 |
with st.container():
|
155 |
-
# Divisi贸n en columnas para login/registro y videos
|
156 |
left_column, right_column = st.columns([1, 3])
|
157 |
|
158 |
-
# Columna izquierda: Login y Registro
|
159 |
with left_column:
|
160 |
-
# Tabs para login y registro
|
161 |
tab1, tab2 = st.tabs([
|
162 |
t.get("login", "Iniciar Sesi贸n"),
|
163 |
t.get("register", "Registrarse")
|
@@ -169,10 +163,10 @@ def login_register_page(lang_code, t):
|
|
169 |
with tab2:
|
170 |
register_form(lang_code, t)
|
171 |
|
172 |
-
# Columna derecha: Videos e informaci贸n
|
173 |
with right_column:
|
174 |
display_videos_and_info(lang_code, t)
|
175 |
|
|
|
176 |
def login_form(lang_code, t):
|
177 |
with st.form("login_form"):
|
178 |
username = st.text_input(t.get("email", "Correo electr贸nico"))
|
|
|
118 |
|
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 |
# 1. Contenedor para el logo
|
123 |
with st.container():
|
124 |
+
# CSS personalizado y contenedor del logo
|
125 |
+
st.markdown("""
|
126 |
<style>
|
127 |
[alt=Logo] {
|
128 |
height: 8rem;
|
|
|
132 |
display: block;
|
133 |
}
|
134 |
|
|
|
135 |
.logo-container {
|
136 |
text-align: center;
|
137 |
padding: 1rem 0;
|
138 |
margin-bottom: 2rem;
|
139 |
}
|
140 |
|
|
|
141 |
.login-container {
|
142 |
margin-top: 2rem;
|
143 |
}
|
|
|
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:
|
|
|
155 |
tab1, tab2 = st.tabs([
|
156 |
t.get("login", "Iniciar Sesi贸n"),
|
157 |
t.get("register", "Registrarse")
|
|
|
163 |
with tab2:
|
164 |
register_form(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"):
|
172 |
username = st.text_input(t.get("email", "Correo electr贸nico"))
|