From 669eb84734cbd039814bda0368ac674d30a74340 Mon Sep 17 00:00:00 2001 From: Esteban Date: Sun, 17 May 2026 08:29:42 -0500 Subject: [PATCH] feat: add contact form section and update main layout configuration --- src/components/section/FooterSection.astro | 20 ++++++++++++---- src/components/section/FormContact.vue | 16 +++++++++---- src/layouts/MainLayout.astro | 28 ++++++++-------------- 3 files changed, 36 insertions(+), 28 deletions(-) diff --git a/src/components/section/FooterSection.astro b/src/components/section/FooterSection.astro index a97ef05..5fee593 100644 --- a/src/components/section/FooterSection.astro +++ b/src/components/section/FooterSection.astro @@ -19,19 +19,29 @@ const isHebrew = Astro.currentLocale === "he";

+ > +

+ > +

-

- +

+

+ {tl("footer.email")} + developer@centrodelreinodepazyjusticia.com +

+ > +

diff --git a/src/components/section/FormContact.vue b/src/components/section/FormContact.vue index 0d76145..51ea1e3 100644 --- a/src/components/section/FormContact.vue +++ b/src/components/section/FormContact.vue @@ -98,25 +98,31 @@ const handleSubmit = async (e) => { diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro index c1d7d4b..97ad891 100644 --- a/src/layouts/MainLayout.astro +++ b/src/layouts/MainLayout.astro @@ -1,27 +1,22 @@ --- import BaseHead from "../components/BaseHead.astro"; -import Footer from "../components/Footer.astro"; import "../styles/global.css"; import "@fontsource/poppins/100.css"; import "@fontsource/poppins/400.css"; import "@fontsource/poppins/500.css"; import "@fontsource/poppins/700.css"; import "@fontsource-variable/kameron"; -import ShareSticky from "../components/ShareSticky.vue"; +import ShareSticky from "../components/ShareSticky.vue"; import { routeTranslations } from "../i18n"; -const { - title, - description, - image, - url, - date -} = Astro.props; +const { title, description, image, url, date } = Astro.props; -const currentLocale = Astro.currentLocale ?? 'es'; -const direction = currentLocale === 'he' ? 'rtl' : 'ltr'; +const currentLocale = Astro.currentLocale ?? "es"; +const direction = currentLocale === "he" ? "rtl" : "ltr"; const newsSegments = Object.values(routeTranslations.news); -const isNewsPage = newsSegments.some(segment => Astro.url.pathname.includes(`/${segment}/`)); +const isNewsPage = newsSegments.some((segment) => + Astro.url.pathname.includes(`/${segment}/`) +); --- @@ -33,18 +28,15 @@ const isNewsPage = newsSegments.some(segment => Astro.url.pathname.includes(`/${ date={date} /> - {isNewsPage && ( - - )} + {isNewsPage && } -