-
+
{discountPricePercent && (
@@ -101,16 +108,21 @@ const ProductDesign = ({
نسخه چاپی علموم تجربه هفتم
{productContent && (
-
+
این کتاب شامل گلدان و گیاه و خاک می باشد و همچنین آپشن های خوب
دیگری نیز دارد.
)}
+ {productCat && (
+
+ پایه سوم
+
+ )}
{star && (
@@ -120,36 +132,38 @@ const ProductDesign = ({
)}
-
- {/* price */}
-
-
+ {/* price */}
+
+
+
قیمت
+ {discountPrice && (
+
+ 145تومان
+
+ )}
+
+
+ 145.000تومان
+
+
+ {/* add to cart */}
+
-
- 145.000تومان
-
+ اضافه کردن به سبد خرید
+
- {/* add to cart */}
-
-
+ )}
{productTags && (
)}
+
@@ -172,15 +189,26 @@ const ProductDesign = ({
export default ProductDesign;
+// text colors i used for product title:
+// text-darkCrimsonTextColor
+// text-productTitle
+
ProductDesign.defaultProps = {
- colors: true,
- likeBtn: true,
- discount: true,
- discountPricePercent: true,
- discountPrice: true,
- productContent: true,
- star: true,
- productTags: true,
+ colors: false,
+ likeBtn: false,
+ discount: false,
+ discountPricePercent: false,
+ discountPrice: false,
+ productContent: false,
+ star: false,
+ productTags: false,
+ priceHolder: false,
+ productCat: true,
+ productTitleColor: "text-darkCrimsonTextColor",
+ productHolderBorder: "border-0",
+ productHolderBorderColor: "border-grayBorderColor",
priceDirection: "flex-row",
productTitleAlignment: "text-justify",
};
+
+// border-2 border-productDesignBorderColor
diff --git a/tailwind.config.js b/tailwind.config.js
index b119626..61494ab 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -26,6 +26,7 @@ module.exports = {
lightBlueTextColor: "#06BACE",
darkBlueTextColor: "#0615CE",
darkRedTextColor: "#CE3B06",
+ darkCrimsonTextColor: "#05335F",
}),
backgroundColor: (theme) => ({
...theme("colors"),
@@ -48,6 +49,8 @@ module.exports = {
lightSkyBlueBookBg: "#B2D6EE",
darkNavyBlueBookBg: "#0E0E0E",
darkCrimsonBgColor: "#132F52",
+ rangeBgColor: "#D3E9FF",
+ rangeFillBgColor: "#68A8E6",
}),
borderColor: (theme) => ({
...theme("colors"),