Ubuntu commited on
Commit ·
bafc827
1
Parent(s): 37d04dc
Simplify login: place logos directly in login-container
Browse files- Remove logos-container wrapper div
- Place img tags directly inside login-container
- Both logos with width='120' for same size
- Container already centered with text-align: center
- Title and subtitle in same markdown block
- modules/ui/ui.py +17 -20
modules/ui/ui.py
CHANGED
|
@@ -100,15 +100,16 @@ def login_page(lang_code, t):
|
|
| 100 |
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
| 101 |
max-width: 400px;
|
| 102 |
width: 100%;
|
|
|
|
| 103 |
}
|
| 104 |
|
| 105 |
-
/* Logos container */
|
| 106 |
-
.
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
}
|
| 113 |
|
| 114 |
/* Título */
|
|
@@ -174,22 +175,19 @@ def login_page(lang_code, t):
|
|
| 174 |
</style>
|
| 175 |
""", unsafe_allow_html=True)
|
| 176 |
|
| 177 |
-
# Container principal
|
| 178 |
-
st.markdown('<div class="login-container">', unsafe_allow_html=True)
|
| 179 |
-
|
| 180 |
-
# Logos
|
| 181 |
st.markdown("""
|
| 182 |
-
<div class="
|
| 183 |
-
<img src="https://huggingface.co/spaces/AIdeaText/v5Prod/resolve/main/assets/img/AIdeaText_Logo_vectores.png"
|
| 184 |
-
|
| 185 |
-
<img src="https://huggingface.co/spaces/AIdeaText/v5Prod/resolve/main/assets/img/socialmedia/nvidia/nvidia-inception-program-badge-rgb-for-screen.png"
|
| 186 |
-
width="120" alt="NVIDIA Logo">
|
| 187 |
</div>
|
| 188 |
""", unsafe_allow_html=True)
|
| 189 |
|
| 190 |
-
# Título
|
| 191 |
-
st.markdown(
|
| 192 |
-
|
|
|
|
|
|
|
| 193 |
|
| 194 |
# Formulario de login
|
| 195 |
with st.form("login_form", clear_on_submit=False):
|
|
@@ -212,7 +210,6 @@ def login_page(lang_code, t):
|
|
| 212 |
else:
|
| 213 |
st.error("❌ Invalid credentials. Please try again.")
|
| 214 |
|
| 215 |
-
st.markdown('</div>', unsafe_allow_html=True)
|
| 216 |
|
| 217 |
# Footer NVIDIA
|
| 218 |
st.markdown("""
|
|
|
|
| 100 |
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
| 101 |
max-width: 400px;
|
| 102 |
width: 100%;
|
| 103 |
+
text-align: center;
|
| 104 |
}
|
| 105 |
|
| 106 |
+
/* Logos directamente en el container */
|
| 107 |
+
.login-container img {
|
| 108 |
+
width: 120px;
|
| 109 |
+
height: auto;
|
| 110 |
+
margin: 0 15px 2rem 15px;
|
| 111 |
+
display: inline-block;
|
| 112 |
+
vertical-align: middle;
|
| 113 |
}
|
| 114 |
|
| 115 |
/* Título */
|
|
|
|
| 175 |
</style>
|
| 176 |
""", unsafe_allow_html=True)
|
| 177 |
|
| 178 |
+
# Container principal con logos
|
|
|
|
|
|
|
|
|
|
| 179 |
st.markdown("""
|
| 180 |
+
<div class="login-container">
|
| 181 |
+
<img src="https://huggingface.co/spaces/AIdeaText/v5Prod/resolve/main/assets/img/AIdeaText_Logo_vectores.png" width="120" alt="AIdeaText Logo">
|
| 182 |
+
<img src="https://huggingface.co/spaces/AIdeaText/v5Prod/resolve/main/assets/img/socialmedia/nvidia/nvidia-inception-program-badge-rgb-for-screen.png" width="120" alt="NVIDIA Logo">
|
|
|
|
|
|
|
| 183 |
</div>
|
| 184 |
""", unsafe_allow_html=True)
|
| 185 |
|
| 186 |
+
# Título y subtítulo
|
| 187 |
+
st.markdown("""
|
| 188 |
+
<h1 class="login-title">AIdeaText</h1>
|
| 189 |
+
<p class="login-subtitle">Cognitive Development Platform</p>
|
| 190 |
+
""", unsafe_allow_html=True)
|
| 191 |
|
| 192 |
# Formulario de login
|
| 193 |
with st.form("login_form", clear_on_submit=False):
|
|
|
|
| 210 |
else:
|
| 211 |
st.error("❌ Invalid credentials. Please try again.")
|
| 212 |
|
|
|
|
| 213 |
|
| 214 |
# Footer NVIDIA
|
| 215 |
st.markdown("""
|