diff --git a/superpage/src/pages/[slug].astro b/superpage/src/pages/[slug].astro index 9d74663..c4b6c38 100644 --- a/superpage/src/pages/[slug].astro +++ b/superpage/src/pages/[slug].astro @@ -9,6 +9,7 @@ import Semeq from '~/components/logos/Semeq.astro' import Natura from '~/components/logos/Natura.astro' import Nissan from '~/components/logos/Nissan.astro' import Manserv from '~/components/logos/Manserv.astro' +import Contact from './_components/Contact.astro' import placeholder from './_assets/placeholder.png' import mulherdenegocios from './_assets/mulher-de-negocios.png' @@ -276,5 +277,12 @@ const trainer = data.course?.trainer ? await getEntry(data.course?.trainer) : nu + + + + + + + diff --git a/superpage/src/pages/_components/Contact.Astro b/superpage/src/pages/_components/Contact.Astro index e69de29..d603871 100644 --- a/superpage/src/pages/_components/Contact.Astro +++ b/superpage/src/pages/_components/Contact.Astro @@ -0,0 +1,35 @@ +--- +import Label from './_label.astro' +import Input from './_input.astro' +import Textarea from './_textarea.astro' + +// https://n8n.eduseg.com.br/webhook/a377b3e0-b159-4536-98ab-e13822b60562 + +if (Astro.request.method === 'POST') { + try { + const data = await Astro.request.formData() + console.log(data) + } catch (error) { + if (error instanceof Error) { + console.error(error.message) + } + } +} +--- + +
+ + +