-
-
Notifications
You must be signed in to change notification settings - Fork 853
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) Improved UI of play Typing Speed Test (#1558)
I have update the UI made it more user friendly issue #1552 Co-authored-by: BayajidAlam <[email protected]> Co-authored-by: Priyankar Pal <[email protected]>
- Loading branch information
1 parent
234abda
commit 81ff5ae
Showing
17 changed files
with
372 additions
and
287 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
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
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
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'; | ||
|
||
const Statistics = ({ wpm, cpm, accuracy, timeLeft }) => { | ||
return ( | ||
<div className="statistics flex justify-center w-3/5 mx-auto gap-4"> | ||
<div | ||
className="rounded-[50%] bg-white border-2 w-20 md:w-28 md:h-28 h-20 p-4 flex justify-center items-center flex-col" | ||
style={{ border: '1px solid var(--color-brand-primary)', borderWidth: '3px' }} | ||
> | ||
<p className="text-2xl md:text-4xl font-bold">{timeLeft}</p> | ||
<p className="text-sm">Seconds</p> | ||
</div> | ||
|
||
<div | ||
className="rounded-[50%] bg-white border-2 w-20 md:w-28 md:h-28 h-20 p-4 flex justify-center items-center flex-col" | ||
style={{ border: '1px solid var(--color-brand-primary)', borderWidth: '3px' }} | ||
> | ||
<p className="text-2xl md:text-4xl font-bold">{Math.round(wpm)}</p> | ||
<p className="text-sm">WPM</p> | ||
</div> | ||
|
||
<div | ||
className="rounded-[50%] bg-white border-2 w-20 md:w-28 md:h-28 h-20 p-4 flex justify-center items-center flex-col" | ||
style={{ border: '1px solid var(--color-brand-primary)', borderWidth: '3px' }} | ||
> | ||
<p className="text-2xl md:text-4xl font-bold">{Math.round(cpm)}</p> | ||
<p className="text-sm">CPM</p> | ||
</div> | ||
|
||
<div | ||
className="rounded-[50%] bg-white border-2 w-20 md:w-28 md:h-28 h-20 p-4 flex justify-center items-center flex-col" | ||
style={{ border: '1px solid var(--color-brand-primary)', borderWidth: '3px' }} | ||
> | ||
<p className="text-2xl md:text-4xl font-bold">{Math.round(accuracy)}</p> | ||
<p className="text-sm"> accuracy</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Statistics; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.