From 23b06732c5d03184dde7f2b4d68869e5f61f9d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Rafael=20Siqueira?= Date: Fri, 18 Apr 2025 22:56:52 -0300 Subject: [PATCH] update form --- superpage/src/components/Form.tsx | 41 +++++++++++++++++++------------ superpage/src/styles/app.css | 2 +- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/superpage/src/components/Form.tsx b/superpage/src/components/Form.tsx index 086fbaa..3f28887 100644 --- a/superpage/src/components/Form.tsx +++ b/superpage/src/components/Form.tsx @@ -32,28 +32,26 @@ export function Form() { return ( -
+ {formState.isSubmitSuccessful &&

OK!

} - - -
@@ -67,7 +65,18 @@ interface IInput extends React.HTMLAttributes { export function Input({ as = 'input', className, ...props }: IInput) { return createElement(as, { - className: clsx('border', className), + className: clsx( + 'bg-white/10 focus:bg-white focus:text-black rounded-xl p-4 w-full focus:outline-none transition duration-150', + className, + ), ...props, }) } + +interface ILabel extends React.HTMLAttributes { + className?: string | undefined +} + +function Label({ children, className }: ILabel) { + return +} diff --git a/superpage/src/styles/app.css b/superpage/src/styles/app.css index a0cb9f7..a784ba5 100644 --- a/superpage/src/styles/app.css +++ b/superpage/src/styles/app.css @@ -20,5 +20,5 @@ html, body { - @apply text-white bg-black scroll-pt-24; + @apply text-white bg-black scroll-pt-22; }