mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 13:45:03 +00:00
register routing, page
This commit is contained in:
55
apps/login/app/(login)/register/page.tsx
Normal file
55
apps/login/app/(login)/register/page.tsx
Normal file
@@ -0,0 +1,55 @@
|
||||
"use client";
|
||||
|
||||
import { Button, ButtonVariants } from "#/ui/Button";
|
||||
import IdentityProviders from "#/ui/IdentityProviders";
|
||||
import { TextInput } from "#/ui/Input";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
export default function Page() {
|
||||
const router = useRouter();
|
||||
|
||||
function submit() {
|
||||
router.push("/password");
|
||||
}
|
||||
return (
|
||||
<div className="flex flex-col items-center space-y-4">
|
||||
<h1>Register</h1>
|
||||
<p className="ztdl-p">Create your ZITADEL account.</p>
|
||||
|
||||
<form className="" onSubmit={() => submit()}>
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<div className="">
|
||||
<TextInput label="Firstname" />
|
||||
</div>
|
||||
<div className="">
|
||||
<TextInput label="Lastname" />
|
||||
</div>
|
||||
<div className="">
|
||||
<TextInput label="Email" />
|
||||
</div>
|
||||
<div className="">
|
||||
<TextInput label="Password" />
|
||||
</div>
|
||||
<div className="">
|
||||
<TextInput label="Password Confirmation" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<PrivacyPolicyCheckboxes />
|
||||
|
||||
<div className="mt-8 flex w-full flex-row items-center justify-between">
|
||||
<Button type="button" variant={ButtonVariants.Secondary}>
|
||||
back
|
||||
</Button>
|
||||
<Button
|
||||
type="submit"
|
||||
variant={ButtonVariants.Primary}
|
||||
onClick={() => submit()}
|
||||
>
|
||||
continue
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -6,11 +6,11 @@ export type Item = {
|
||||
|
||||
export const demos: { name: string; items: Item[] }[] = [
|
||||
{
|
||||
name: "Routes",
|
||||
name: "Login",
|
||||
items: [
|
||||
{
|
||||
name: "Login",
|
||||
slug: "login",
|
||||
name: "Username",
|
||||
slug: "username",
|
||||
description: "The entrypoint of the application",
|
||||
},
|
||||
{
|
||||
@@ -50,4 +50,14 @@ export const demos: { name: string; items: Item[] }[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Register",
|
||||
items: [
|
||||
{
|
||||
name: "Register",
|
||||
slug: "register",
|
||||
description: "Create your ZITADEL account",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
3
apps/login/ui/PrivacyPolicyCheckboxes.tsx
Normal file
3
apps/login/ui/PrivacyPolicyCheckboxes.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export default function PrivacyPolicyCheckboxes() {
|
||||
return <div></div>;
|
||||
}
|
||||
Reference in New Issue
Block a user