Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -187,29 +187,29 @@ st.markdown(
|
|
| 187 |
unsafe_allow_html=True,
|
| 188 |
)
|
| 189 |
|
| 190 |
-
#
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 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("""
|