This commit is contained in:
2026-06-11 13:25:26 +03:00
parent b931ee64d4
commit 60b48ca5e8
60 changed files with 12302 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
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>
)
}