Rathapoom commited on
Commit
7eacd33
·
verified ·
1 Parent(s): fa36dd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
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.image("GenExam.png", width=200) # Assuming the image is saved as logo.png
 
 
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:")