Spaces:
Running
Running
Update homepage.py
Browse files- homepage.py +23 -24
homepage.py
CHANGED
@@ -15,6 +15,11 @@ def display_homepage():
|
|
15 |
st.markdown(
|
16 |
f"""
|
17 |
<style>
|
|
|
|
|
|
|
|
|
|
|
18 |
.image-container {{
|
19 |
position: relative;
|
20 |
margin-top: -70px;
|
@@ -27,9 +32,25 @@ def display_homepage():
|
|
27 |
.content-container {{
|
28 |
margin-top: 50px; /* Adjust margin-top to make space for the image */
|
29 |
}}
|
30 |
-
/* Set background to white */
|
31 |
.main {{
|
32 |
-
background-color: #ffffff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
}}
|
34 |
</style>
|
35 |
<div class="image-container">
|
@@ -52,28 +73,6 @@ def display_homepage():
|
|
52 |
""", unsafe_allow_html=True
|
53 |
)
|
54 |
|
55 |
-
st.markdown(
|
56 |
-
"""
|
57 |
-
<style>
|
58 |
-
.stButton>button {
|
59 |
-
background-color: #2980b9;
|
60 |
-
color: white;
|
61 |
-
font-size: 18px;
|
62 |
-
font-weight: bold;
|
63 |
-
padding: 15px 30px;
|
64 |
-
border-radius: 8px;
|
65 |
-
border: none;
|
66 |
-
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
|
67 |
-
cursor: pointer;
|
68 |
-
transition: background-color 0.3s ease;
|
69 |
-
}
|
70 |
-
.stButton>button:hover {
|
71 |
-
background-color: #3498db;
|
72 |
-
}
|
73 |
-
</style>
|
74 |
-
""", unsafe_allow_html=True
|
75 |
-
)
|
76 |
-
|
77 |
col1, col2 = st.columns([1, 1])
|
78 |
with col1:
|
79 |
if st.button("Start Chat", key="start_chat_button"):
|
|
|
15 |
st.markdown(
|
16 |
f"""
|
17 |
<style>
|
18 |
+
/* Set background color to white for both light and dark mode */
|
19 |
+
body {{
|
20 |
+
background-color: #ffffff !important;
|
21 |
+
}}
|
22 |
+
|
23 |
.image-container {{
|
24 |
position: relative;
|
25 |
margin-top: -70px;
|
|
|
32 |
.content-container {{
|
33 |
margin-top: 50px; /* Adjust margin-top to make space for the image */
|
34 |
}}
|
|
|
35 |
.main {{
|
36 |
+
background-color: #ffffff !important;
|
37 |
+
}}
|
38 |
+
|
39 |
+
/* Text and button styling */
|
40 |
+
.stButton>button {{
|
41 |
+
background-color: #2980b9;
|
42 |
+
color: white;
|
43 |
+
font-size: 18px;
|
44 |
+
font-weight: bold;
|
45 |
+
padding: 15px 30px;
|
46 |
+
border-radius: 8px;
|
47 |
+
border: none;
|
48 |
+
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
|
49 |
+
cursor: pointer;
|
50 |
+
transition: background-color 0.3s ease;
|
51 |
+
}}
|
52 |
+
.stButton>button:hover {{
|
53 |
+
background-color: #3498db;
|
54 |
}}
|
55 |
</style>
|
56 |
<div class="image-container">
|
|
|
73 |
""", unsafe_allow_html=True
|
74 |
)
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
col1, col2 = st.columns([1, 1])
|
77 |
with col1:
|
78 |
if st.button("Start Chat", key="start_chat_button"):
|