Harika22 commited on
Commit
7e5b28a
·
verified ·
1 Parent(s): a76eeba

Update pages/4_Data and types of data.py

Browse files
Files changed (1) hide show
  1. pages/4_Data and types of data.py +40 -70
pages/4_Data and types of data.py CHANGED
@@ -3,113 +3,83 @@ import pandas as pd
3
 
4
  st.markdown("""
5
  <style>
6
- /* General body styling */
7
  body {
8
- background-color: #1e1e2f; /* Soft dark background */
9
- color: #d4d4dc; /* Light gray text for readability */
10
- font-family: 'Arial', sans-serif;
11
  }
12
-
13
- /* Main title styling */
14
  h1 {
15
- color: #ff6f61; /* Vibrant coral for attention */
16
- font-family: 'Roboto', sans-serif;
17
- font-size: 2.5em;
18
- font-weight: bold;
19
  text-align: center;
20
- margin: 20px 0;
21
  }
22
-
23
- /* Subheading styling */
24
- h2, h3 {
25
- font-family: 'Roboto', sans-serif;
26
- color: #61dafb; /* Soft blue for headers */
27
- margin-top: 20px;
28
- margin-bottom: 15px;
29
- }
30
-
31
  h2 {
32
- font-size: 2em;
 
33
  font-weight: 600;
 
34
  }
35
-
 
36
  h3 {
37
- font-size: 1.6em;
 
38
  font-weight: 500;
 
 
 
 
 
 
 
39
  }
40
-
41
  /* Paragraph styling */
42
  p {
43
  font-family: 'Georgia', serif;
44
  line-height: 1.8;
45
- font-size: 1.1em;
46
- color: #e6e6fa; /* Soft lavender for readability */
47
  margin-bottom: 20px;
48
  }
49
-
50
- /* List styling */
51
- ul.icon-bullet {
52
  list-style-type: none;
53
  padding-left: 20px;
54
  }
55
-
56
- ul.icon-bullet li {
57
  font-size: 1.1em;
58
  margin-bottom: 10px;
59
- color: #dcdcdc; /* Neutral gray for subtlety */
60
  }
61
-
62
- ul.icon-bullet li::before {
63
- content: "\2714"; /* Checkmark */
64
  padding-right: 10px;
65
- color: #32cd32; /* Bright green for positivity */
66
  }
67
-
68
  /* Sidebar styling */
69
  .sidebar .sidebar-content {
70
- background-color: #282c34; /* Dark slate for sidebar */
71
  border-radius: 10px;
72
  padding: 15px;
73
- color: #ffffff; /* Light text for contrast */
74
  }
75
-
76
  .sidebar h2 {
77
- color: #ffa500; /* Warm orange for headings */
78
- font-family: 'Roboto', sans-serif;
79
- }
80
-
81
- /* Button styling */
82
- button {
83
- background-color: #ff6f61; /* Vibrant coral */
84
- color: #ffffff; /* White text */
85
- font-size: 1em;
86
- border: none;
87
- padding: 10px 20px;
88
- border-radius: 5px;
89
- cursor: pointer;
90
- transition: background-color 0.3s;
91
  }
92
-
93
- button:hover {
94
- background-color: #ff4500; /* Slightly darker coral */
95
- }
96
-
97
- /* Mobile responsive styling */
98
  @media only screen and (max-width: 600px) {
99
- h1 {
100
- font-size: 1.8em;
101
- }
102
-
103
- h2, h3 {
104
- font-size: 1.5em;
105
  }
106
-
107
- p {
108
- font-size: 1em;
109
  }
110
  }
111
  </style>
112
- """, unsafe_allow_html=True)
 
113
 
114
  st.title("DATA")
115
  st.subheader("What is data?...")
 
3
 
4
  st.markdown("""
5
  <style>
6
+ /* Set a vibrant background color */
7
  body {
8
+ background-color: #1e1e1e; /* Dark gray background */
 
 
9
  }
10
+ /* Style for main title */
 
11
  h1 {
12
+ color: #FF5733; /* Bright orange */
13
+ font-family: 'Arial', sans-serif;
14
+ font-weight: 700;
 
15
  text-align: center;
16
+ margin-bottom: 25px;
17
  }
18
+ /* Style for headers */
 
 
 
 
 
 
 
 
19
  h2 {
20
+ color: #F1C40F; /* Golden yellow */
21
+ font-family: 'Arial', sans-serif;
22
  font-weight: 600;
23
+ margin-top: 30px;
24
  }
25
+
26
+ /* Style for subheaders */
27
  h3 {
28
+ color: #58D68D; /* Light green */
29
+ font-family: 'Arial', sans-serif;
30
  font-weight: 500;
31
+ margin-top: 20px;
32
+ }
33
+ .custom-subheader {
34
+ color: #3498DB; /* Bright blue */
35
+ font-family: 'Arial', sans-serif;
36
+ font-weight: 600;
37
+ margin-bottom: 15px;
38
  }
 
39
  /* Paragraph styling */
40
  p {
41
  font-family: 'Georgia', serif;
42
  line-height: 1.8;
43
+ color: #EAEAEA; /* Light gray for text */
 
44
  margin-bottom: 20px;
45
  }
46
+ /* List styling with checkmark bullets */
47
+ .icon-bullet {
 
48
  list-style-type: none;
49
  padding-left: 20px;
50
  }
51
+ .icon-bullet li {
52
+ font-family: 'Georgia', serif;
53
  font-size: 1.1em;
54
  margin-bottom: 10px;
55
+ color: #D5DBDB; /* Light gray */
56
  }
57
+ .icon-bullet li::before {
58
+ content: "✔️";
 
59
  padding-right: 10px;
60
+ color: #FF5733; /* Bright orange */
61
  }
 
62
  /* Sidebar styling */
63
  .sidebar .sidebar-content {
64
+ background-color: #2C3E50; /* Dark blue-gray */
65
  border-radius: 10px;
66
  padding: 15px;
 
67
  }
 
68
  .sidebar h2 {
69
+ color: #ECF0F1; /* Light gray */
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  }
71
+ /* Mobile specific styles */
 
 
 
 
 
72
  @media only screen and (max-width: 600px) {
73
+ .stApp {
74
+ background-color: #1e1e1e; /* Dark gray background for mobile */
 
 
 
 
75
  }
76
+ h1, h2 {
77
+ font-size: 18px; /* Adjust font size for mobile devices */
 
78
  }
79
  }
80
  </style>
81
+ """, unsafe_allow_html=True)
82
+
83
 
84
  st.title("DATA")
85
  st.subheader("What is data?...")