Se agrega ruta de login

This commit is contained in:
Robert
2025-12-22 14:24:53 -06:00
parent ad9e9c1619
commit b303398cd4
8 changed files with 203 additions and 3 deletions

View File

@@ -0,0 +1,28 @@
interface InputProps {
label: string
value: string
onChange: (value: string) => void
type?: string
}
export function Input({
label,
value,
onChange,
type = 'text',
}: InputProps) {
return (
<div className="space-y-1">
<label className="text-sm font-medium text-gray-700">
{label}
</label>
<input
type={type}
value={value}
onChange={e => onChange(e.target.value)}
className="w-full rounded-lg border border-gray-300 px-3 py-2
focus:outline-none focus:ring-2 focus:ring-[#7b0f1d]"
/>
</div>
)
}

View File

@@ -0,0 +1,15 @@
interface Props {
text?: string
}
export function SubmitButton({ text = 'Iniciar sesión' }: Props) {
return (
<button
type="submit"
className="w-full bg-[#7b0f1d] text-white py-2 rounded-lg
font-semibold hover:opacity-90 transition"
>
{text}
</button>
)
}