style(frontend): changes the login form to look a little better

This commit is contained in:
2025-03-05 12:08:55 -06:00
parent f5fd1fc605
commit 6fb615a743

View File

@@ -81,7 +81,9 @@ const LoginForm = () => {
<hr className="rounded"></hr>
<form onSubmit={handleSubmit(onSubmitLogin)}>
<div>
<Label>Username</Label>
<Label htmlFor="username" className="m-1">
Username
</Label>
<Input
placeholder="smith001"
{...register("username")}
@@ -92,7 +94,9 @@ const LoginForm = () => {
</div>
<div>
<>
<Label htmlFor={"password"}>Password</Label>
<Label htmlFor={"password"} className="m-1">
Password
</Label>
<Input
type="password"
{...register("password")}
@@ -106,15 +110,24 @@ const LoginForm = () => {
<div className="flex">
<Controller
render={({field}) => (
<Checkbox id="remember" checked={field.value} onCheckedChange={field.onChange} />
<>
<Checkbox
id="remember"
checked={field.value}
onCheckedChange={field.onChange}
/>
<label
htmlFor="remember"
className="pl-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
remember me
</label>
</>
)}
control={control}
name="rememberMe"
defaultValue={rememeberMe}
/>
<Label htmlFor="remember" className="pl-2">
remember me
</Label>
</div>
<div className="flex justify-end">