"use client"; import { useState } from "react"; import { login } from "./actions"; import { Lock, Mail, AlertCircle, ArrowRight, Loader2 } from "lucide-react"; export default function LoginPage() { const [error, setError] = useState(null); const [loading, setLoading] = useState(false); async function handleSubmit(event: React.FormEvent) { event.preventDefault(); setError(null); setLoading(true); const formData = new FormData(event.currentTarget); const result = await login(formData); if (result?.error) { setError(result.error); setLoading(false); } } return (
{/* Ambient glow blobs */}
{/* Card */}
{/* Logo / Header */}
A

AppAdmin

Yönetim paneline erişmek için giriş yapın

{/* Email */}
{ e.currentTarget.style.borderColor = "rgba(99, 102, 241, 0.5)"; e.currentTarget.style.background = "rgba(99, 102, 241, 0.06)"; }} onBlur={(e) => { e.currentTarget.style.borderColor = "rgba(255,255,255,0.09)"; e.currentTarget.style.background = "rgba(255,255,255,0.05)"; }} />
{/* Password */}
{ e.currentTarget.style.borderColor = "rgba(99, 102, 241, 0.5)"; e.currentTarget.style.background = "rgba(99, 102, 241, 0.06)"; }} onBlur={(e) => { e.currentTarget.style.borderColor = "rgba(255,255,255,0.09)"; e.currentTarget.style.background = "rgba(255,255,255,0.05)"; }} />
{/* Error */} {error && (
{error}
)} {/* Submit */}
{/* Footer hint */}

AppAdmin v1.0 · Yönetim Paneli

); }