|
|
@ -9,7 +9,7 @@ import messageText from "./images/message-text.svg"; |
|
|
|
import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther"; |
|
|
|
import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther"; |
|
|
|
import AnimatedProgressBar from "../AnimatedProgressBar"; |
|
|
|
import AnimatedProgressBar from "../AnimatedProgressBar"; |
|
|
|
|
|
|
|
|
|
|
|
const CardTrelloDesign = ({ circle,commnets,tags, }) => { |
|
|
|
const CardTrelloDesign = ({ circle,commnets,buttons,tags, }) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="w-3/12 mx-auto bg-white mt-10 rounded-md shadow p-3"> |
|
|
|
<div className="w-3/12 mx-auto bg-white mt-10 rounded-md shadow p-3"> |
|
|
|
{/* top */} |
|
|
|
{/* top */} |
|
|
@ -27,9 +27,8 @@ const CardTrelloDesign = ({ circle,commnets,tags, }) => { |
|
|
|
)} |
|
|
|
)} |
|
|
|
{/* left */} |
|
|
|
{/* left */} |
|
|
|
<div className="flex flex-row gap-x-1 items-center place-content-end"> |
|
|
|
<div className="flex flex-row gap-x-1 items-center place-content-end"> |
|
|
|
|
|
|
|
{buttons.map(btn=> <ButtonNewDesign |
|
|
|
{tags.map(tag=> <ButtonNewDesign |
|
|
|
bgColor={`bg-[${btn.color}]`} |
|
|
|
bgColor={`bg-[${tag.color}]`} |
|
|
|
|
|
|
|
bgHoverColor={"bg-transparent"} |
|
|
|
bgHoverColor={"bg-transparent"} |
|
|
|
border={"border-none"} |
|
|
|
border={"border-none"} |
|
|
|
paddingX={"p-1"} |
|
|
|
paddingX={"p-1"} |
|
|
@ -37,10 +36,8 @@ const CardTrelloDesign = ({ circle,commnets,tags, }) => { |
|
|
|
fontSize={"text-xs"} |
|
|
|
fontSize={"text-xs"} |
|
|
|
borderRadius={"rounded-sm"} |
|
|
|
borderRadius={"rounded-sm"} |
|
|
|
icon={false} |
|
|
|
icon={false} |
|
|
|
text={tag.name} |
|
|
|
text={btn.name} |
|
|
|
/>)} |
|
|
|
/>)} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* middle */} |
|
|
|
{/* middle */} |
|
|
@ -66,20 +63,7 @@ const CardTrelloDesign = ({ circle,commnets,tags, }) => { |
|
|
|
<img src={messageText} alt="comment-icon" className="w-5" /> |
|
|
|
<img src={messageText} alt="comment-icon" className="w-5" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
)} |
|
|
|
)} |
|
|
|
<NewTagDesign |
|
|
|
|
|
|
|
title="29 فروردین" |
|
|
|
|
|
|
|
align={"flex-row-reverse"} |
|
|
|
|
|
|
|
titleColor="text-[#007987]" |
|
|
|
|
|
|
|
tagBgColor={"bg-[#06BACE33]"} |
|
|
|
|
|
|
|
border={"border-none"} |
|
|
|
|
|
|
|
borderRadius={"rounded-sm"} |
|
|
|
|
|
|
|
iconWidth={"w-4"} |
|
|
|
|
|
|
|
marginRight="mr-0" |
|
|
|
|
|
|
|
marginLeft="ml-1" |
|
|
|
|
|
|
|
icon={clock} |
|
|
|
|
|
|
|
paddingY={"p-1"} |
|
|
|
|
|
|
|
paddingX={"p-1"} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<NewTagDesign |
|
|
|
<NewTagDesign |
|
|
|
title="12 از 13" |
|
|
|
title="12 از 13" |
|
|
|
align={"flex-row-reverse"} |
|
|
|
align={"flex-row-reverse"} |
|
|
@ -107,19 +91,31 @@ export default CardTrelloDesign; |
|
|
|
CardTrelloDesign.defaultProps = { |
|
|
|
CardTrelloDesign.defaultProps = { |
|
|
|
circle: true, |
|
|
|
circle: true, |
|
|
|
commnets: true, |
|
|
|
commnets: true, |
|
|
|
tags: [ |
|
|
|
buttons: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: "بک اند", |
|
|
|
name: "رابط کاربری", |
|
|
|
color: "#C7FF0A" |
|
|
|
color: "#FF0A3A" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: "بک اند", |
|
|
|
name: "فرانت اند", |
|
|
|
color: "#0AABFF" |
|
|
|
color: "#0AABFF" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: "بک اند", |
|
|
|
name: "بک اند", |
|
|
|
color: "#C7FF0A" |
|
|
|
color: "#C7FF0A" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
tags: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title:"29 فروردین", |
|
|
|
|
|
|
|
color: "text-[#007987]", |
|
|
|
|
|
|
|
bgColor: "bg-[#06BACE33]", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title:"12 از 13", |
|
|
|
|
|
|
|
color: "text-[#FFB300]", |
|
|
|
|
|
|
|
bgColor: "bg-[#FFAA0033]", |
|
|
|
|
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|