Spaces:
Sleeping
Sleeping
Update pages/1_Hotel_Data.py
Browse files- pages/1_Hotel_Data.py +18 -2
pages/1_Hotel_Data.py
CHANGED
|
@@ -58,8 +58,7 @@ else:
|
|
| 58 |
st.info("No dataset found. Please upload a CSV file.")
|
| 59 |
# Define the URL of the background image (use your own image URL)
|
| 60 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/HjW7hOgulTijaArK4lMUL.jpeg"
|
| 61 |
-
|
| 62 |
-
# Apply custom CSS for the background image
|
| 63 |
st.markdown(
|
| 64 |
f"""
|
| 65 |
<style>
|
|
@@ -69,6 +68,23 @@ st.markdown(
|
|
| 69 |
background-position: center;
|
| 70 |
height: 100vh;
|
| 71 |
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
</style>
|
| 73 |
""",
|
| 74 |
unsafe_allow_html=True
|
|
|
|
| 58 |
st.info("No dataset found. Please upload a CSV file.")
|
| 59 |
# Define the URL of the background image (use your own image URL)
|
| 60 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/HjW7hOgulTijaArK4lMUL.jpeg"
|
| 61 |
+
# Apply custom CSS for the background image and overlay
|
|
|
|
| 62 |
st.markdown(
|
| 63 |
f"""
|
| 64 |
<style>
|
|
|
|
| 68 |
background-position: center;
|
| 69 |
height: 100vh;
|
| 70 |
}}
|
| 71 |
+
|
| 72 |
+
/* Semi-transparent overlay */
|
| 73 |
+
.stApp::before {{
|
| 74 |
+
content: "";
|
| 75 |
+
position: absolute;
|
| 76 |
+
top: 0;
|
| 77 |
+
left: 0;
|
| 78 |
+
width: 100%;
|
| 79 |
+
height: 100%;
|
| 80 |
+
background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
|
| 81 |
+
z-index: -1;
|
| 82 |
+
}}
|
| 83 |
+
|
| 84 |
+
/* Styling the content to ensure text visibility */
|
| 85 |
+
.stMarkdown {{
|
| 86 |
+
color: white; /* Ensure text is white for contrast */
|
| 87 |
+
}}
|
| 88 |
</style>
|
| 89 |
""",
|
| 90 |
unsafe_allow_html=True
|