-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ft-main-admin-dashboard' of https://github.com/atlp-rwa…
…nda/atlp-pulse-fn into ft-main-admin-dashboard
- Loading branch information
Showing
9 changed files
with
314 additions
and
220 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from 'react'; | ||
|
||
interface ProgressBarProps { | ||
passedPercentage: number; // Percentage of passed logins | ||
failedPercentage: number; // Percentage of failed logins | ||
} | ||
|
||
function ProgressBar({ passedPercentage, failedPercentage }: ProgressBarProps) { | ||
return ( | ||
<div className="w-1/2 space-y-4"> | ||
<div className="relative h-6 rounded-full overflow-hidden bg-gray-200 dark:bg-gray-700"> | ||
<div | ||
className="absolute h-full bg-green-500 text-white text-center" | ||
style={{ width: `${passedPercentage}%` }} | ||
> | ||
{passedPercentage}% | ||
</div> | ||
<div | ||
className="absolute h-full bg-red-500 text-white text-center" | ||
style={{ | ||
width: `${failedPercentage}%`, | ||
left: `${passedPercentage}%`, | ||
}} | ||
> | ||
{failedPercentage}% | ||
</div> | ||
</div> | ||
<div className="flex justify-between text-sm text-gray-600 dark:text-gray-300"> | ||
<p className="text-sm text-gray-600 dark:text-gray-300"> | ||
<span className="text-green-500 font-semibold">Green</span>: Passed | ||
Logins | ||
</p> | ||
<p className="text-sm text-gray-600 dark:text-gray-300"> | ||
<span className="text-red-500 font-semibold">Red</span>: Failed Logins | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default ProgressBar; |
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
Oops, something went wrong.