Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,6 +28,21 @@ st.markdown("""
|
|
| 28 |
text-align: center;
|
| 29 |
padding: 10px 0;
|
| 30 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
</style>
|
| 32 |
""", unsafe_allow_html=True)
|
| 33 |
|
|
@@ -389,7 +404,9 @@ if st.session_state.username is None:
|
|
| 389 |
|
| 390 |
with col2:
|
| 391 |
# Display logo
|
| 392 |
-
st.
|
|
|
|
|
|
|
| 393 |
|
| 394 |
st.title("Login")
|
| 395 |
username_input = st.text_input("Enter your username:")
|
|
|
|
| 28 |
text-align: center;
|
| 29 |
padding: 10px 0;
|
| 30 |
}
|
| 31 |
+
|
| 32 |
+
/* เพิ่ม CSS สำหรับ container ของ logo */
|
| 33 |
+
.logo-container {
|
| 34 |
+
display: flex;
|
| 35 |
+
justify-content: center;
|
| 36 |
+
align-items: center;
|
| 37 |
+
padding: 1rem 0;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
/* ปรับ column ให้อยู่ตรงกลาง */
|
| 41 |
+
div[data-testid="column"] {
|
| 42 |
+
display: flex;
|
| 43 |
+
flex-direction: column;
|
| 44 |
+
align-items: center;
|
| 45 |
+
}
|
| 46 |
</style>
|
| 47 |
""", unsafe_allow_html=True)
|
| 48 |
|
|
|
|
| 404 |
|
| 405 |
with col2:
|
| 406 |
# Display logo
|
| 407 |
+
st.markdown('<div class="logo-container">', unsafe_allow_html=True)
|
| 408 |
+
st.image("GenExam.png", width=200)
|
| 409 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 410 |
|
| 411 |
st.title("Login")
|
| 412 |
username_input = st.text_input("Enter your username:")
|