Add initial Portal version

This commit is contained in:
2026-04-09 22:16:22 +02:00
commit d526c1ff4a
51 changed files with 10752 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
"use client";
import { signIn } from "next-auth/react";
import { useTranslations } from "next-intl";
export default function LoginPage() {
const t = useTranslations("login");
return (
<div className="fixed inset-0 flex items-center justify-center bg-surface-0">
{/* Background grid pattern */}
<div
className="absolute inset-0 opacity-[0.04]"
style={{
backgroundImage: `
linear-gradient(var(--color-accent) 1px, transparent 1px),
linear-gradient(90deg, var(--color-accent) 1px, transparent 1px)
`,
backgroundSize: "60px 60px",
}}
/>
<div className="relative z-10 w-full max-w-sm px-5 animate-in">
{/* Logo mark */}
<div className="flex justify-center mb-8">
<div className="relative h-12 w-12">
<div className="absolute inset-0 rounded-lg bg-accent/15" />
<div className="absolute inset-[5px] rounded-md bg-accent" />
</div>
</div>
<div className="bg-surface-1 rounded-2xl border border-border p-8 shadow-2xl shadow-black/40">
<h1 className="font-display text-xl font-semibold text-center mb-1">
{t("title")}
</h1>
<p className="text-text-secondary text-sm text-center mb-8">
{t("subtitle")}
</p>
<button
onClick={() => signIn("zitadel", { callbackUrl: "/dashboard" })}
className="
w-full py-3 px-4 rounded-lg font-medium text-sm
bg-accent text-surface-0 cursor-pointer
hover:bg-accent-dim active:scale-[0.98]
transition-all duration-150
shadow-lg shadow-accent/20
"
>
{t("button")}
</button>
</div>
<p className="text-center text-text-muted text-[11px] mt-6 tracking-wide uppercase">
{t("footer")}
</p>
</div>
</div>
);
}