Se agrega ruta de login
This commit is contained in:
28
src/components/ui/Input.tsx
Normal file
28
src/components/ui/Input.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
15
src/components/ui/SubmitButton.tsx
Normal file
15
src/components/ui/SubmitButton.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user