diff --git a/package.json b/package.json index 5fb7b8a..23371bd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "websostenible", "type": "module", - "version": "0.2.7", + "version": "0.3.0", "scripts": { "dev": "astro dev", "devhost": "astro dev --host", diff --git a/src/components/ListadoPostsHorizontal.astro b/src/components/ListadoPostsHorizontal.astro index 25681c7..b10189a 100644 --- a/src/components/ListadoPostsHorizontal.astro +++ b/src/components/ListadoPostsHorizontal.astro @@ -6,17 +6,16 @@ const posts = await Astro.glob("../pages/posts/*.mdx"); { posts.slice(0, 3).map((post) => (
-
-
+
+
{post.frontmatter.titulo}
-

+

{post.frontmatter.descripcion} - ...

- - Leer más + + Ver detalles
@@ -27,11 +26,28 @@ const posts = await Astro.glob("../pages/posts/*.mdx"); \ No newline at end of file + display: -webkit-box; + -webkit-box-orient: vertical; + overflow: hidden; + -webkit-line-clamp: 4; /* Limita a 4 líneas */ + line-height: 1.5; /* Ajusta según el diseño */ + max-height: calc(1.5em * 4); /* Calcula la altura máxima */ + } + .card { + transition: transform 0.3s ease, box-shadow 0.3s ease; + background: #ffffff; + display: flex; + flex-direction: column; + height: 100%; + } + .card:hover { + transform: translateY(-5px); + box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; + } + .btn-success { + transition: transform 0.3s ease; + } + .btn-success:hover { + transform: translateX(5px); + } + diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 74f167f..27f862b 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -32,7 +32,7 @@ const { home, posts, proyectos } = Astro.props; Posts diff --git a/src/pages/index.astro b/src/pages/index.astro index 6b5a0a7..9cd1513 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -84,44 +84,41 @@ const animateOnScroll = `
- -
-
-

Nuestros Objetivos Principales

-
- { - [ - { icon: "fa-seedling", title: "Vida de Ecosistemas Terrestres", description: "Proteger, restaurar y promover el uso sostenible de los ecosistemas terrestres." }, - { icon: "fa-hands-holding-circle", title: "Reducción de Desigualdades", description: "Reducir la desigualdad en y entre los países." }, - { icon: "fa-graduation-cap", title: "Educación de Calidad", description: "Garantizar una educación inclusiva, equitativa y de calidad." }, - { icon: "fa-industry", title: "Industria, Innovación e Infraestructura", description: "Construir infraestructuras resilientes, promover la industrialización inclusiva y sostenible." } - ].map((obj, index) => ( -
-
-
- -
{obj.title}
-

{obj.description}

-
-
-
- )) - } -
-
-
+
+
+

Nuestros Objetivos Principales

+
+ { + [ + { icon: "fa-chalkboard-teacher", title: "Educación en ODS", description: "Enseñar a la comunidad formas de vida sostenibles que cumplan con los Objetivos de Desarrollo Sostenible." }, + { icon: "fa-lightbulb", title: "Concienciación Energética", description: "Promover el uso eficiente de la energía en el hogar y el trabajo." }, + { icon: "fa-handshake", title: "Colaboración Comunitaria", description: "Fomentar la colaboración con organizaciones locales para proyectos sostenibles." }, + { icon: "fa-recycle", title: "Promoción del Reciclaje", description: "Incentivar la separación de residuos y el reciclaje en la comunidad para reducir el impacto ambiental." } + ].map((obj, index) => ( +
+
+
+ +
{obj.title}
+

{obj.description}

+
+
+
+ )) + } +
+
+

Nuestro Impacto

-
+
{ [ - { number: "1M+", description: "Personas impactadas" }, - { number: "500K", description: "Árboles plantados" }, - { number: "100+", description: "Proyectos completados" }, - { number: "50+", description: "Países involucrados" } - ].map((impact, index) => ( + { number: "100+", description: "Personas a las que hemos concienciado." }, + { number: "5+", description: "Proyectos creados para fomentar la sostenibilidad." } + ].map((impact, index) => (

{impact.number}

{impact.description}

@@ -131,24 +128,6 @@ const animateOnScroll = `
- - -

Posts Recientes