Spaces:
Running
Running
Update modules/ui/ui.py
Browse files- modules/ui/ui.py +13 -43
modules/ui/ui.py
CHANGED
|
@@ -119,53 +119,23 @@ 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 |
-
# 1. Contenedor superior para el logo
|
| 125 |
-
st.markdown("""
|
| 126 |
-
<style>
|
| 127 |
-
.logo-container {
|
| 128 |
-
height: 3rem; # Puedes ajustar este valor seg煤n necesites
|
| 129 |
-
max-width: 100%;
|
| 130 |
-
object-fit: contain;
|
| 131 |
-
margin: 0.5rem 0;
|
| 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.jpg" 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 |
-
|
| 154 |
-
tab1, tab2 = st.tabs([
|
| 155 |
-
t.get("login", "Iniciar Sesi贸n"),
|
| 156 |
-
t.get("register", "Registrarse")
|
| 157 |
-
])
|
| 158 |
|
| 159 |
-
|
| 160 |
-
|
|
|
|
| 161 |
|
| 162 |
-
|
| 163 |
-
|
| 164 |
|
| 165 |
-
with
|
| 166 |
-
|
| 167 |
-
|
| 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 |
+
# st.title("AIdeaText")
|
| 123 |
+
# st.write(t.get("welcome_message", "Bienvenido. Por favor, inicie sesi贸n o reg铆strese."))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
|
| 125 |
+
left_column, right_column = st.columns([1, 3])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
|
| 127 |
+
with left_column:
|
| 128 |
+
tab1, tab2 = st.tabs([t.get("login", "Iniciar Sesi贸n"),
|
| 129 |
+
t.get("register", "Registrarse")])
|
| 130 |
|
| 131 |
+
with tab1:
|
| 132 |
+
login_form(lang_code, t)
|
| 133 |
|
| 134 |
+
with tab2:
|
| 135 |
+
register_form(lang_code, t)
|
| 136 |
+
|
| 137 |
+
with right_column:
|
| 138 |
+
display_videos_and_info(lang_code, t)
|
| 139 |
|
| 140 |
def login_form(lang_code, t):
|
| 141 |
with st.form("login_form"):
|