🚩 (flags) create signup provision page

This commit is contained in:
2025-10-03 00:29:17 +07:00
parent a2216b44db
commit bf286af235
3 changed files with 79 additions and 2 deletions

View File

@ -2,7 +2,7 @@
import React, { useState } from "react";
import { Button, Input } from "@heroui/react";
import DebugPage from "@/app/debug/DebugPage";
import Provision from "../cards/Provision";
type Props = {
changeCurrentPage: React.Dispatch<React.SetStateAction<React.JSX.Element>>;
@ -25,7 +25,7 @@ const FullNameInput = ({ changeCurrentPage }: Props) => {
}}
/>
<Button
onPress={() => changeCurrentPage(<DebugPage />)}
onPress={() => changeCurrentPage(<Provision fullName={fullName} />)}
className="mt-2 w-full"
color="primary"
>

View File

@ -0,0 +1,55 @@
"use client";
import { Button, Input } from "@heroui/react";
import React, { useState } from "react";
const ProvisionInput = () => {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const [confirmPassword, setConfirmPassword] = useState("");
return (
<div className="mt-6 px-3">
<div className="flex flex-col gap-1.5">
<Input
className="w-full "
label="Email"
type="email"
variant="bordered"
onChange={(e) => setEmail(e.target.value)}
classNames={{
input: "text-md font-light pt-4",
inputWrapper: "flex gap-10",
}}
/>
<Input
className="w-full "
label="Password"
type="password"
variant="bordered"
onChange={(e) => setPassword(e.target.value)}
classNames={{
input: "text-md font-light pt-4",
inputWrapper: "flex gap-10",
}}
/>
<Input
className="w-full "
label="Confirm Password"
type="password"
variant="bordered"
onChange={(e) => setConfirmPassword(e.target.value)}
classNames={{
input: "text-md font-light pt-4",
inputWrapper: "flex gap-10",
}}
/>
</div>
<Button className="mt-3 w-full" color="primary">
Continue
</Button>
</div>
);
};
export default ProvisionInput;