From 98e9a7652e574a4ffc6b8e18cae2140bf2ef2272 Mon Sep 17 00:00:00 2001 From: esteban Date: Tue, 28 Jul 2026 20:56:09 -0500 Subject: [PATCH] change responsive home --- .env | 4 ++ .gitignore | 1 + public/admin/index.html | 32 +++++++++++ src/components/HeroHome.astro | 2 +- src/components/cards/NewsCard.astro | 18 ++++-- src/components/section/ColumnsSection.astro | 26 ++++----- src/components/section/FormContact.vue | 56 +++++++++---------- src/components/section/FormationSection.astro | 22 ++++---- 8 files changed, 103 insertions(+), 58 deletions(-) create mode 100644 public/admin/index.html diff --git a/.env b/.env index b746ff8..b8af0aa 100644 --- a/.env +++ b/.env @@ -23,6 +23,10 @@ DATABASE_URL="file:./dev.db" N8N_WEBHOOK_URL="https://flows2.carpa.com/webhook/news-summary" N8N_API_KEY="sk_live_JwjpTdZrLVvijCKuWylWZbUuhBm6zPDH" +# Cloudflare Email Sending +CLOUDFLARE_API_TOKEN=cfut_8Y0Tcwiv3v0K1LDK9QSvc3BjlU1lZFs1zikACgTw33977b37 +CLOUDFLARE_ACCOUNT_ID=3e689750123db91e81d3542d2930a907 + # Cloudflare Turnstile — public key (visible in frontend) TURNSTILE_SITE_KEY=0x4AAAAAAD9IYWC6HPflpneO diff --git a/.gitignore b/.gitignore index b6515b7..54c22db 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ prisma/dev.db # opencode - agentes y scripts locales (no subir a producción) opencode/ .opencode/ +.env diff --git a/public/admin/index.html b/public/admin/index.html new file mode 100644 index 0000000..13d19a5 --- /dev/null +++ b/public/admin/index.html @@ -0,0 +1,32 @@ + + + + + + TinaCMS + + + + + + + + +
+ + \ No newline at end of file diff --git a/src/components/HeroHome.astro b/src/components/HeroHome.astro index eae21ae..7507af7 100644 --- a/src/components/HeroHome.astro +++ b/src/components/HeroHome.astro @@ -13,7 +13,7 @@ const tl = createTranslator(Astro.currentLocale);
-
+
Logo Metalico - -

- {locationArray.filter(Boolean).join(', ')}
- ({nicedate}): -

+
+ + {nicedate ? ( +

+ {locationArray.filter(Boolean).join(', ')}
+ ({nicedate}): +

+ ) : ( +

+ {locationArray.filter(Boolean).join(', ')}: +

+ )} +

{data.data.title}

diff --git a/src/components/section/ColumnsSection.astro b/src/components/section/ColumnsSection.astro index 86cd92d..453aeeb 100644 --- a/src/components/section/ColumnsSection.astro +++ b/src/components/section/ColumnsSection.astro @@ -7,23 +7,23 @@ const tl = createTranslator(Astro.currentLocale); const { props } = Astro.props; ---
-
-
-
+
+
+

{tl("values.justice.title")}

-

{tl("values.justice.text")}

+

{tl("values.justice.text")}

-
- +
+
-
-
-

{tl("values.integrity.title")}

-

{tl("values.integrity.text")}

+
+
+

{tl("values.integrity.title")}

+

{tl("values.integrity.text")}

-
- +
+
@@ -41,4 +41,4 @@ const { props } = Astro.props;

{tl("values.dialogue.text")}

-
\ No newline at end of file +
diff --git a/src/components/section/FormContact.vue b/src/components/section/FormContact.vue index c69ffb6..bd75e4d 100644 --- a/src/components/section/FormContact.vue +++ b/src/components/section/FormContact.vue @@ -92,6 +92,34 @@ const handleSubmit = async (e) => { + + +
@@ -127,34 +155,6 @@ const handleSubmit = async (e) => { - - -
diff --git a/src/components/section/FormationSection.astro b/src/components/section/FormationSection.astro index c5ff909..69da456 100644 --- a/src/components/section/FormationSection.astro +++ b/src/components/section/FormationSection.astro @@ -10,39 +10,39 @@ const tl = createTranslator(Astro.currentLocale);

{tl("formation.title")}

-
-
+
+

{tl("formation.area.title")}

    -
    - +
    +
    -
    +

    {tl("formation.consulting.title")}

    {tl("formation.consulting.text")}

    -
    - +
    +
    -
    +

    -
    - +
    +
    -
    \ No newline at end of file +