Spaces:
Sleeping
Sleeping
Update pages/4_Data and types of data.py
Browse files
pages/4_Data and types of data.py
CHANGED
|
@@ -3,13 +3,13 @@ import pandas as pd
|
|
| 3 |
|
| 4 |
st.markdown("""
|
| 5 |
<style>
|
| 6 |
-
/* Set a
|
| 7 |
body {
|
| 8 |
-
background
|
| 9 |
}
|
| 10 |
/* Style for main title */
|
| 11 |
h1 {
|
| 12 |
-
color: #
|
| 13 |
font-family: 'Arial', sans-serif;
|
| 14 |
font-weight: 700;
|
| 15 |
text-align: center;
|
|
@@ -17,30 +17,30 @@ st.markdown("""
|
|
| 17 |
}
|
| 18 |
/* Style for headers */
|
| 19 |
h2 {
|
| 20 |
-
color: #
|
| 21 |
font-family: 'Arial', sans-serif;
|
| 22 |
font-weight: 600;
|
| 23 |
margin-top: 30px;
|
| 24 |
}
|
| 25 |
|
| 26 |
/* Style for subheaders */
|
| 27 |
-
|
| 28 |
-
color: #
|
| 29 |
font-family: 'Arial', sans-serif;
|
| 30 |
font-weight: 500;
|
| 31 |
margin-top: 20px;
|
| 32 |
}
|
| 33 |
.custom-subheader {
|
| 34 |
-
color: #
|
| 35 |
font-family: 'Arial', sans-serif;
|
| 36 |
font-weight: 600;
|
| 37 |
margin-bottom: 15px;
|
| 38 |
}
|
| 39 |
/* Paragraph styling */
|
| 40 |
p {
|
| 41 |
-
font-family: '
|
| 42 |
line-height: 1.8;
|
| 43 |
-
color: #
|
| 44 |
margin-bottom: 20px;
|
| 45 |
}
|
| 46 |
/* List styling with checkmark bullets */
|
|
@@ -49,29 +49,29 @@ st.markdown("""
|
|
| 49 |
padding-left: 20px;
|
| 50 |
}
|
| 51 |
.icon-bullet li {
|
| 52 |
-
font-family: '
|
| 53 |
font-size: 1.1em;
|
| 54 |
margin-bottom: 10px;
|
| 55 |
-
color: #
|
| 56 |
}
|
| 57 |
.icon-bullet li::before {
|
| 58 |
content: "✔️";
|
| 59 |
padding-right: 10px;
|
| 60 |
-
color: #
|
| 61 |
}
|
| 62 |
/* Sidebar styling */
|
| 63 |
.sidebar .sidebar-content {
|
| 64 |
-
background-color: #
|
| 65 |
border-radius: 10px;
|
| 66 |
padding: 15px;
|
| 67 |
}
|
| 68 |
.sidebar h2 {
|
| 69 |
-
color: #
|
| 70 |
}
|
| 71 |
-
|
| 72 |
@media only screen and (max-width: 600px) {
|
| 73 |
.stApp {
|
| 74 |
-
background
|
| 75 |
}
|
| 76 |
h1, h2 {
|
| 77 |
font-size: 18px; /* Adjust font size for mobile devices */
|
|
@@ -81,6 +81,7 @@ st.markdown("""
|
|
| 81 |
""", unsafe_allow_html=True)
|
| 82 |
|
| 83 |
|
|
|
|
| 84 |
st.title("DATA")
|
| 85 |
st.subheader("What is data?...")
|
| 86 |
st.markdown("""
|
|
|
|
| 3 |
|
| 4 |
st.markdown("""
|
| 5 |
<style>
|
| 6 |
+
/* Set a dark gradient background */
|
| 7 |
body {
|
| 8 |
+
background: linear-gradient(135deg, #2a2a72, #009ffd);
|
| 9 |
}
|
| 10 |
/* Style for main title */
|
| 11 |
h1 {
|
| 12 |
+
color: #F4A300;
|
| 13 |
font-family: 'Arial', sans-serif;
|
| 14 |
font-weight: 700;
|
| 15 |
text-align: center;
|
|
|
|
| 17 |
}
|
| 18 |
/* Style for headers */
|
| 19 |
h2 {
|
| 20 |
+
color: #fff;
|
| 21 |
font-family: 'Arial', sans-serif;
|
| 22 |
font-weight: 600;
|
| 23 |
margin-top: 30px;
|
| 24 |
}
|
| 25 |
|
| 26 |
/* Style for subheaders */
|
| 27 |
+
h3 {
|
| 28 |
+
color: #00b8d4;
|
| 29 |
font-family: 'Arial', sans-serif;
|
| 30 |
font-weight: 500;
|
| 31 |
margin-top: 20px;
|
| 32 |
}
|
| 33 |
.custom-subheader {
|
| 34 |
+
color: #F4A300;
|
| 35 |
font-family: 'Arial', sans-serif;
|
| 36 |
font-weight: 600;
|
| 37 |
margin-bottom: 15px;
|
| 38 |
}
|
| 39 |
/* Paragraph styling */
|
| 40 |
p {
|
| 41 |
+
font-family: 'Times New Roman', serif;
|
| 42 |
line-height: 1.8;
|
| 43 |
+
color: #FFFFFF; /* Keeping the text readable on dark backgrounds */
|
| 44 |
margin-bottom: 20px;
|
| 45 |
}
|
| 46 |
/* List styling with checkmark bullets */
|
|
|
|
| 49 |
padding-left: 20px;
|
| 50 |
}
|
| 51 |
.icon-bullet li {
|
| 52 |
+
font-family: 'Times New Roman', serif;
|
| 53 |
font-size: 1.1em;
|
| 54 |
margin-bottom: 10px;
|
| 55 |
+
color: #FFFFFF; /* Keep text normal for better contrast */
|
| 56 |
}
|
| 57 |
.icon-bullet li::before {
|
| 58 |
content: "✔️";
|
| 59 |
padding-right: 10px;
|
| 60 |
+
color: #F4A300;
|
| 61 |
}
|
| 62 |
/* Sidebar styling */
|
| 63 |
.sidebar .sidebar-content {
|
| 64 |
+
background-color: #ffffff;
|
| 65 |
border-radius: 10px;
|
| 66 |
padding: 15px;
|
| 67 |
}
|
| 68 |
.sidebar h2 {
|
| 69 |
+
color: #495057;
|
| 70 |
}
|
| 71 |
+
/* Mobile specific styles */
|
| 72 |
@media only screen and (max-width: 600px) {
|
| 73 |
.stApp {
|
| 74 |
+
background: linear-gradient(135deg, #2a2a72, #009ffd);
|
| 75 |
}
|
| 76 |
h1, h2 {
|
| 77 |
font-size: 18px; /* Adjust font size for mobile devices */
|
|
|
|
| 81 |
""", unsafe_allow_html=True)
|
| 82 |
|
| 83 |
|
| 84 |
+
|
| 85 |
st.title("DATA")
|
| 86 |
st.subheader("What is data?...")
|
| 87 |
st.markdown("""
|