-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathItem.jsx
More file actions
31 lines (30 loc) · 992 Bytes
/
Copy pathItem.jsx
File metadata and controls
31 lines (30 loc) · 992 Bytes
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
27
28
29
30
31
import { useEffect, useState } from "react";
import UseToggle from "../hooks/UseToggle";
function Item() {
const [fetchData, Infor, isLoading] = UseToggle();
return (
<div className="m-20 flex justify-around items-center flex-wrap gap-12">
{isLoading ? (
<p>Loading</p>
) : (
Infor?.map((info) => {
return (
<div
key={info.id}
className="w-[380px] h-44 border-solid border-2 border-black rounded-3xl size text-xl flex flex-col items-center shadow-cards
transition ease-in-out delay-150 bg-one hover:-translate-y-1 hover:scale-110 hover: duration-300 "
>
<h2 className=" m-5 w-full text-center text-3xl font-bold ">
{info.name}
</h2>
<p>{info.email}</p>
<p>{info.phone}</p>
<p>{info.company.name}</p>
</div>
);
})
)}
</div>
);
}
export default Item;