From e946e209813a04dfcf6755927e8521df1fe21637 Mon Sep 17 00:00:00 2001 From: mahdi andalib Date: Mon, 11 Apr 2022 23:49:20 +0430 Subject: [PATCH] update src/components/CardTrelloDesign/index.js and src/components/NewTagDesign/index.js --- .../CardTrelloDesign/images/clock.svg | 18 +++++++++++++ .../CardTrelloDesign/images/nike.svg | 16 +++++++++++ src/components/CardTrelloDesign/index.js | 27 +++++++++++++++++-- src/components/NewTagDesign/index.js | 22 +++++++++++++-- 4 files changed, 79 insertions(+), 4 deletions(-) create mode 100644 src/components/CardTrelloDesign/images/clock.svg create mode 100644 src/components/CardTrelloDesign/images/nike.svg diff --git a/src/components/CardTrelloDesign/images/clock.svg b/src/components/CardTrelloDesign/images/clock.svg new file mode 100644 index 0000000..bdfd0b6 --- /dev/null +++ b/src/components/CardTrelloDesign/images/clock.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/components/CardTrelloDesign/images/nike.svg b/src/components/CardTrelloDesign/images/nike.svg new file mode 100644 index 0000000..c7a93b4 --- /dev/null +++ b/src/components/CardTrelloDesign/images/nike.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/components/CardTrelloDesign/index.js b/src/components/CardTrelloDesign/index.js index 8141e95..20285f0 100644 --- a/src/components/CardTrelloDesign/index.js +++ b/src/components/CardTrelloDesign/index.js @@ -6,6 +6,8 @@ import NewTagDesign from "../NewTagDesign"; import profilePic1 from "./images/profilePic1.svg"; import profilePic2 from "./images/profilePic2.svg"; import profilePic3 from "./images/profilePic3.svg"; +import clock from "./images/clock.svg"; +import nike from "./images/nike.svg"; const CardTrelloDesign = ({ circle, pictures }) => { return ( @@ -75,8 +77,29 @@ const CardTrelloDesign = ({ circle, pictures }) => { {/* left */}
- - + + {/* */}
diff --git a/src/components/NewTagDesign/index.js b/src/components/NewTagDesign/index.js index 131127c..527881a 100644 --- a/src/components/NewTagDesign/index.js +++ b/src/components/NewTagDesign/index.js @@ -10,13 +10,25 @@ const NewTagDesign = ({ icon, fontSize, border, + iconWidth, + marginRight, + marginLeft, + align, + paddingY, + paddingX, }) => { return ( ); }; @@ -25,11 +37,17 @@ export default NewTagDesign; NewTagDesign.defaultProps = { title: "کتاب", + align: "flex-row", titleColor: "text-blue-600", tagBgColor: "bg-blue-300 bg-opacity-10", border: "border-2", tagBorderColor: "border-blue-600", fontSize: "text-xs", + iconWidth: "w-2.5", + marginRight: "mr-5", + paddingY: "p-2", + paddingX: "p-1", + marginLeft: "ml-4", // for icons icon: blackCancleIcon, };