Update pages/introds.py
Browse files- pages/introds.py +11 -40
pages/introds.py
CHANGED
@@ -3,48 +3,19 @@ import streamlit as st
|
|
3 |
# Static background image URL
|
4 |
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
<style>
|
9 |
-
|
10 |
-
background:
|
11 |
-
rgba(0, 0, 0, 0.6),
|
12 |
-
rgba(0, 0, 0, 0.6)
|
13 |
-
),
|
14 |
-
url("https://cdn.pixabay.com/photo/2023/11/23/17/47/sunset-7704533_1280.jpg") no-repeat center center fixed;
|
15 |
background-size: cover;
|
16 |
-
|
17 |
-
|
18 |
-
}
|
19 |
-
h1 {
|
20 |
-
color: #ffffff;
|
21 |
-
text-align: center;
|
22 |
-
font-size: 2rem;
|
23 |
-
margin-top: 2px;
|
24 |
-
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
|
25 |
-
}
|
26 |
-
.division {
|
27 |
-
margin: 20px auto;
|
28 |
-
padding: 20px;
|
29 |
-
background: rgba(255, 255, 255, 0.1);
|
30 |
-
border-radius: 10px;
|
31 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
32 |
-
}
|
33 |
-
.division h2 {
|
34 |
-
color: #ffffff;
|
35 |
-
margin-bottom: 10px;
|
36 |
-
font-size: 2rem;
|
37 |
-
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
|
38 |
}
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
</style>
|
44 |
-
"""
|
45 |
-
|
46 |
-
# Inject CSS into Streamlit app
|
47 |
-
st.markdown(custom_css, unsafe_allow_html=True)
|
48 |
|
49 |
# Header Section
|
50 |
st.markdown("<h1>Welcome to Data Science</h1>", unsafe_allow_html=True)
|
|
|
3 |
# Static background image URL
|
4 |
|
5 |
|
6 |
+
st.markdown(
|
7 |
+
"""
|
8 |
+
<style>
|
9 |
+
.stApp {
|
10 |
+
background-image: url("https://huggingface.co/spaces/ronakreddy18/Zerotoheroinmachinelearning/resolve/main/ai-technology-brain-background-digital-transformation-concept.jpg");
|
|
|
|
|
|
|
|
|
11 |
background-size: cover;
|
12 |
+
background-repeat: no-repeat;
|
13 |
+
background-attachment: fixed;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
+
</style>
|
16 |
+
""",
|
17 |
+
unsafe_allow_html=True
|
18 |
+
)
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
# Header Section
|
21 |
st.markdown("<h1>Welcome to Data Science</h1>", unsafe_allow_html=True)
|