diff --git a/public/imgs/logoPodcast.png b/public/imgs/logoPodcast.png new file mode 100644 index 0000000..f94f686 Binary files /dev/null and b/public/imgs/logoPodcast.png differ diff --git a/src/pages/posts/[id].astro b/src/pages/posts/[id].astro index f3fa108..35938cc 100644 --- a/src/pages/posts/[id].astro +++ b/src/pages/posts/[id].astro @@ -170,7 +170,7 @@ const blogJsonLd = { - +
diff --git a/src/pages/proyectos/index.astro b/src/pages/proyectos/index.astro new file mode 100644 index 0000000..f646aef --- /dev/null +++ b/src/pages/proyectos/index.astro @@ -0,0 +1,242 @@ +--- +import Navbar from "../../components/Navbar.astro"; + +export const proyectos = [ + { + titulo: "Podcast ¿Arreglamos el Mundo?", + descripcion: "Un Podcast dinámico y entretenido que aborda los desafíos y soluciones relacionadas con la Sostenibilidad. Liderado por Rafa y Vicente, cada episodio se convierte en un espacio de debate y aprendizaje. Junto a ellos, los expertos invitados María Jesús y Rubén. Con conversaciones cercanas, datos relevantes y un toque de humor, este equipo busca, literalmente, arreglar el mundo. 🌍✨", + imagen: "/imgs/logoPodcast.png", + autor: "Rafa, Vicen, Rubén y María Jesús", + fecha: "2024-03-10", + url: "/proyectos/podcast" + } +]; + +const orderProyectos = (proyectos, orderBy = "fecha", ascending = false) => { + return proyectos.sort((a, b) => { + if (orderBy === "fecha") { + const comparison = new Date(b.fecha).getTime() - new Date(a.fecha).getTime(); + return ascending ? -comparison : comparison; + } else if (orderBy === "titulo") { + const comparison = a.titulo.localeCompare(b.titulo); + return ascending ? comparison : -comparison; + } + return 0; + }); +}; + +const initialProyectos = orderProyectos(proyectos, "fecha", false); +--- + + +
+
+

Proyectos Sostenibles

+

+ Descubre nuestras iniciativas para un futuro más sostenible +

+
+ + +
+
+
+
+
+
+
+ + + + +
+
+
+ +
+
+
+
+
+
+ + +
+ {initialProyectos.map((proyecto) => ( +
+
+
+
+ {proyecto.imagen ? ( + {proyecto.titulo} + ) : ( +
+ +
+ )} +
+
+
+
+

{proyecto.titulo}

+

+ {proyecto.descripcion} +

+
+
+
+
+ + + {proyecto.autor} + + + + + +
+ + Ver proyecto + + +
+
+
+
+
+
+
+ ))} +
+
+ + + + + +