Update pages/5_Conclusion.py
Browse files- pages/5_Conclusion.py +43 -0
pages/5_Conclusion.py
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/7ZCmkouk1pS37_kREZmYJ.jpeg"
|
| 2 |
+
|
| 3 |
+
# Apply custom CSS for the background image and overlay
|
| 4 |
+
st.markdown(
|
| 5 |
+
f"""
|
| 6 |
+
<style>
|
| 7 |
+
.stApp {{
|
| 8 |
+
background-image: url("{background_image_url}");
|
| 9 |
+
background-size: auto; /* Ensures the image retains its original size */
|
| 10 |
+
background-repeat: repeat; /* Makes the image repeat to cover the entire background */
|
| 11 |
+
background-position: top left; /* Starts repeating from the top-left corner */
|
| 12 |
+
background-attachment: fixed; /* Keeps the background fixed as you scroll */
|
| 13 |
+
}}
|
| 14 |
+
|
| 15 |
+
/* Semi-transparent overlay */
|
| 16 |
+
.stApp::before {{
|
| 17 |
+
content: "";
|
| 18 |
+
position: absolute;
|
| 19 |
+
top: 0;
|
| 20 |
+
left: 0;
|
| 21 |
+
width: 100%;
|
| 22 |
+
height: 100%;
|
| 23 |
+
background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
|
| 24 |
+
z-index: -1;
|
| 25 |
+
}}
|
| 26 |
+
|
| 27 |
+
/* Container to center elements and limit width */
|
| 28 |
+
.content-container {{
|
| 29 |
+
max-width: 70%; /* Limit content width to 70% */
|
| 30 |
+
margin: 0 auto; /* Center the container */
|
| 31 |
+
padding: 50px; /* Add some padding for spacing */
|
| 32 |
+
}}
|
| 33 |
+
|
| 34 |
+
/* Styling the markdown content */
|
| 35 |
+
.stMarkdown {{
|
| 36 |
+
color: white; /* White text to ensure visibility */
|
| 37 |
+
font-size: 100px; /* Adjust font size for readability */
|
| 38 |
+
# text-align: center; /* Center align text */
|
| 39 |
+
}}
|
| 40 |
+
</style>
|
| 41 |
+
""",
|
| 42 |
+
unsafe_allow_html=True
|
| 43 |
+
)
|