Ubuntu Claude Sonnet 4.5 commited on
Commit
92f5f99
·
1 Parent(s): 2df9e57

Move logos inside white container and hide top-right element

Browse files

- Logos now inside login-container for better visual hierarchy
- Hide all Streamlit UI elements (header, toolbar, status widgets)
- Remove empty rectangle in top-right corner
- Single cohesive white card with logos at top

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. modules/ui/ui.py +30 -23
modules/ui/ui.py CHANGED
@@ -76,18 +76,26 @@ def login_page(lang_code, t):
76
  st.markdown("""
77
  <style>
78
  /* Ocultar TODO de Streamlit */
79
- #MainMenu {visibility: hidden;}
80
- footer {visibility: hidden;}
81
- header {visibility: hidden;}
82
- .stDeployButton {visibility: hidden;}
83
- [data-testid="stHeader"] {visibility: hidden;}
84
- [data-testid="stToolbar"] {visibility: hidden;}
85
- section[data-testid="stSidebar"] {display: none;}
 
 
 
 
 
 
86
 
87
  /* Ocultar el cuadrado en blanco (placeholder de Streamlit) */
88
  .block-container {
89
  padding-top: 0 !important;
90
  padding-bottom: 0 !important;
 
 
91
  }
92
 
93
  /* Remover cualquier padding superior */
@@ -107,7 +115,7 @@ def login_page(lang_code, t):
107
  padding: 0 !important;
108
  }
109
 
110
- /* Container del login */
111
  .login-container {
112
  background: white;
113
  padding: 3rem;
@@ -115,6 +123,7 @@ def login_page(lang_code, t):
115
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
116
  max-width: 450px;
117
  width: 100%;
 
118
  }
119
 
120
  /* Logos container - MISMO TAMAÑO Y ALTURA */
@@ -201,23 +210,23 @@ def login_page(lang_code, t):
201
  </style>
202
  """, unsafe_allow_html=True)
203
 
204
- # Container principal
205
- st.markdown('<div class="login-container">', unsafe_allow_html=True)
206
-
207
- # Logos - MISMO TAMAÑO (height: 80px)
208
  st.markdown("""
209
- <div class="logos-container">
210
- <img src="https://huggingface.co/spaces/AIdeaText/v5Prod/resolve/main/assets/img/AIdeaText_Logo_vectores.png"
211
- alt="AIdeaText Logo">
212
- <img src="https://huggingface.co/spaces/AIdeaText/v5Prod/resolve/main/assets/img/socialmedia/nvidia/nvidia-inception-program-badge-rgb-for-screen.png"
213
- alt="NVIDIA Logo">
 
 
 
 
 
 
 
214
  </div>
215
  """, unsafe_allow_html=True)
216
 
217
- # Título
218
- st.markdown('<h1 class="login-title">AIdeaText</h1>', unsafe_allow_html=True)
219
- st.markdown('<p class="login-subtitle">Cognitive Development Platform</p>', unsafe_allow_html=True)
220
-
221
  # Formulario de login
222
  with st.form("login_form", clear_on_submit=False):
223
  username = st.text_input("Email", placeholder="your.email@institution.edu")
@@ -239,8 +248,6 @@ def login_page(lang_code, t):
239
  else:
240
  st.error("❌ Invalid credentials. Please try again.")
241
 
242
- st.markdown('</div>', unsafe_allow_html=True)
243
-
244
  # Footer NVIDIA
245
  st.markdown("""
246
  <div class="nvidia-footer">
 
76
  st.markdown("""
77
  <style>
78
  /* Ocultar TODO de Streamlit */
79
+ #MainMenu {visibility: hidden !important;}
80
+ footer {visibility: hidden !important;}
81
+ header {visibility: hidden !important;}
82
+ .stDeployButton {display: none !important;}
83
+ [data-testid="stHeader"] {display: none !important;}
84
+ [data-testid="stToolbar"] {display: none !important;}
85
+ [data-testid="stDecoration"] {display: none !important;}
86
+ [data-testid="stStatusWidget"] {display: none !important;}
87
+ section[data-testid="stSidebar"] {display: none !important;}
88
+
89
+ /* Ocultar elemento superior derecho */
90
+ .stActionButton {display: none !important;}
91
+ button[kind="header"] {display: none !important;}
92
 
93
  /* Ocultar el cuadrado en blanco (placeholder de Streamlit) */
94
  .block-container {
95
  padding-top: 0 !important;
96
  padding-bottom: 0 !important;
97
+ padding-left: 0 !important;
98
+ padding-right: 0 !important;
99
  }
100
 
101
  /* Remover cualquier padding superior */
 
115
  padding: 0 !important;
116
  }
117
 
118
+ /* Container del login - Los logos van DENTRO */
119
  .login-container {
120
  background: white;
121
  padding: 3rem;
 
123
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
124
  max-width: 450px;
125
  width: 100%;
126
+ margin: 20px;
127
  }
128
 
129
  /* Logos container - MISMO TAMAÑO Y ALTURA */
 
210
  </style>
211
  """, unsafe_allow_html=True)
212
 
213
+ # Todo en un solo bloque HTML - Logos DENTRO del container blanco
 
 
 
214
  st.markdown("""
215
+ <div class="login-container">
216
+ <!-- Logos dentro del container -->
217
+ <div class="logos-container">
218
+ <img src="https://huggingface.co/spaces/AIdeaText/v5Prod/resolve/main/assets/img/AIdeaText_Logo_vectores.png"
219
+ alt="AIdeaText Logo">
220
+ <img src="https://huggingface.co/spaces/AIdeaText/v5Prod/resolve/main/assets/img/socialmedia/nvidia/nvidia-inception-program-badge-rgb-for-screen.png"
221
+ alt="NVIDIA Logo">
222
+ </div>
223
+
224
+ <!-- Título -->
225
+ <h1 class="login-title">AIdeaText</h1>
226
+ <p class="login-subtitle">Cognitive Development Platform</p>
227
  </div>
228
  """, unsafe_allow_html=True)
229
 
 
 
 
 
230
  # Formulario de login
231
  with st.form("login_form", clear_on_submit=False):
232
  username = st.text_input("Email", placeholder="your.email@institution.edu")
 
248
  else:
249
  st.error("❌ Invalid credentials. Please try again.")
250
 
 
 
251
  # Footer NVIDIA
252
  st.markdown("""
253
  <div class="nvidia-footer">