add user articles

This commit is contained in:
2025-12-18 00:13:27 +03:00
parent b72974ef62
commit f1a65f2fe4
25 changed files with 690 additions and 8 deletions

View File

@@ -0,0 +1,18 @@
import { cookies } from "next/headers";
import { redirect } from "next/navigation";
import { RegisterForm } from "./RegisterForm";
export default async function Register() {
const c = await cookies();
const token = c.get("access_token");
if (token) {
throw redirect("/");
}
return (
<div className="h-full flex flex-col justify-center items-center bg-neutral-100">
<h2 className="mb-10 text-5xl font-medium">archive.local</h2>
<RegisterForm />
</div>
);
}