code-slicer commited on
Commit
957a99c
ยท
verified ยท
1 Parent(s): df7fc6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -10
app.py CHANGED
@@ -192,21 +192,29 @@ BG_URL = "https://plus.unsplash.com/premium_photo-1679830513869-cd3648acb1db?q=8
192
 
193
  st.markdown(f"""
194
  <style>
195
- /* ๋ณธ๋ฌธ ์œ„์—, ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง€๋งŒ ๋‹ด๊ธด ๊ณ ์ • ๋ ˆ์ด์–ด๋ฅผ ์˜ฌ๋ฆฝ๋‹ˆ๋‹ค */
196
- .stApp::before {{
 
 
 
 
 
 
 
197
  content: "";
198
- position: fixed; inset: 0;
199
- background: url('{BG_URL}') center/cover no-repeat;
200
- opacity: .5; /* โ† ํˆฌ๋ช…๋„ 50% */
201
- pointer-events: none; /* ํด๋ฆญ ๋ง‰์ง€ ์•Š๊ธฐ */
 
202
  z-index: 0;
203
  }}
204
- /* ์ปจํ…์ธ ๋Š” ๊ทธ ์œ„๋กœ */
205
- .block-container {{ position: relative; z-index: 1; }}
206
 
207
- /* ๋ชจ๋ฐ”์ผ(์ผ๋ถ€ ๋ธŒ๋ผ์šฐ์ €)์—์„œ ๊ณ ์ • ๋ฐฐ๊ฒฝ ์ด์Šˆ ๋Œ€์‘ */
208
  @media (max-width: 768px){{
209
- .stApp::before{{ background-attachment: initial; }}
210
  }}
211
  </style>
212
  """, unsafe_allow_html=True)
 
192
 
193
  st.markdown(f"""
194
  <style>
195
+ /* 0) ์ด์ „์— ๊น”์•„ ๋‘” '์ „์ฒด ๋ฐฐ๊ฒฝ' ๋น„ํ™œ์„ฑํ™”(์žˆ๋‹ค๋ฉด) */
196
+ .stApp::before {{ content: none !important; }}
197
+
198
+ /* 1) ๊ฐ€์šด๋ฐ ์ปฌ๋Ÿผ(.block-container)๋งŒ ๋ฐฐ๊ฒฝ ์‚ฌ์šฉ */
199
+ .block-container {{
200
+ position: relative;
201
+ min-height: 100vh; /* ํ™”๋ฉด ๋†’์ด ๋งŒํผ๋งŒ(=๋นจ๊ฐ„ ๋ฐ•์Šค ๋†’์ด ๋А๋‚Œ) */
202
+ }}
203
+ .block-container::before {{
204
  content: "";
205
+ position: absolute; inset: 0; /* ์ปฌ๋Ÿผ ์˜์—ญ์—๋งŒ ๋ฎ๊ธฐ */
206
+ background: url('{BG_URL}') center / cover no-repeat;
207
+ opacity: .8; /* ํˆฌ๋ช…๋„ 80% */
208
+ pointer-events: none;
209
+ border-radius: 0px; /* ๋ชจ์„œ๋ฆฌ ๋‘ฅ๊ธ€๊ฒŒ(์›ํ•˜๋ฉด ์ œ๊ฑฐ) */
210
  z-index: 0;
211
  }}
212
+ /* 2) ์‹ค์ œ ์ฝ˜ํ…์ธ ๊ฐ€ ๋ฐฐ๊ฒฝ ์œ„์— ์˜ค๋„๋ก */
213
+ .block-container > * {{ position: relative; z-index: 1; }}
214
 
215
+ /* ๋ชจ๋ฐ”์ผ์—์„  ๊ณ ์ • ๋ฐฐ๊ฒฝ ์ด์Šˆ ๋ฐฉ์ง€ */
216
  @media (max-width: 768px){{
217
+ .block-container::before{{ background-attachment: initial; }}
218
  }}
219
  </style>
220
  """, unsafe_allow_html=True)