Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Registration form #69

Merged
merged 6 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/components/register/all-reg-forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function AllRegForms() {
.max(50)
.refine(
(value) =>
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%?&])[A-Za-z\d@$!%?&]{8,50}$/.test(
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%?&*+-_#])[A-Za-z\d@$!%?&*+-_#]{8,50}$/.test(
value
),
{
Expand Down Expand Up @@ -180,10 +180,7 @@ export default function AllRegForms() {
render={({ field }) => (
<FormItem className={style.formStyle}>
<FormControl>
<Input
placeholder="TEAM LEADERS'S UNIVERSITY EMAIL*"
{...field}
/>
<Input placeholder="TEAM LEADERS'S NSBM MAIL*" {...field} />
</FormControl>
<FormMessage className="text-xl" />
</FormItem>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
<input
type={type}
className={cn(
"font-mono font-bold flex transition duration-300 text-[20px] placeholder:text-[#5A270B] text-[#5A270B] py-3 pl-4 text-base md:text-2xl bg-[#FEF3C7] w-[80%] sm:w-[70%] h-[12%] border-[6px] border-[#5A270B] drop-shadow-lg hover:shadow-[0px_0px_0px_0px_rgba(0,0,0,0)] shadow-[6px_6px_0px_0px_rgba(90,39,11,1)] rounded-none ",
"font-mono font-bold flex transition duration-300 text-[20px] placeholder:text-[#5A270B] text-[#5A270B] py-3 pl-4 text-xs md:text-2xl bg-[#FEF3C7] w-[80%] sm:w-[70%] h-[12%] border-[6px] border-[#5A270B] drop-shadow-lg hover:shadow-[0px_0px_0px_0px_rgba(0,0,0,0)] shadow-[6px_6px_0px_0px_rgba(90,39,11,1)] rounded-none ",
className
)}
ref={ref}
Expand Down
Loading