diff --git a/superpage/src/components/Form.tsx b/superpage/src/components/Form.tsx index 13eb8e3..0a52dba 100644 --- a/superpage/src/components/Form.tsx +++ b/superpage/src/components/Form.tsx @@ -4,6 +4,7 @@ import { queryClient } from '../queryClient' import axios from 'axios' import { createElement } from 'react' import clsx from 'clsx' +import { Container } from './Container' interface IFormInput { name: string @@ -30,37 +31,34 @@ export function Form() { } return ( -
- {formState.isSubmitSuccessful && ( -

OK!

- )} + + + {formState.isSubmitSuccessful &&

OK!

} + +
+ + +
-
- -
- - - - + + +
) } @@ -71,10 +69,7 @@ interface IInput extends React.HTMLAttributes { export function Input({ as = 'input', className, ...props }: IInput) { return createElement(as, { - className: clsx( - 'border border-transparent focus:border-green-secondary focus:ring ring-green-secondary text-white bg-black p-3 rounded-lg w-full outline-none', - className, - ), + className: clsx('border', className), ...props, }) } diff --git a/superpage/src/pages/[slug].astro b/superpage/src/pages/[slug].astro index 93afd47..27e46b4 100644 --- a/superpage/src/pages/[slug].astro +++ b/superpage/src/pages/[slug].astro @@ -7,6 +7,7 @@ import { CheckBadgeIcon, LockClosedIcon } from '@heroicons/react/24/solid' import { LinkedInIcon } from '~/components/LinkedInIcon' import Layout from '~/layouts/Layout.astro' import ClientsLogo from '~/components/ClientsLogo.astro' +import { Form } from '~/components/Form' import placeholder from '~/assets/placeholder.png' import mulherdenegocios from '~/assets/mulher-de-negocios.png' import homemdenegocios from '~/assets/homem-de-negocios.png' @@ -33,7 +34,7 @@ const trainer = data.course?.trainer ? await getEntry(data.course?.trainer) : nu
- +
+ +