feat: replace login button with a dedicated login form component

This commit is contained in:
Maximilian Liebmann 2025-05-08 12:43:24 +02:00
parent 6e55bb1857
commit aeff20589b
3 changed files with 26 additions and 27 deletions

View file

@ -1,11 +0,0 @@
import Button from '../button';
export default function Login() {
return (
<form>
<Button type='submit' mode='neutral' width={250}>
Login
</Button>
</form>
);
}

View file

@ -0,0 +1,24 @@
import LabeledInput from '@/components/labeled-input';
import Button from '../button';
export default function LoginForm() {
return (
<div>
<form>
<LabeledInput
type='email'
label='E-Mail'
placeholder='Enter your E-Mail'
/>
<LabeledInput
type='password'
label='Password'
placeholder='Enter your Password'
/>
<Button type='submit' mode='neutral' width={250}>
Login
</Button>
</form>
</div>
);
}