Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,6 @@ import qrcode
|
|
| 8 |
from PIL import Image
|
| 9 |
import io
|
| 10 |
|
| 11 |
-
# 自訂 CSS 確保標題不換行、調整圖片大小、優化按鈕布局、右下角資訊並添加頒獎台樣式
|
| 12 |
# 自訂 CSS 確保標題不換行、調整圖片大小、優化按鈕布局、右下角資訊並添加頒獎台樣式
|
| 13 |
st.markdown("""
|
| 14 |
<style>
|
|
@@ -321,7 +320,10 @@ def main():
|
|
| 321 |
podium_html += f'''
|
| 322 |
<div class="podium">
|
| 323 |
<div class="podium-step second">{int(second['查詢結果'])}</div>
|
| 324 |
-
<div class="podium-label">
|
|
|
|
|
|
|
|
|
|
| 325 |
</div>
|
| 326 |
'''
|
| 327 |
else:
|
|
@@ -333,7 +335,10 @@ def main():
|
|
| 333 |
podium_html += f'''
|
| 334 |
<div class="podium">
|
| 335 |
<div class="podium-step first">{int(first['查詢結果'])}</div>
|
| 336 |
-
<div class="podium-label">
|
|
|
|
|
|
|
|
|
|
| 337 |
</div>
|
| 338 |
'''
|
| 339 |
else:
|
|
@@ -345,7 +350,10 @@ def main():
|
|
| 345 |
podium_html += f'''
|
| 346 |
<div class="podium">
|
| 347 |
<div class="podium-step third">{int(third['查詢結果'])}</div>
|
| 348 |
-
<div class="podium-label">
|
|
|
|
|
|
|
|
|
|
| 349 |
</div>
|
| 350 |
'''
|
| 351 |
else:
|
|
|
|
| 8 |
from PIL import Image
|
| 9 |
import io
|
| 10 |
|
|
|
|
| 11 |
# 自訂 CSS 確保標題不換行、調整圖片大小、優化按鈕布局、右下角資訊並添加頒獎台樣式
|
| 12 |
st.markdown("""
|
| 13 |
<style>
|
|
|
|
| 320 |
podium_html += f'''
|
| 321 |
<div class="podium">
|
| 322 |
<div class="podium-step second">{int(second['查詢結果'])}</div>
|
| 323 |
+
<div class="podium-label">
|
| 324 |
+
<div>{second['姓名']}</div>
|
| 325 |
+
<div>{second['幸運號碼']}</div>
|
| 326 |
+
</div>
|
| 327 |
</div>
|
| 328 |
'''
|
| 329 |
else:
|
|
|
|
| 335 |
podium_html += f'''
|
| 336 |
<div class="podium">
|
| 337 |
<div class="podium-step first">{int(first['查詢結果'])}</div>
|
| 338 |
+
<div class="podium-label">
|
| 339 |
+
<div>{first['姓名']}</div>
|
| 340 |
+
<div>{first['幸運號碼']}</div>
|
| 341 |
+
</div>
|
| 342 |
</div>
|
| 343 |
'''
|
| 344 |
else:
|
|
|
|
| 350 |
podium_html += f'''
|
| 351 |
<div class="podium">
|
| 352 |
<div class="podium-step third">{int(third['查詢結果'])}</div>
|
| 353 |
+
<div class="podium-label">
|
| 354 |
+
<div>{third['姓名']}</div>
|
| 355 |
+
<div>{third['幸運號碼']}</div>
|
| 356 |
+
</div>
|
| 357 |
</div>
|
| 358 |
'''
|
| 359 |
else:
|