Updated day-cards
Browse files- src/streamlit_app.py +8 -9
src/streamlit_app.py
CHANGED
|
@@ -186,15 +186,14 @@ def render_city_card(loc: dict, forecast: dict):
|
|
| 186 |
tmax = daily["temperature_2m_max"][i]
|
| 187 |
tmin = daily["temperature_2m_min"][i]
|
| 188 |
precip = daily["precipitation_sum"][i]
|
| 189 |
-
days_html += f"""
|
| 190 |
-
<div class="day-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
"""
|
| 198 |
|
| 199 |
st.markdown(f"""
|
| 200 |
<div class="city-card">
|
|
|
|
| 186 |
tmax = daily["temperature_2m_max"][i]
|
| 187 |
tmin = daily["temperature_2m_min"][i]
|
| 188 |
precip = daily["precipitation_sum"][i]
|
| 189 |
+
days_html += f"<div class=\"day-card\">"
|
| 190 |
+
days_html += f"<div class=\"day-label\">{weekday}<br>{date[5:]}</div>"
|
| 191 |
+
days_html += f"<div class=\"day-icon\">{icon}</div>"
|
| 192 |
+
days_html += f"<div class=\"day-temp-max\">{tmax}°</div>"
|
| 193 |
+
days_html += f"<div class=\"day-temp-min\">{tmin}°</div>"
|
| 194 |
+
days_html += f"<div class=\"day-precip\">💧 {precip}mm</div>""
|
| 195 |
+
days_html += f"</div>"
|
| 196 |
+
|
|
|
|
| 197 |
|
| 198 |
st.markdown(f"""
|
| 199 |
<div class="city-card">
|