feat: add full frontend — client portal and admin panel

Páginas cliente: login magic link, registro, validación de token,
dashboard de autos, historial por auto y reserva de turnos con selector
de servicio + slots disponibles.

Páginas admin: login, dashboard de turnos del día con cambio de estado,
historial de autos (buscar cliente → auto → ver/cargar registros),
gestión de tipos de servicio y vista de clientes.

Middleware JWT para proteger rutas /cliente/* y /admin/*.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Beldor
2026-06-18 12:01:31 -03:00
parent 93ad1cb8c1
commit 4cf35f9280
24 changed files with 1687 additions and 15 deletions
+18
View File
@@ -0,0 +1,18 @@
import { HTMLAttributes } from "react";
interface CardProps extends HTMLAttributes<HTMLDivElement> {
title?: string;
}
export default function Card({ title, children, className = "", ...props }: CardProps) {
return (
<div className={`bg-white rounded-xl shadow-sm border border-gray-200 ${className}`} {...props}>
{title && (
<div className="px-5 py-4 border-b border-gray-100">
<h2 className="font-semibold text-gray-800">{title}</h2>
</div>
)}
<div className="p-5">{children}</div>
</div>
);
}