update src/components/CardTrelloDesign/index.js and src/components/NewTagDesign/index.js

master
Your Name 3 years ago
parent 995e35b6b3
commit 78f4f3f41c
  1. 28
      src/components/CardTrelloDesign/index.js
  2. 4
      src/components/NewTagDesign/index.js

@ -29,13 +29,13 @@ const CardTrelloDesign = ({ circle, pictures }) => {
{/* 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">
<ButtonNewDesign <ButtonNewDesign
bgColor={"bg-[#ff0a3c]"} bgColor={"bg-[#FF0A3C]"}
bgHoverColor={"bg-transparent"} bgHoverColor={"bg-transparent"}
border={"border-none"} border={"border-none"}
paddingX={"p-3"} paddingX={"p-1"}
paddingY={"p-3"} paddingY={"p-0.5"}
fontSize={"text-xs"} fontSize={"text-xs"}
borderRadius={"rounded-md"} borderRadius={"rounded-sm"}
icon={false} icon={false}
text={"رابط کاربری"} text={"رابط کاربری"}
/> />
@ -43,8 +43,8 @@ const CardTrelloDesign = ({ circle, pictures }) => {
bgColor={"bg-[#0AABFF]"} bgColor={"bg-[#0AABFF]"}
bgHoverColor={"bg-transparent"} bgHoverColor={"bg-transparent"}
border={"border-none"} border={"border-none"}
paddingX={"p-3"} paddingX={"p-1"}
paddingY={"p-3"} paddingY={"p-0.5"}
fontSize={"text-xs"} fontSize={"text-xs"}
borderRadius={"rounded-sm"} borderRadius={"rounded-sm"}
icon={false} icon={false}
@ -54,10 +54,10 @@ const CardTrelloDesign = ({ circle, pictures }) => {
bgColor={"bg-[#C7FF0A]"} bgColor={"bg-[#C7FF0A]"}
bgHoverColor={"bg-transparent"} bgHoverColor={"bg-transparent"}
border={"border-none"} border={"border-none"}
paddingX={"p-3"} paddingX={"p-1"}
paddingY={"p-3"} paddingY={"p-0.5"}
fontSize={"text-xs"} fontSize={"text-xs"}
borderRadius={"rounded-md"} borderRadius={"rounded-sm"}
icon={false} icon={false}
text={"بک اند"} text={"بک اند"}
/> />
@ -91,12 +91,13 @@ const CardTrelloDesign = ({ circle, pictures }) => {
titleColor="text-[#007987]" titleColor="text-[#007987]"
tagBgColor={"bg-[#06BACE33]"} tagBgColor={"bg-[#06BACE33]"}
border={"border-none"} border={"border-none"}
borderRadius={"rounded-sm"}
iconWidth={"w-4"} iconWidth={"w-4"}
marginRight="mr-0" marginRight="mr-0"
marginLeft="ml-1" marginLeft="ml-1"
icon={clock} icon={clock}
paddingY={"p-2"} paddingY={"p-1"}
paddingX={"p-2"} paddingX={"p-1"}
/> />
<NewTagDesign <NewTagDesign
title="12 از 13" title="12 از 13"
@ -104,12 +105,13 @@ const CardTrelloDesign = ({ circle, pictures }) => {
titleColor="text-[#FFB300]" titleColor="text-[#FFB300]"
tagBgColor={"bg-[#FFAA0033]"} tagBgColor={"bg-[#FFAA0033]"}
border={"border-none"} border={"border-none"}
borderRadius={"rounded-sm"}
iconWidth={"w-4"} iconWidth={"w-4"}
marginRight="mr-0" marginRight="mr-0"
marginLeft="ml-1" marginLeft="ml-1"
icon={nike} icon={nike}
paddingY={"p-2"} paddingY={"p-1"}
paddingX={"p-2"} paddingX={"p-1"}
/> />
</div> </div>
</div> </div>

@ -10,6 +10,7 @@ const NewTagDesign = ({
icon, icon,
fontSize, fontSize,
border, border,
borderRadius,
iconWidth, iconWidth,
marginRight, marginRight,
marginLeft, marginLeft,
@ -19,7 +20,7 @@ const NewTagDesign = ({
}) => { }) => {
return ( return (
<button <button
className={`flex ${align} items-center rounded ${paddingY} ${paddingX} ${border} ${fontSize} ${titleColor} ${tagBorderColor} ${tagBgColor} `} className={`flex ${align} items-center ${borderRadius} ${paddingY} ${paddingX} ${border} ${fontSize} ${titleColor} ${tagBorderColor} ${tagBgColor} `}
> >
{title} {title}
{icon && ( {icon && (
@ -41,6 +42,7 @@ NewTagDesign.defaultProps = {
titleColor: "text-blue-600", titleColor: "text-blue-600",
tagBgColor: "bg-blue-300 bg-opacity-10", tagBgColor: "bg-blue-300 bg-opacity-10",
border: "border-2", border: "border-2",
borderRadius: "rounded-full",
tagBorderColor: "border-blue-600", tagBorderColor: "border-blue-600",
fontSize: "text-xs", fontSize: "text-xs",
iconWidth: "w-2.5", iconWidth: "w-2.5",

Loading…
Cancel
Save