diff options
author | HombreLaser <sebastian-440@live.com> | 2023-05-15 20:35:39 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-05-15 20:35:39 -0600 |
commit | d138c15dcd4272cd2358d28867ef35d1550b39cd (patch) | |
tree | 5807176d23b26bb2851a7c7a341ddc3f48eb4623 /src/components/forms/account_form.tsx | |
parent | cbebedd51e1b4a2f709341b792dd073bac83f15d (diff) |
Mejora renderizado de formularios
Diffstat (limited to 'src/components/forms/account_form.tsx')
-rw-r--r-- | src/components/forms/account_form.tsx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/forms/account_form.tsx b/src/components/forms/account_form.tsx new file mode 100644 index 0000000..b0f0fc5 --- /dev/null +++ b/src/components/forms/account_form.tsx @@ -0,0 +1,25 @@ +import { Form } from "react-router-dom"; + +export default function AccountForm({ account }) { + return( + <Form method="post" id="account-form"> + <div className="mb-6"> + <label className="block mb-2 text-lg text-gray-900 dark:text-white">Correo electrónico</label> + <input type="email" id="email" name="email" className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder={account.email}/> + </div> + <div className="mb-6"> + <label className="block mb-2 text-lg text-gray-900 dark:text-white">Nombre</label> + <input type="text" id="first_name" name="first_name" className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder={account.first_name}/> + </div> + <div className="mb-6"> + <label className="block mb-2 text-lg text-gray-900 dark:text-white">Apellido</label> + <input type="text" id="last_name" name="last_name" className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder={account.last_name}/> + </div> + <div className="mb-6"> + <label className="block mb-2 text-lg text-gray-900 dark:text-white">Contraseña</label> + <input type="password" id="password" name="password" className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"/> + </div> + <button type="submit" className="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Enviar</button> + </Form> + ); +}
\ No newline at end of file |