From 9db335640aa1d539addd414920868d17dd0440df Mon Sep 17 00:00:00 2001 From: mahdi Date: Sat, 25 Dec 2021 09:58:10 +0330 Subject: [PATCH] update --- src/components/bookDesign/BookDesign.js | 28 +++++++++++++++++-- src/components/counterDesign/CounterDesign.js | 9 ++++++ src/components/productTags/ProductTags.js | 9 ++++++ tailwind.config.js | 4 +++ 4 files changed, 48 insertions(+), 2 deletions(-) diff --git a/src/components/bookDesign/BookDesign.js b/src/components/bookDesign/BookDesign.js index 35eb2ff..afb6d38 100644 --- a/src/components/bookDesign/BookDesign.js +++ b/src/components/bookDesign/BookDesign.js @@ -4,7 +4,7 @@ import React from "react"; import book from "../../assets/images/book.svg"; import bookCover from "../../assets/images/book-white-cover.svg"; -export const BookDesign = () => { +export const BookDesign = ({ bookBackCoverBg }) => { return (
{/* title holder */} @@ -13,6 +13,15 @@ export const BookDesign = () => { طراحی کتاب +
+

+ نام این کامپوننت + + bookDesign + + است. +

+
{/* Book Ui Design */}
@@ -22,10 +31,25 @@ export const BookDesign = () => { className="rounded-md z-40 transform -translate-x-3 w-full sm:w-72 h-full" /> -
+
); }; + +export default BookDesign; + +// color classes that i defined in tailwind.config.js and we can use for background color: +// ----> bg-greenBookBg +// ----> bg-darkGreenBookBg +// ----> bg-lightBlueBookBg +// ----> bg-lightSkyBlueBookBg +// ----> bg-darkNavyBlueBookBg + +BookDesign.defaultProps = { + bookBackCoverBg: "bg-greenBookBg", +}; diff --git a/src/components/counterDesign/CounterDesign.js b/src/components/counterDesign/CounterDesign.js index 77b8d15..c9fec18 100644 --- a/src/components/counterDesign/CounterDesign.js +++ b/src/components/counterDesign/CounterDesign.js @@ -23,6 +23,15 @@ const CounterDesign = ({ طراحی کانتر +
+

+ نام این کامپوننت + + counterDesign + + است. +

+
{likeBtn && (
diff --git a/src/components/productTags/ProductTags.js b/src/components/productTags/ProductTags.js index f95402a..c3349f2 100644 --- a/src/components/productTags/ProductTags.js +++ b/src/components/productTags/ProductTags.js @@ -44,6 +44,15 @@ const ProductTags = ({ تگ محصولات
+
+

+ نام این کامپوننت + + productTags + + است. +

+
{/* product UI Design */}
diff --git a/tailwind.config.js b/tailwind.config.js index d7d4207..20274c6 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -42,6 +42,10 @@ module.exports = { lightGreenBgColor: "#5DCE0611", //opacity should be 3 % instead of 100% lightPurpleBgColor: "#A680FF11", //opacity should be 8 % instead of 100% greenBookBg: "#5DA041", + darkGreenBookBg: "#293636", + lightBlueBookBg: "#9BBCCC", + lightSkyBlueBookBg: "#B2D6EE", + darkNavyBlueBookBg: "#0E0E0E", }), borderColor: (theme) => ({ ...theme("colors"),