Spaces:
Sleeping
Sleeping
Update pages/0_Problem Statement.py
Browse files- pages/0_Problem Statement.py +18 -1
pages/0_Problem Statement.py
CHANGED
|
@@ -24,7 +24,7 @@ st.markdown("
|
| 25 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/HjW7hOgulTijaArK4lMUL.jpeg"
|
| 26 |
|
| 27 |
-
# Apply custom CSS for the background image
|
| 28 |
st.markdown(
|
| 29 |
f"""
|
| 30 |
<style>
|
|
@@ -34,6 +34,23 @@ st.markdown(
|
|
| 34 |
background-position: center;
|
| 35 |
height: 100vh;
|
| 36 |
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
</style>
|
| 38 |
""",
|
| 39 |
unsafe_allow_html=True
|
|
|
|
| 24 |
# Define the URL of the background image (use your own image URL)
|
| 25 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/HjW7hOgulTijaArK4lMUL.jpeg"
|
| 26 |
|
| 27 |
+
# Apply custom CSS for the background image and overlay
|
| 28 |
st.markdown(
|
| 29 |
f"""
|
| 30 |
<style>
|
|
|
|
| 34 |
background-position: center;
|
| 35 |
height: 100vh;
|
| 36 |
}}
|
| 37 |
+
|
| 38 |
+
/* Semi-transparent overlay */
|
| 39 |
+
.stApp::before {{
|
| 40 |
+
content: "";
|
| 41 |
+
position: absolute;
|
| 42 |
+
top: 0;
|
| 43 |
+
left: 0;
|
| 44 |
+
width: 100%;
|
| 45 |
+
height: 100%;
|
| 46 |
+
background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
|
| 47 |
+
z-index: -1;
|
| 48 |
+
}}
|
| 49 |
+
|
| 50 |
+
/* Styling the content to ensure text visibility */
|
| 51 |
+
.stMarkdown {{
|
| 52 |
+
color: white; /* Ensure text is white for contrast */
|
| 53 |
+
}}
|
| 54 |
</style>
|
| 55 |
""",
|
| 56 |
unsafe_allow_html=True
|