diff --git a/superpage/src/components/Logo.jsx b/superpage/src/assets/logos/eduseg.svg similarity index 70% rename from superpage/src/components/Logo.jsx rename to superpage/src/assets/logos/eduseg.svg index bc4ec76..ed243c9 100644 --- a/superpage/src/components/Logo.jsx +++ b/superpage/src/assets/logos/eduseg.svg @@ -1,99 +1,47 @@ -export function Regular(props) { - return ( - + + + + - - - - ) -} - -export function Smallest(props) { - return ( - - - - - - - - - - - - ) -} diff --git a/superpage/src/components/Container.tsx b/superpage/src/components/Container.tsx index 9d8452a..55b7a03 100644 --- a/superpage/src/components/Container.tsx +++ b/superpage/src/components/Container.tsx @@ -5,10 +5,12 @@ interface ContainerProps { className?: string | undefined } -export function Container({ children, className }: ContainerProps) { +export function Container({ children, className, ...props }: ContainerProps) { return ( -
+
{children}
) } + +export default Container diff --git a/superpage/src/components/Form.tsx b/superpage/src/components/Form.tsx index 0a52dba..086fbaa 100644 --- a/superpage/src/components/Form.tsx +++ b/superpage/src/components/Form.tsx @@ -17,7 +17,7 @@ export function Form() { const { mutateAsync } = useMutation( { mutationFn: async (data: IFormInput) => { - return await axios.post('https://n8n.sergio.run/webhook/eduseg', data) + return await axios.post('https://n8n.vps.eduseg.com.br/webhook/a377b3e0-b159-4536-98ab-e13822b60562', data) }, onSuccess: () => { reset() @@ -35,16 +35,14 @@ export function Form() {
{formState.isSubmitSuccessful &&

OK!

} -
- - -
+ +
- +
-

Módulos deste curso

+

Módulos deste curso

O curso é dividido em módulos para facilitar seu aprendizado e garantir que você domine todos os aspectos teóricos e práticos. @@ -200,11 +200,12 @@ const trainer = data.course?.trainer ? await getEntry(data.course?.trainer) : nu ) } - +

- + +
Certificados digitais com respaldo legal e gestão completa diff --git a/superpage/src/pages/blog/[slug].astro b/superpage/src/pages/blog/[slug].astro new file mode 100644 index 0000000..19a02f6 --- /dev/null +++ b/superpage/src/pages/blog/[slug].astro @@ -0,0 +1,30 @@ +--- +import Layout from '~/layouts/Layout.astro' +import Container from '~/components/Container' + +const { slug } = Astro.params + +let res = await fetch(`https://betaeducacao.com.br/wp-json/wp/v2/posts?slug=${slug}&_embed`) +let [post] = await res.json() + +// The getStaticPaths() is required for static Astro sites. +// If using SSR, you will not need this function. +export async function getStaticPaths() { + let data = await fetch('https://betaeducacao.com.br/wp-json/wp/v2/posts') + let posts = await data.json() + + return posts.map((post) => ({ + params: { slug: post.slug }, + props: { post: post }, + })) +} +--- + + + +
+

+ +

+
+
diff --git a/superpage/src/pages/index.astro b/superpage/src/pages/index.astro index a388f36..f12c469 100644 --- a/superpage/src/pages/index.astro +++ b/superpage/src/pages/index.astro @@ -1,237 +1,22 @@ --- import Layout from '~/layouts/Layout.astro' +import Container from '~/components/Container' + +let res = await fetch('https://betaeducacao.com.br/wp-json/wp/v2/posts') +let posts = await res.json() --- - + + { + posts.map((post) => ( + + )) + } +