Update src/frontend/app.py
Browse files- src/frontend/app.py +39 -6
src/frontend/app.py
CHANGED
@@ -210,6 +210,39 @@ st.markdown("""
|
|
210 |
justify-content: center;
|
211 |
text-align: center;
|
212 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
.main {
|
214 |
padding: 2rem;
|
215 |
}
|
@@ -884,12 +917,12 @@ def show_healthcare_prediction():
|
|
884 |
|
885 |
with col1:
|
886 |
st.markdown("""
|
887 |
-
<div class="
|
888 |
-
<div class="
|
889 |
<img src="https://img.icons8.com/color/96/000000/dna-helix.png" style="margin: 20px 0;">
|
890 |
</div>
|
891 |
<div class="model-title">Diabetes Prediction</div>
|
892 |
-
<div class="
|
893 |
Assess the risk of diabetes based on health metrics and patient history.
|
894 |
</div>
|
895 |
</div>
|
@@ -900,12 +933,12 @@ def show_healthcare_prediction():
|
|
900 |
|
901 |
with col2:
|
902 |
st.markdown("""
|
903 |
-
<div class="
|
904 |
-
<div class="
|
905 |
<img src="https://img.icons8.com/color/96/000000/microscope.png" style="margin: 20px 0;">
|
906 |
</div>
|
907 |
<div class="model-title">Liver Disease Prediction</div>
|
908 |
-
<div class="
|
909 |
Evaluate liver health and disease risk based on patient data and lab results.
|
910 |
</div>
|
911 |
</div>
|
|
|
210 |
justify-content: center;
|
211 |
text-align: center;
|
212 |
}
|
213 |
+
.healthcare-card {
|
214 |
+
padding: 20px;
|
215 |
+
border-radius: 10px;
|
216 |
+
background-color: #1e2130;
|
217 |
+
border: 1px solid #2c3153;
|
218 |
+
margin: 10px 0;
|
219 |
+
transition: transform 0.3s;
|
220 |
+
height: 300px; /* Fixed height for both cards */
|
221 |
+
display: flex;
|
222 |
+
flex-direction: column;
|
223 |
+
justify-content: space-between;
|
224 |
+
}
|
225 |
+
|
226 |
+
.healthcare-card:hover {
|
227 |
+
transform: translateY(-5px);
|
228 |
+
border-color: #4c78a8;
|
229 |
+
cursor: pointer;
|
230 |
+
}
|
231 |
+
|
232 |
+
.healthcare-description {
|
233 |
+
font-size: 16px;
|
234 |
+
color: #ccc;
|
235 |
+
margin: 15px 0;
|
236 |
+
text-align: center;
|
237 |
+
flex-grow: 1; /* Allow description to take available space */
|
238 |
+
}
|
239 |
+
|
240 |
+
.healthcare-icon {
|
241 |
+
display: flex;
|
242 |
+
justify-content: center;
|
243 |
+
align-items: center;
|
244 |
+
margin: 20px 0;
|
245 |
+
}
|
246 |
.main {
|
247 |
padding: 2rem;
|
248 |
}
|
|
|
917 |
|
918 |
with col1:
|
919 |
st.markdown("""
|
920 |
+
<div class="healthcare-card">
|
921 |
+
<div class="healthcare-icon">
|
922 |
<img src="https://img.icons8.com/color/96/000000/dna-helix.png" style="margin: 20px 0;">
|
923 |
</div>
|
924 |
<div class="model-title">Diabetes Prediction</div>
|
925 |
+
<div class="healthcare-description">
|
926 |
Assess the risk of diabetes based on health metrics and patient history.
|
927 |
</div>
|
928 |
</div>
|
|
|
933 |
|
934 |
with col2:
|
935 |
st.markdown("""
|
936 |
+
<div class="healthcare-card">
|
937 |
+
<div class="healthcare-icon">
|
938 |
<img src="https://img.icons8.com/color/96/000000/microscope.png" style="margin: 20px 0;">
|
939 |
</div>
|
940 |
<div class="model-title">Liver Disease Prediction</div>
|
941 |
+
<div class="healthcare-description">
|
942 |
Evaluate liver health and disease risk based on patient data and lab results.
|
943 |
</div>
|
944 |
</div>
|