Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|
| 199 |
-
background: url('{BG_URL}') center/cover no-repeat;
|
| 200 |
-
opacity: .
|
| 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 |
-
.
|
| 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)
|