Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -364,7 +364,7 @@ def fetch_local_weather():
|
|
| 364 |
</div>
|
| 365 |
</div>
|
| 366 |
<style>
|
| 367 |
-
.weather-theme {
|
| 368 |
animation: backgroundAnimation 10s infinite alternate;
|
| 369 |
border: 1px solid #ddd;
|
| 370 |
border-radius: 10px;
|
|
@@ -374,25 +374,25 @@ def fetch_local_weather():
|
|
| 374 |
background-size: 400% 400%;
|
| 375 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
| 376 |
transition: box-shadow 0.3s ease, background-color 0.3s ease;
|
| 377 |
-
}
|
| 378 |
-
.weather-theme:hover {
|
| 379 |
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
|
| 380 |
background-position: 100% 100%;
|
| 381 |
-
}
|
| 382 |
-
@keyframes backgroundAnimation {
|
| 383 |
-
0% { background-position: 0% 50%; }
|
| 384 |
-
100% { background-position: 100% 50%; }
|
| 385 |
-
}
|
| 386 |
-
.weather-content {
|
| 387 |
display: flex;
|
| 388 |
align-items: center;
|
| 389 |
-
}
|
| 390 |
-
.weather-icon {
|
| 391 |
flex: 1;
|
| 392 |
-
}
|
| 393 |
-
.weather-details {
|
| 394 |
flex: 3;
|
| 395 |
-
}
|
| 396 |
</style>
|
| 397 |
"""
|
| 398 |
return weather_html
|
|
|
|
| 364 |
</div>
|
| 365 |
</div>
|
| 366 |
<style>
|
| 367 |
+
.weather-theme {{
|
| 368 |
animation: backgroundAnimation 10s infinite alternate;
|
| 369 |
border: 1px solid #ddd;
|
| 370 |
border-radius: 10px;
|
|
|
|
| 374 |
background-size: 400% 400%;
|
| 375 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
| 376 |
transition: box-shadow 0.3s ease, background-color 0.3s ease;
|
| 377 |
+
}}
|
| 378 |
+
.weather-theme:hover {{
|
| 379 |
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
|
| 380 |
background-position: 100% 100%;
|
| 381 |
+
}}
|
| 382 |
+
@keyframes backgroundAnimation {{
|
| 383 |
+
0% {{ background-position: 0% 50%; }}
|
| 384 |
+
100% {{ background-position: 100% 50%; }}
|
| 385 |
+
}}
|
| 386 |
+
.weather-content {{
|
| 387 |
display: flex;
|
| 388 |
align-items: center;
|
| 389 |
+
}}
|
| 390 |
+
.weather-icon {{
|
| 391 |
flex: 1;
|
| 392 |
+
}}
|
| 393 |
+
.weather-details {{
|
| 394 |
flex: 3;
|
| 395 |
+
}}
|
| 396 |
</style>
|
| 397 |
"""
|
| 398 |
return weather_html
|