diff --git a/src/app/pages/poi-list-page/poi-list-page.component.css b/src/app/pages/poi-list-page/poi-list-page.component.css index f1a1bec..2a73b67 100644 --- a/src/app/pages/poi-list-page/poi-list-page.component.css +++ b/src/app/pages/poi-list-page/poi-list-page.component.css @@ -1,9 +1,13 @@ .banner-background { height: 300px; /* o la altura que desees */ width: 100%; /* o el ancho que desees */ - background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(0, 70, 221, 0.5)), + background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(0, 74, 234, 0.5)), url("/assets/img/background2.jpg"); background-repeat: no-repeat; background-size: cover; background-position: center; /* centra la imagen en el contenedor */ } + +.scroll { + overflow-x: auto; +} \ No newline at end of file diff --git a/src/app/pages/poi-list-page/poi-list-page.component.html b/src/app/pages/poi-list-page/poi-list-page.component.html index a43c56d..91abea5 100644 --- a/src/app/pages/poi-list-page/poi-list-page.component.html +++ b/src/app/pages/poi-list-page/poi-list-page.component.html @@ -11,15 +11,15 @@

Puntos de Interés

-
-

* Lista de sitios dentro de un límite geográfico o cerca de una latitud/longitud específica.

- +
+
+

* Lista de sitios dentro de un límite geográfico o cerca de una latitud/longitud específica.

-
+
@@ -49,27 +49,27 @@

Puntos de Interés

@@ -88,18 +88,19 @@
No se han encontrado puntos de interés, por favor intenta nuevamente.

Página {{currentPage}} de {{totalPages}}

-
- - +
- - + + +
+
Ha ocurrido un problema al obtener los puntos de interés, por favor intenta nuevamente.
\ No newline at end of file diff --git a/src/app/pages/poi-list-page/poi-list-page.component.ts b/src/app/pages/poi-list-page/poi-list-page.component.ts index 93acb27..efa3569 100644 --- a/src/app/pages/poi-list-page/poi-list-page.component.ts +++ b/src/app/pages/poi-list-page/poi-list-page.component.ts @@ -11,6 +11,7 @@ import { PoiService } from 'src/app/services/poi.service'; export class PoiListPageComponent implements OnInit { loading = false; + showError = false; currentPage = 1; itemsPerPage = 15; @@ -43,6 +44,7 @@ export class PoiListPageComponent implements OnInit { }, error: error => { console.error(error); + this.showError = true; this.loading = false; } }); diff --git a/src/styles.css b/src/styles.css index 37dbbc2..698555c 100644 --- a/src/styles.css +++ b/src/styles.css @@ -28,7 +28,7 @@ footer { } .table-container { - border-radius: 10px; + border-radius: 7px; overflow: hidden; box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.1); } @@ -244,7 +244,7 @@ table tr:hover { h1 { font-size: 3.5em; font-weight: bold; - color: black; + color: rgb(255, 255, 255); } /* Para títulos medianos, como encabezados de sección */ @@ -340,3 +340,25 @@ input:focus { input::placeholder { color: #a1a1a1; } + +/* ===== Scrollbar CSS ===== */ +/* Firefox */ +* { + scrollbar-width: auto; + scrollbar-color: #414141 #ffffff; +} + +/* Chrome, Edge, and Safari */ +*::-webkit-scrollbar { + width: 16px; +} + +*::-webkit-scrollbar-track { + background: #ffffff; +} + +*::-webkit-scrollbar-thumb { + background-color: #414141; + border-radius: 10px; + border: 3px solid #ffffff; +}
- {{poi.ID}} + {{poi?.ID || '-'}} - {{poi.StatusType.Title}} + {{poi?.StatusType?.Title || '-'}} - {{poi.OperatorInfo.Title}} + {{poi?.OperatorInfo?.Title || '-'}} - {{poi.Connections.length}} + {{poi?.Connections?.length || '-'}} - Latitud: {{poi.AddressInfo.Latitude}}
+ Latitud: {{poi?.AddressInfo?.Latitude || '-'}}
- Longitud: {{poi.AddressInfo.Longitude}} + Longitud: {{poi?.AddressInfo?.Longitude || '-'}}
- {{poi.AddressInfo.Country.Title}} + {{poi?.AddressInfo?.Country?.Title || '-'}}