Mpavan45 commited on
Commit
376587a
·
verified ·
1 Parent(s): 533d5a6

Update pages/2_Data Cleaning and Processing .py

Browse files
pages/2_Data Cleaning and Processing .py CHANGED
@@ -34,15 +34,15 @@ else:
34
  # Define the URL of the background image (use your own image URL)
35
  # Apply custom CSS for the background image and overlay
36
  background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/MI0hTKaf1a2EmxUfA6TsV.png"
37
-
38
  st.markdown(
39
  f"""
40
  <style>
41
  .stApp {{
42
  background-image: url("{background_image_url}");
43
- background-size: cover;
44
- background-position: repeat;
45
- height: 100vh;
 
46
  }}
47
 
48
  /* Semi-transparent overlay */
@@ -56,13 +56,64 @@ st.markdown(
56
  background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
57
  z-index: -1;
58
  }}
59
-
60
- /* Styling the content to ensure text visibility */
 
 
 
 
 
 
61
  .stMarkdown {{
62
- color: black; /* White text to ensure visibility */
63
- font-size: 30px; /* Adjust font size for better readability */
64
  }}
65
  </style>
66
  """,
67
  unsafe_allow_html=True
68
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  # Define the URL of the background image (use your own image URL)
35
  # Apply custom CSS for the background image and overlay
36
  background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/MI0hTKaf1a2EmxUfA6TsV.png"
 
37
  st.markdown(
38
  f"""
39
  <style>
40
  .stApp {{
41
  background-image: url("{background_image_url}");
42
+ background-size: 100% auto; /* Ensure the image width is 100% of the screen, and the height scales proportionally */
43
+ background-repeat: repeat-y; /* Repeat only vertically */
44
+ background-position: top center; /* Start repeating from the top center */
45
+ background-attachment: fixed; /* Keeps the background fixed as you scroll */
46
  }}
47
 
48
  /* Semi-transparent overlay */
 
56
  background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
57
  z-index: -1;
58
  }}
59
+
60
+ /* Container to center elements and limit width */
61
+ .content-container {{
62
+ max-width: 70%; /* Limit content width to 70% */
63
+ margin: 0 auto; /* Center the container */
64
+ padding: 50px; /* Add some padding for spacing */
65
+ }}
66
+ /* Styling the markdown content */
67
  .stMarkdown {{
68
+ color: white; /* White text to ensure visibility */
69
+ font-size: 100px; /* Adjust font size for readability */
70
  }}
71
  </style>
72
  """,
73
  unsafe_allow_html=True
74
+ )
75
+ st.markdown(
76
+ """
77
+ <style>
78
+ .custom-button {
79
+ display: inline-block;
80
+ padding: 5px 10px;
81
+ font-size: 14px;
82
+ color: #ffffff;
83
+ background-color: #4CAF50;
84
+ border: none;
85
+ border-radius: 5px;
86
+ text-align: center;
87
+ text-decoration: none;
88
+ transition: background-color 0.3s ease, transform 0.2s ease;
89
+ cursor: pointer;
90
+ }
91
+ .custom-button:hover {
92
+ background-color: #45a049;
93
+ transform: scale(1.05);
94
+ }
95
+ .button-container {
96
+ display: flex;
97
+ justify-content: space-between;
98
+ margin-top: 20px;
99
+ }
100
+ </style>
101
+ """,
102
+ unsafe_allow_html=True,
103
+ )
104
+ import streamlit as st
105
+
106
+ st.title("Data Cleaning and Processing")
107
+
108
+ st.write("Perform data cleaning and preprocessing tasks here.")
109
+
110
+ # Navigation Buttons
111
+ st.markdown(
112
+ """
113
+ <div class="button-container">
114
+ <a href="pages/1_Hotel_Data" target="_self" class="custom-button">Previous ⏮️</a>
115
+ <a href="pages/3_EDA_and_Feature_Engineering" target="_self" class="custom-button">Next ⏭️</a>
116
+ </div>
117
+ """,
118
+ unsafe_allow_html=True,
119
+ )