Implement geolocation features and enhance UI for location handling

This commit is contained in:
xavs
2026-05-18 11:38:20 +02:00
parent 355729ddcf
commit c2fe21d9e8
5 changed files with 133 additions and 10 deletions
+17 -1
View File
@@ -1,5 +1,21 @@
<div class="weather-app">
@if (loading()) {
@if (gettingLocation()) {
<div class="loading">
<div class="spinner"></div>
<p>📍 Obtenint la teva ubicació...</p>
</div>
}
@if (locationDenied() && !loading()) {
<div class="location-denied">
<p>⚠️ Permisos d'ubicació denegats. Mostrant el temps de Lliçà d'Amunt.</p>
<button class="location-button" (click)="requestLocation()">
📍 Activar ubicació GPS
</button>
</div>
}
@if (loading() && !gettingLocation()) {
<div class="loading">
<div class="spinner"></div>
<p>Carregant informació meteorològica...</p>