Files
fabrikanabytok/apps/fabrikanabytok/app/(auth)/setup-wizard/page.tsx
2025-11-28 20:47:24 +01:00

32 lines
1.2 KiB
TypeScript

import { isSystemInitialized } from "@/lib/db/setup"
import { redirect } from "next/navigation"
import { SetupWizardForm } from "@/components/auth/setup-wizard-form"
export default async function SetupWizardPage() {
const initialized = await isSystemInitialized()
if (initialized) {
redirect("/")
}
return (
<div className="min-h-screen flex items-center justify-center bg-gradient-to-br from-brand-50 via-white to-brand-50 p-4">
<div className="w-full max-w-2xl">
<div className="text-center mb-8">
<div className="inline-flex items-center justify-center w-16 h-16 bg-brand-600 rounded-2xl mb-4">
<svg className="w-8 h-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
</div>
<h1 className="text-4xl font-bold text-foreground mb-2">Üdvözöljük a FABRIKA NABYTOK rendszerben</h1>
<p className="text-lg text-muted-foreground">
A kezdéshez konfigurálja a rendszert és hozza létre a superadmin fiókot
</p>
</div>
<SetupWizardForm />
</div>
</div>
)
}