diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index a7827bf..254ff4e 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -1,6 +1,18 @@ +import { CircleAlert } from "lucide-react"; import { useState, type FormEvent } from "react"; import { useNavigate } from "react-router-dom"; -import { useAuth } from "../context/AuthContext"; +import { Alert, AlertDescription } from "@/components/ui/alert"; +import { Button } from "@/components/ui/button"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; +import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; +import { useAuth } from "@/context/AuthContext"; export default function Login() { const { login } = useAuth(); @@ -25,22 +37,57 @@ export default function Login() { }; return ( -
-
-

Accedi

- {error &&

{error}

} - - - -
+
+ + + Academy Aziendale + + Accedi alla piattaforma formativa con le tue credenziali. + + + +
+ {error && ( + + + {error} + + )} + +
+ + setEmail(e.target.value)} + required + disabled={loading} + /> +
+ +
+ + setPassword(e.target.value)} + required + disabled={loading} + /> +
+ + +
+
+
); } diff --git a/tsconfig.app.json b/tsconfig.app.json index 24b1802..e7ea3d5 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -15,6 +15,7 @@ "moduleDetection": "force", "noEmit": true, "jsx": "react-jsx", + "ignoreDeprecations": "6.0", "baseUrl": ".", "paths": {