-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskListNumbers.jsx
More file actions
26 lines (24 loc) · 1.11 KB
/
TaskListNumbers.jsx
File metadata and controls
26 lines (24 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React from 'react'
const TaskListNumbers = ({data}) => {
return (
<div className='flex mt-10 justify-between gap-7 screen '>
<div className='px-9 py-6 rounded-xl w-[45%] bg-red-400'>
<h2 className='text-3xl font-semibold'>{data.taskCounts.new_task}</h2>
<h3 className='text-xl font-medium'>New Task</h3>
</div>
<div className='px-9 py-6 rounded-xl w-[45%] bg-blue-400'>
<h2 className='text-3xl font-semibold'>{data.taskCounts.completed}</h2>
<h3 className='text-xl font-medium'>Completed Task</h3>
</div>
<div className='px-9 py-6 rounded-xl w-[45%] bg-green-400'>
<h2 className='text-3xl font-semibold'>{data.taskCounts.active}</h2>
<h3 className='text-xl font-medium'>Accepted Task</h3>
</div>
<div className='px-9 py-6 rounded-xl w-[45%] bg-yellow-400'>
<h2 className='text-3xl font-semibold'>{data.taskCounts.failed}</h2>
<h3 className='text-xl font-medium'>Failed Task</h3>
</div>
</div>
)
}
export default TaskListNumbers