-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
frontend/peerprep/components/PasswordRequirementsTooltip.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Tooltip } from "@nextui-org/react"; | ||
import BoxIcon from "@/components/boxicons"; | ||
|
||
export default function PasswordRequirementsTooltip() { | ||
return ( | ||
<Tooltip | ||
content={ | ||
<ul className="list-disc pl-2 py-1 text-xs"> | ||
<li>At least 12 characters long</li> | ||
<li>Contains at least one uppercase letter</li> | ||
<li>Contains at least one lowercase letter</li> | ||
<li>Contains at least one digit</li> | ||
<li>Contains at least one special character (e.g., @$#!%*?&)</li> | ||
</ul> | ||
} | ||
placement="right" | ||
showArrow | ||
> | ||
<div className="flex flex-row gap-1 items-center w-fit dark:hover:text-gray-300 hover:text-gray-500 text-xs"> | ||
<BoxIcon name="bx-info-circle" size="12px" /> | ||
Password requirements | ||
</div> | ||
</Tooltip> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters