Update pages/introds.py
Browse files- pages/introds.py +1 -40
pages/introds.py
CHANGED
@@ -4,46 +4,7 @@ import numpy
|
|
4 |
st.markdown("<h1 style='text-align: center; color: Balck;'>Introduction To Data Science</h1>", unsafe_allow_html=True)
|
5 |
st.markdown("<h2 style='color: Black;'>CSS background </h2>", unsafe_allow_html=True)
|
6 |
st.markdown(
|
7 |
-
"<p style='font-size: 16px; color: Blue; font-style: italic;'>"
|
8 |
-
|
9 |
-
# CSS for styling with the background image
|
10 |
-
custom_css = """
|
11 |
-
<style>
|
12 |
-
/* General styling for the image */
|
13 |
-
.styled-image {
|
14 |
-
max-width: 100%; /* Ensure the image is responsive */
|
15 |
-
height: auto; /* Maintain aspect ratio */
|
16 |
-
border-radius: 15px; /* Rounded corners */
|
17 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
|
18 |
-
border: 5px solid #ffffff; /* Optional border with white color */
|
19 |
-
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
|
20 |
-
}
|
21 |
-
|
22 |
-
/* Hover effect */
|
23 |
-
.styled-image:hover {
|
24 |
-
transform: scale(1.05); /* Slight zoom effect */
|
25 |
-
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
|
26 |
-
border-color: #4caf50; /* Change border color on hover */
|
27 |
-
}
|
28 |
-
|
29 |
-
/* Caption styling */
|
30 |
-
.image-container {
|
31 |
-
text-align: center;
|
32 |
-
margin: 20px 0;
|
33 |
-
}
|
34 |
-
|
35 |
-
.image-caption {
|
36 |
-
margin-top: 10px;
|
37 |
-
font-size: 1rem; /* Adjust font size */
|
38 |
-
color: #555; /* Gray color for caption text */
|
39 |
-
font-style: italic;
|
40 |
-
}
|
41 |
-
</style>
|
42 |
-
"""
|
43 |
-
# Apply custom CSS
|
44 |
-
st.markdown(custom_css, unsafe_allow_html=True)
|
45 |
-
# Page Title
|
46 |
-
st.markdown("<h1> Data science </h1>", unsafe_allow_html=True)
|
47 |
# Section: What is Data Science?
|
48 |
st.markdown("""
|
49 |
<div class="section">
|
|
|
4 |
st.markdown("<h1 style='text-align: center; color: Balck;'>Introduction To Data Science</h1>", unsafe_allow_html=True)
|
5 |
st.markdown("<h2 style='color: Black;'>CSS background </h2>", unsafe_allow_html=True)
|
6 |
st.markdown(
|
7 |
+
"<p style='font-size: 16px; color: Blue; font-style: italic;'>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
# Section: What is Data Science?
|
9 |
st.markdown("""
|
10 |
<div class="section">
|