From 20da533902b9e14ca31ce9e2499dc7097c6f782c Mon Sep 17 00:00:00 2001 From: Tatiana Villa Ema Date: Mon, 16 Feb 2026 20:07:33 +0100 Subject: [PATCH] mejorando apis para utilizar fechas --- eltiempo/css/estilos.css | 12 +++ eltiempo/estadisticas.html | 66 ---------------- eltiempo/index.html | 145 ++++++++++-------------------------- eltiempo/index20260216.html | 135 +++++++++++++++++++++++++++++++++ eltiempo/js/estadisticas.js | 2 +- 5 files changed, 189 insertions(+), 171 deletions(-) delete mode 100644 eltiempo/estadisticas.html create mode 100644 eltiempo/index20260216.html diff --git a/eltiempo/css/estilos.css b/eltiempo/css/estilos.css index 37c71b6..53ed74d 100644 --- a/eltiempo/css/estilos.css +++ b/eltiempo/css/estilos.css @@ -35,6 +35,18 @@ header h1 { margin: 0; } +#city-select { + margin-top: 12px; + padding: 8px 16px; + background: rgba(20, 20, 20, 0.8); + color: var(--color-primario); + border: 1px solid var(--color-borde); + border-radius: 8px; + font-size: 1rem; + cursor: pointer; + transition: all 0.3s ease; +} + nav ul { list-style: none; padding: 0; diff --git a/eltiempo/estadisticas.html b/eltiempo/estadisticas.html deleted file mode 100644 index d672ab1..0000000 --- a/eltiempo/estadisticas.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - Estadísticas | El Tiempo - - - - - - -
-

Estadísticas del Tiempo

-

Cargando datos…

-
- - Enero - -
-
- -
- - -
-

Hoy

-

Fecha: --

-

Temperatura: --

-

Humedad: --

-

Lluvia: --

-

Viento: --

-

Amanecer: --

-

Anochecer: --

-

Luna

-

Fase lunar actual: Calculando...

-

🌑

-
- - - -
-

Resumen del mes actual

-

Días registrados: --

-

Máxima absoluta: --

-

Mínima absoluta: --

-

Lluvia: --

-

Humedad: --

-
- - -
-

Tendencia histórica del mes actual

-
-

Cargando tendencia…

-
-
- -
- - - - - - diff --git a/eltiempo/index.html b/eltiempo/index.html index f6a603a..3419e41 100644 --- a/eltiempo/index.html +++ b/eltiempo/index.html @@ -2,126 +2,64 @@ + Estadísticas | El Tiempo - El Tiempo -
-

El Tiempo

-

Obteniendo ubicación...

-

Fecha

-

Santo del dia

+

Estadísticas del Tiempo

+ + +

Cargando datos…

+
+ + Enero + +
- -
-

Amanecer y Anochecer

-

Amanecer: --:--

-

Anochecer: --:--

-

Duración del día: --:--

-

Tiempo hasta anochecer: --:--:--

-

☀️

-
+ +
+

Hoy

+

Fecha: --

+

Temperatura: --

+

Humedad: --

+

Lluvia: --

+

Viento: --

+

Amanecer: --

+

Anochecer: --

+

Luna

Fase lunar actual: Calculando...

-

🌑

+

🌑

- - - -
-

Tiempo Actual 🌤️

- -

- - - --°C -

- -

Condición: --

-

Humedad: --%

-

Viento: -- km/h

- Ver estadísticas -
- - +
+

Resumen del mes actual

+

Días registrados: --

+

Máxima absoluta: --

+

Mínima absoluta: --

+

Lluvia: --

+

Humedad: --

+
+ + --->
@@ -129,7 +67,6 @@

El Tiempo © Tatiana Villa

- - + diff --git a/eltiempo/index20260216.html b/eltiempo/index20260216.html new file mode 100644 index 0000000..f6a603a --- /dev/null +++ b/eltiempo/index20260216.html @@ -0,0 +1,135 @@ + + + + + + El Tiempo + + + + + + +
+

El Tiempo

+

Obteniendo ubicación...

+

Fecha

+

Santo del dia

+
+ +
+ + +
+

Amanecer y Anochecer

+

Amanecer: --:--

+

Anochecer: --:--

+

Duración del día: --:--

+

Tiempo hasta anochecer: --:--:--

+

☀️

+
+

Fase lunar actual: Calculando...

+

🌑

+
+ + + + +
+

Tiempo Actual 🌤️

+ +

+ + + --°C +

+ +

Condición: --

+

Humedad: --%

+

Viento: -- km/h

+ Ver estadísticas +
+ + + +
+ + + + + + + diff --git a/eltiempo/js/estadisticas.js b/eltiempo/js/estadisticas.js index 13a0e71..5ca1632 100644 --- a/eltiempo/js/estadisticas.js +++ b/eltiempo/js/estadisticas.js @@ -70,7 +70,7 @@ function renderLastData(data) { $("last-sunrise").textContent = last.amanecer; $("last-sunset").textContent = last.anochecer; - $("stats-location").textContent = `${ciudadActual} - Estadísticas`; + $("stats-location").textContent = `Estadisticas de ${ciudadActual}`; } // ====================