52 lines
2.1 KiB
TypeScript
52 lines
2.1 KiB
TypeScript
'use client';
|
|
import IconLockDots from '@/components/icon/icon-lock-dots';
|
|
import IconMail from '@/components/icon/icon-mail';
|
|
import IconUser from '@/components/icon/icon-user';
|
|
import { useRouter } from 'next/navigation';
|
|
import React from 'react';
|
|
|
|
const ComponentsAuthRegisterForm = () => {
|
|
const router = useRouter();
|
|
|
|
const submitForm = (e: any) => {
|
|
e.preventDefault();
|
|
router.push('/');
|
|
};
|
|
return (
|
|
<form className="space-y-5 dark:text-white" onSubmit={submitForm}>
|
|
{/* <div>
|
|
<label htmlFor="Name">Name</label>
|
|
<div className="relative text-white-dark">
|
|
<input id="Name" type="text" placeholder="Enter Name" className="form-input ps-10 placeholder:text-white-dark" />
|
|
<span className="absolute start-4 top-1/2 -translate-y-1/2">
|
|
<IconUser fill={true} />
|
|
</span>
|
|
</div>
|
|
</div> */}
|
|
<div>
|
|
<label htmlFor="Email">Email</label>
|
|
<div className="relative text-white-dark">
|
|
<input id="Email" type="email" placeholder="Enter Email" className="form-input ps-10 placeholder:text-white-dark" />
|
|
<span className="absolute start-4 top-1/2 -translate-y-1/2">
|
|
<IconMail fill={true} />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<label htmlFor="Password">Password</label>
|
|
<div className="relative text-white-dark">
|
|
<input id="Password" type="password" placeholder="Enter Password" className="form-input ps-10 placeholder:text-white-dark" />
|
|
<span className="absolute start-4 top-1/2 -translate-y-1/2">
|
|
<IconLockDots fill={true} />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<button type="submit" className="btn btn-gradient !mt-6 w-full border-0 uppercase shadow-[0_10px_20px_-10px_rgba(67,97,238,0.44)]">
|
|
Sign Up
|
|
</button>
|
|
</form>
|
|
);
|
|
};
|
|
|
|
export default ComponentsAuthRegisterForm;
|