Spaces:
Build error
Build error
Update pages/introds.py
Browse files- pages/introds.py +4 -9
pages/introds.py
CHANGED
|
@@ -1,14 +1,9 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
|
| 5 |
-
"https://cdn.pixabay.com/photo/2023/11/23/17/47/sunset-7704533_1280.jpg"
|
| 6 |
-
]
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
selected_bg = st.selectbox("Choose a Background:", bg_options)
|
| 10 |
-
|
| 11 |
-
# Dynamic CSS based on the selected background
|
| 12 |
custom_css = f"""
|
| 13 |
<style>
|
| 14 |
html, body, [data-testid="stAppViewContainer"] {{
|
|
@@ -16,7 +11,7 @@ custom_css = f"""
|
|
| 16 |
rgba(0, 0, 0, 0.6),
|
| 17 |
rgba(0, 0, 0, 0.6)
|
| 18 |
),
|
| 19 |
-
url("{
|
| 20 |
background-size: cover;
|
| 21 |
font-family: Arial, sans-serif;
|
| 22 |
color: #ffffff;
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
# Static background image URL
|
| 4 |
+
background_url = "https://cdn.pixabay.com/photo/2023/11/23/17/47/sunset-7704533_1280.jpg"
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
# Dynamic CSS
|
|
|
|
|
|
|
|
|
|
| 7 |
custom_css = f"""
|
| 8 |
<style>
|
| 9 |
html, body, [data-testid="stAppViewContainer"] {{
|
|
|
|
| 11 |
rgba(0, 0, 0, 0.6),
|
| 12 |
rgba(0, 0, 0, 0.6)
|
| 13 |
),
|
| 14 |
+
url("{background_url}") no-repeat center center fixed;
|
| 15 |
background-size: cover;
|
| 16 |
font-family: Arial, sans-serif;
|
| 17 |
color: #ffffff;
|