code-slicer commited on
Commit
df7fc6c
Β·
verified Β·
1 Parent(s): 06f6921

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -23
app.py CHANGED
@@ -187,29 +187,29 @@ st.markdown(
187
  unsafe_allow_html=True,
188
  )
189
 
190
- # # Unsplash 이미지: source.unsplash.com은 사진 ID둜 직접 이미지λ₯Ό μ„œλΉ™ν•©λ‹ˆλ‹€.
191
- # BG_URL = "https://unsplash.com/ko/%EC%82%AC%EC%A7%84/%ED%91%B8%EB%A5%B8-%ED%95%98%EB%8A%98%EC%9D%84-%EB%82%98%EB%8A%94-%EB%8C%80%ED%98%95-%EB%B9%84%ED%96%89%EA%B8%B0-72Q4qUGGAbU" # ν•΄μƒλ„λŠ” μ›ν•˜μ‹œλŠ” λŒ€λ‘œ μ‘°μ •
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)
213
 
214
  # ── P κΈ€κΌ΄ 크기 14 px ───────────────────────────────────
215
  st.markdown("""
 
187
  unsafe_allow_html=True,
188
  )
189
 
190
+ # Unsplash 이미지: source.unsplash.com은 사진 ID둜 직접 이미지λ₯Ό μ„œλΉ™ν•©λ‹ˆλ‹€.
191
+ BG_URL = "https://plus.unsplash.com/premium_photo-1679830513869-cd3648acb1db?q=80&w=2127&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" # ν•΄μƒλ„λŠ” μ›ν•˜μ‹œλŠ” λŒ€λ‘œ μ‘°μ •
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)
213
 
214
  # ── P κΈ€κΌ΄ 크기 14 px ───────────────────────────────────
215
  st.markdown("""