Files
kite-qr/app/admin/login/page.tsx
T
2026-06-11 13:25:26 +03:00

27 lines
758 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { redirect } from 'next/navigation'
import { getSession } from '@/lib/auth'
import LoginForm from './LoginForm'
export const metadata = {
title: 'Admin Login - Moy Beach',
}
export default async function LoginPage() {
const session = await getSession()
if (session) {
redirect('/admin')
}
return (
<div className="min-h-screen flex items-center justify-center bg-gray-50">
<div className="max-w-md w-full p-8 bg-white rounded-xl shadow-lg">
<div className="text-center mb-8">
<h1 className="text-2xl font-bold text-gray-900">Admin Girişi</h1>
<p className="text-gray-500 mt-2">Yönetim paneline erişmek için giriş yapın</p>
</div>
<LoginForm />
</div>
</div>
)
}