inserita immagine Home.jpg nella pagina login

This commit is contained in:
AV77web 2026-05-27 16:46:16 +02:00
parent 487983bf3e
commit 85e6aad3f1
4 changed files with 54 additions and 40 deletions

BIN
immagini/Home.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

BIN
public/Home.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

BIN
public/images/Home.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

View file

@ -1,3 +1,4 @@
import Image from "next/image";
import { AuthError } from "next-auth"; import { AuthError } from "next-auth";
import { redirect } from "next/navigation"; import { redirect } from "next/navigation";
@ -52,8 +53,20 @@ export default async function LoginPage({ searchParams }: LoginPageProps) {
const hasError = params?.error === "CredentialsSignin"; const hasError = params?.error === "CredentialsSignin";
return ( return (
<main className="flex min-h-[calc(100vh-4rem)] items-center justify-center bg-zinc-50 px-4 py-12"> <main className="flex min-h-screen items-center justify-center bg-zinc-50 px-4 py-12">
<section className="w-full max-w-sm rounded-lg border border-zinc-200 bg-white p-6 shadow-sm"> <section className="w-full max-w-sm overflow-hidden rounded-lg border border-zinc-200 bg-white shadow-sm">
<div className="relative h-40 w-full bg-zinc-100">
<Image
src="/images/Home.jpg"
alt="MagRicambi"
fill
priority
className="object-cover"
sizes="(max-width: 640px) 100vw, 384px"
/>
</div>
<div className="p-6">
<div className="mb-6"> <div className="mb-6">
<h1 className="text-2xl font-semibold text-zinc-950">Accesso</h1> <h1 className="text-2xl font-semibold text-zinc-950">Accesso</h1>
<p className="mt-2 text-sm text-zinc-600"> <p className="mt-2 text-sm text-zinc-600">
@ -97,6 +110,7 @@ export default async function LoginPage({ searchParams }: LoginPageProps) {
Accedi Accedi
</button> </button>
</form> </form>
</div>
</section> </section>
</main> </main>
); );