Mpavan45 commited on
Commit
d8e0bfd
verified
1 Parent(s): c739694

Update Home.py

Browse files

![DALL路E 2025-01-24 18.27.23 - A detailed and professional landscape image representing a dataset about hotel room listings. The scene includes a digital interface with graphs, char.jpeg](https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/8O1ZKtL2Fy7LM4wXzjtjE.jpeg)

Files changed (1) hide show
  1. Home.py +14 -8
Home.py CHANGED
@@ -9,7 +9,7 @@ st.markdown("""
9
  """, unsafe_allow_html=True)
10
  st.markdown(
11
  """
12
- <img src="https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/vBi2udNoFPwTnjec40wbw.jpeg" width="100%" />
13
  """,
14
  unsafe_allow_html=True
15
  )
@@ -49,9 +49,10 @@ st.markdown(
49
  <style>
50
  .stApp {{
51
  background-image: url("{background_image_url}");
52
- background-size: cover;
53
- background-position: repeat;
54
- height: 100vh;
 
55
  }}
56
 
57
  /* Semi-transparent overlay */
@@ -65,11 +66,17 @@ st.markdown(
65
  background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
66
  z-index: -1;
67
  }}
68
-
69
- /* Styling the content to ensure text visibility */
 
 
 
 
 
 
70
  .stMarkdown {{
71
  color: white; /* White text to ensure visibility */
72
- font-size: 30px; /* Adjust font size for better readability */
73
  }}
74
  </style>
75
  """,
@@ -79,4 +86,3 @@ st.markdown(
79
 
80
 
81
 
82
-
 
9
  """, unsafe_allow_html=True)
10
  st.markdown(
11
  """
12
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/8O1ZKtL2Fy7LM4wXzjtjE.jpeg" width="100%" />
13
  """,
14
  unsafe_allow_html=True
15
  )
 
49
  <style>
50
  .stApp {{
51
  background-image: url("{background_image_url}");
52
+ background-size: 60% auto; /* Ensure the image width is 100% of the screen, and the height scales proportionally */
53
+ background-repeat: repeat-y; /* Repeat only vertically */
54
+ background-position: top center; /* Start repeating from the top center */
55
+ background-attachment: fixed; /* Keeps the background fixed as you scroll */
56
  }}
57
 
58
  /* Semi-transparent overlay */
 
66
  background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
67
  z-index: -1;
68
  }}
69
+
70
+ /* Container to center elements and limit width */
71
+ .content-container {{
72
+ max-width: 70%; /* Limit content width to 70% */
73
+ margin: 0 auto; /* Center the container */
74
+ padding: 50px; /* Add some padding for spacing */
75
+ }}
76
+ /* Styling the markdown content */
77
  .stMarkdown {{
78
  color: white; /* White text to ensure visibility */
79
+ font-size: 100px; /* Adjust font size for readability */
80
  }}
81
  </style>
82
  """,
 
86
 
87
 
88