code-slicer commited on
Commit
8143a69
·
verified ·
1 Parent(s): d6fb8eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -216,6 +216,11 @@ def apply_background():
216
  # ✅ 이미지 배경 (메인 컨텐츠 영역에만 고정 배경 적용)
217
  st.markdown(f"""
218
  <style>
 
 
 
 
 
219
  [data-testid="stAppViewContainer"] {{
220
  background: url('{url}') center / cover no-repeat fixed;
221
  position: relative; /* 오버레이의 기준점이 되도록 설정 */
 
216
  # ✅ 이미지 배경 (메인 컨텐츠 영역에만 고정 배경 적용)
217
  st.markdown(f"""
218
  <style>
219
+ /* 상단·배경 투명 처리 */
220
+ header[data-testid="stHeader"],
221
+ [data-testid="stAppViewContainer"],
222
+ main, section.main {{ background: transparent !important; }}
223
+
224
  [data-testid="stAppViewContainer"] {{
225
  background: url('{url}') center / cover no-repeat fixed;
226
  position: relative; /* 오버레이의 기준점이 되도록 설정 */