Update Home.py
Browse files
Home.py
CHANGED
|
@@ -105,15 +105,12 @@ st.markdown(
|
|
| 105 |
unsafe_allow_html=True
|
| 106 |
)
|
| 107 |
|
|
|
|
|
|
|
|
|
|
| 108 |
st.markdown(
|
| 109 |
"""
|
| 110 |
<style>
|
| 111 |
-
.button-container {
|
| 112 |
-
display: flex;
|
| 113 |
-
justify-content: center;
|
| 114 |
-
gap: 20px;
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
.next-btn {
|
| 118 |
padding: 10px 20px;
|
| 119 |
font-size: 16px;
|
|
@@ -125,24 +122,18 @@ st.markdown(
|
|
| 125 |
text-align: center;
|
| 126 |
width: 120px;
|
| 127 |
transition: all 0.3s ease;
|
| 128 |
-
}
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
.next-btn {
|
| 132 |
background: linear-gradient(to right, #6a11cb, #2575fc);
|
| 133 |
}
|
| 134 |
-
|
| 135 |
.next-btn:hover {
|
| 136 |
transform: scale(1.1);
|
| 137 |
border-color: white;
|
| 138 |
}
|
| 139 |
</style>
|
| 140 |
-
<div class="button-container">
|
| 141 |
-
<button class="next-btn" id="next-btn">Next</button>
|
| 142 |
-
</div>
|
| 143 |
""",
|
| 144 |
unsafe_allow_html=True
|
| 145 |
)
|
| 146 |
|
| 147 |
-
|
|
|
|
| 148 |
st.switch_page("pages/0_Problem-Statement_and_Aim.py")
|
|
|
|
| 105 |
unsafe_allow_html=True
|
| 106 |
)
|
| 107 |
|
| 108 |
+
import streamlit as st
|
| 109 |
+
|
| 110 |
+
# Apply custom CSS for the button style
|
| 111 |
st.markdown(
|
| 112 |
"""
|
| 113 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
.next-btn {
|
| 115 |
padding: 10px 20px;
|
| 116 |
font-size: 16px;
|
|
|
|
| 122 |
text-align: center;
|
| 123 |
width: 120px;
|
| 124 |
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
background: linear-gradient(to right, #6a11cb, #2575fc);
|
| 126 |
}
|
| 127 |
+
|
| 128 |
.next-btn:hover {
|
| 129 |
transform: scale(1.1);
|
| 130 |
border-color: white;
|
| 131 |
}
|
| 132 |
</style>
|
|
|
|
|
|
|
|
|
|
| 133 |
""",
|
| 134 |
unsafe_allow_html=True
|
| 135 |
)
|
| 136 |
|
| 137 |
+
# Add a styled button using streamlit's button widget
|
| 138 |
+
if st.button("Next", key="next_page", help="Go to the next page"):
|
| 139 |
st.switch_page("pages/0_Problem-Statement_and_Aim.py")
|