|
|
@ -7,7 +7,7 @@ const TimeLineItem = ({ data }) => ( |
|
|
|
> |
|
|
|
> |
|
|
|
<div |
|
|
|
<div |
|
|
|
className="timeline-item-content relative bg-white rounded-md shadow-sm flex flex-col items-end border border-[#D6D6D6] " |
|
|
|
className="timeline-item-content relative bg-white rounded-md shadow-sm flex flex-col items-end border border-[#D6D6D6] " |
|
|
|
style={{ maxWidth: "70%", width: "400px" }} |
|
|
|
style={{ maxWidth: "100%", width: "400px" }} |
|
|
|
> |
|
|
|
> |
|
|
|
{/* top --> time & date */} |
|
|
|
{/* top --> time & date */} |
|
|
|
<div className="flex flex-row-reverse p-3 self-end"> |
|
|
|
<div className="flex flex-row-reverse p-3 self-end"> |
|
|
@ -28,15 +28,37 @@ const TimeLineItem = ({ data }) => ( |
|
|
|
{/* divider */} |
|
|
|
{/* divider */} |
|
|
|
<div className="border border-[#F3F3F3] w-11/12 mt-4 mx-auto"></div> |
|
|
|
<div className="border border-[#F3F3F3] w-11/12 mt-4 mx-auto"></div> |
|
|
|
{/* bottom --> users */} |
|
|
|
{/* bottom --> users */} |
|
|
|
<div className="flex flex-row items-center self-start px-4 py-2"> |
|
|
|
<div className="flex flex-row justify-between px-4 py-2 w-full"> |
|
|
|
{data.users.map((user, index) => ( |
|
|
|
<div className="flex flex-row items-center"> |
|
|
|
<div key={index} className="flex flex-row items-center"> |
|
|
|
{data.users.slice(0, 3).map((user, index) => ( |
|
|
|
<p className="mr-1 text-sm text-[#00253A]"> |
|
|
|
<div key={index} className="flex flex-row items-center"> |
|
|
|
{user.name + " " + user.lname} |
|
|
|
<p className="mr-1 text-xs text-[#00253A]"> |
|
|
|
</p> |
|
|
|
{user.name + " " + user.lname} |
|
|
|
{"،"} |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
{Number(index) >= 2 ? ( |
|
|
|
))} |
|
|
|
<p className=" text-xs mx-1 text-[#00253A]">و</p> |
|
|
|
|
|
|
|
) : ( |
|
|
|
|
|
|
|
<p className=" text-xs text-[#00253A]">،</p> |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
{Number(index) === 2 && ( |
|
|
|
|
|
|
|
<p className=" text-xs text-[#00253A]"> |
|
|
|
|
|
|
|
{data.users.length - 2}+ نفر دیگه |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
))} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{/* profilePic */} |
|
|
|
|
|
|
|
<div className="flex flex-row items-center"> |
|
|
|
|
|
|
|
{data.users.slice(0, 3).map((user, i) => ( |
|
|
|
|
|
|
|
<img |
|
|
|
|
|
|
|
key={i} |
|
|
|
|
|
|
|
src={user.profilePic} |
|
|
|
|
|
|
|
className="w-10" |
|
|
|
|
|
|
|
style={{ marginLeft: "-10px" }} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
))} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<span className="circle"></span> |
|
|
|
<span className="circle"></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|