trohith89 commited on
Commit
c22ed3f
·
verified ·
1 Parent(s): d7fa8a9

Update pages/3_EDA_and_Feature_Engineering.py

Browse files
pages/3_EDA_and_Feature_Engineering.py CHANGED
@@ -18,12 +18,10 @@ st.markdown(
18
  <style>
19
  .stApp {{
20
  background-image: url("{background_image_url}");
21
- background-size: cover; /* Ensures the image covers the full screen */
22
- background-position: center; /* Centers the background image */
 
23
  background-attachment: fixed; /* Keeps the background fixed as you scroll */
24
- height: 100vh;
25
- width: 100%;
26
- overflow: hidden; /* Prevents any overflow that might cause the background image to zoom */
27
  }}
28
 
29
  /* Semi-transparent overlay */
@@ -32,20 +30,37 @@ st.markdown(
32
  position: absolute;
33
  top: 0;
34
  left: 0;
35
- width: 70%;
36
- height: 70%;
37
  background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
38
  z-index: -1;
39
  }}
40
- /* Styling the content to ensure text visibility */
 
 
 
 
 
 
 
 
41
  .stMarkdown {{
42
- color: white; /* White text to ensure visibility */
43
- font-size: 100px; /* Adjust font size for better readability */
 
44
  }}
45
  </style>
 
 
 
 
 
 
 
46
  """,
47
  unsafe_allow_html=True
48
  )
 
49
  # Title of the Streamlit app
50
  st.title("Exploratory Data Analysis (EDA) on Agoda Hotel Dataset")
51
 
 
18
  <style>
19
  .stApp {{
20
  background-image: url("{background_image_url}");
21
+ background-size: auto 100%; /* Ensures the image stretches vertically to cover the height */
22
+ background-repeat: repeat-y; /* Repeats the image vertically */
23
+ background-position: center; /* Centers the repeated images horizontally */
24
  background-attachment: fixed; /* Keeps the background fixed as you scroll */
 
 
 
25
  }}
26
 
27
  /* Semi-transparent overlay */
 
30
  position: absolute;
31
  top: 0;
32
  left: 0;
33
+ width: 100%;
34
+ height: 100%;
35
  background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
36
  z-index: -1;
37
  }}
38
+
39
+ /* Container to center elements and limit width */
40
+ .content-container {{
41
+ max-width: 70%; /* Limit content width to 70% */
42
+ margin: 0 auto; /* Center the container */
43
+ padding: 20px; /* Add some padding for spacing */
44
+ }}
45
+
46
+ /* Styling the markdown content */
47
  .stMarkdown {{
48
+ color: white; /* White text for better visibility */
49
+ font-size: 20px; /* Adjust font size */
50
+ text-align: center; /* Center align text */
51
  }}
52
  </style>
53
+
54
+ <div class="content-container">
55
+ <div class="stMarkdown">
56
+ <!-- Replace this with your app's content -->
57
+ <p>Insert your app's content here. All elements will be aligned to the center and limited to 70% width.</p>
58
+ </div>
59
+ </div>
60
  """,
61
  unsafe_allow_html=True
62
  )
63
+
64
  # Title of the Streamlit app
65
  st.title("Exploratory Data Analysis (EDA) on Agoda Hotel Dataset")
66