From db2f1ff6b3c726d4400c8b614167fc4b5cb16b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Portas=20L=C3=B3pez?= <81629707+TeenBiscuits@users.noreply.github.com> Date: Wed, 10 Dec 2025 13:52:47 +0100 Subject: [PATCH 1/2] fix: Atributo de lenguaje en el html --- src/layouts/BaseLayout.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 5c729f8..566ace8 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -14,7 +14,7 @@ const imageUrl = `${siteUrl}${image}`; --- - + From e26b8a20a70904a6ce4c4c524876e1fe38c76e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Portas=20L=C3=B3pez?= <81629707+TeenBiscuits@users.noreply.github.com> Date: Wed, 10 Dec 2025 15:18:15 +0100 Subject: [PATCH 2/2] feat: Add Astro View Transitions --- src/components/Card.astro | 5 ++++- src/components/ContactForm.astro | 6 +++--- src/components/ContentTeaser.astro | 2 +- src/components/Filter.astro | 4 ++-- src/components/Navigation.astro | 14 ++++++++------ src/layouts/BaseLayout.astro | 7 ++++++- src/layouts/PageLayout.astro | 8 ++++---- src/pages/eventos/[...id].astro | 5 +++-- src/pages/novas/[...id].astro | 9 ++++++--- 9 files changed, 37 insertions(+), 23 deletions(-) diff --git a/src/components/Card.astro b/src/components/Card.astro index 74a28f8..7607c7d 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -51,12 +51,14 @@ const CardTag = href ? "a" : "div"; src={image} alt={imageAlt} class="aspect-video rounded-lg" + transition:name={`img-${title}`} /> ) : ( ) } @@ -66,7 +68,7 @@ const CardTag = href ? "a" : "div"; tags.length > 0 && (
{tags.map((tag) => ( - + {tag} ))} @@ -76,6 +78,7 @@ const CardTag = href ? "a" : "div";

{title}

diff --git a/src/components/ContactForm.astro b/src/components/ContactForm.astro index 72a3922..f14f150 100644 --- a/src/components/ContactForm.astro +++ b/src/components/ContactForm.astro @@ -97,7 +97,7 @@ const { class: className } = Astro.props;
{/* Send form data and animate form */} - {/* Set the subject of the select automatically from the url params */} - {/* React to subject changes */} - diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 566ace8..2fe8dcd 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -1,4 +1,5 @@ --- +import { ClientRouter } from "astro:transitions"; import "../styles/global.css"; interface Props { @@ -14,7 +15,7 @@ const imageUrl = `${siteUrl}${image}`; --- - + @@ -24,6 +25,7 @@ const imageUrl = `${siteUrl}${image}`; @@ -55,6 +57,9 @@ const imageUrl = `${siteUrl}${image}`; + + + diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro index abf2b68..7e6d022 100644 --- a/src/layouts/PageLayout.astro +++ b/src/layouts/PageLayout.astro @@ -17,11 +17,11 @@ const { title, description, image } = Astro.props;
- -
+ +
- -