AIdeaText commited on
Commit
ac22a6e
verified
1 Parent(s): e3e2d8c

Update modules/ui/ui.py

Browse files
Files changed (1) hide show
  1. 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
- # 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;
129
- max-width: 100%;
130
- object-fit: contain;
131
- margin: 1rem auto;
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
- }
144
- </style>
145
- <div class="logo-container">
146
- <img src="./assets/img/logo_92x92.png" alt="Logo">
147
- </div>
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"):