From bf9ef453f6db6bb325885d75a61e535e04176bfb Mon Sep 17 00:00:00 2001
From: mahdi
Date: Tue, 4 Jan 2022 13:20:50 +0330
Subject: [PATCH] update
---
src/App.js | 8 +-
src/assets/icons/black-comment-icon.svg | 15 ---
src/assets/icons/light-blue-icon.svg | 3 +
src/assets/icons/light-gray-comment-icon.svg | 11 +++
src/assets/icons/white-comment-icon.svg | 20 ++--
src/components/Blogs/design1/BlogDesign1.js | 39 +++++---
src/components/Blogs/design2/BlogDesign2.js | 31 +++++--
src/components/Blogs/design3/BlogDesign3.js | 35 ++++---
src/components/Blogs/design4/BlogDesign4.js | 91 ++++++++++++-------
src/components/Blogs/design5/BlogDesign5.js | 44 ++++++---
src/components/Blogs/design6/BlogDesign6.js | 40 +++++---
.../vodProductDesign/VodProductDesign.js | 9 +-
src/index.scss | 2 +-
tailwind.config.js | 1 +
14 files changed, 229 insertions(+), 120 deletions(-)
delete mode 100644 src/assets/icons/black-comment-icon.svg
create mode 100644 src/assets/icons/light-blue-icon.svg
create mode 100644 src/assets/icons/light-gray-comment-icon.svg
diff --git a/src/App.js b/src/App.js
index 5adddaa..c2ac77b 100644
--- a/src/App.js
+++ b/src/App.js
@@ -16,18 +16,18 @@ import VodProductDesign from "./components/vodProductDesign/VodProductDesign";
function App() {
return (
-
-
+ {/*
*/}
+ {/*
*/}
{/*
*/}
{/*
*/}
{/*
*/}
{/*
*/}
- {/*
*/}
+
{/*
*/}
{/*
*/}
{/*
*/}
{/*
*/}
- {/*
*/}
+
{/*
*/}
);
diff --git a/src/assets/icons/black-comment-icon.svg b/src/assets/icons/black-comment-icon.svg
deleted file mode 100644
index da56688..0000000
--- a/src/assets/icons/black-comment-icon.svg
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/src/assets/icons/light-blue-icon.svg b/src/assets/icons/light-blue-icon.svg
new file mode 100644
index 0000000..1be0b07
--- /dev/null
+++ b/src/assets/icons/light-blue-icon.svg
@@ -0,0 +1,3 @@
+
diff --git a/src/assets/icons/light-gray-comment-icon.svg b/src/assets/icons/light-gray-comment-icon.svg
new file mode 100644
index 0000000..7cd4bda
--- /dev/null
+++ b/src/assets/icons/light-gray-comment-icon.svg
@@ -0,0 +1,11 @@
+
diff --git a/src/assets/icons/white-comment-icon.svg b/src/assets/icons/white-comment-icon.svg
index 1f92bb9..d67df87 100644
--- a/src/assets/icons/white-comment-icon.svg
+++ b/src/assets/icons/white-comment-icon.svg
@@ -1,15 +1,11 @@
-
-
-
+
+
26
- {" "}
+
)}
@@ -75,8 +80,21 @@ const BlogDesign6 = ({ blogExcerpt, blogAuthor, blogComments }) => {
export default BlogDesign6;
+// background color i used in commnet number background color
+// bg-lightGrayBgColor
+// bg-white
+
+// text color i used for comment number text color:
+// text-grayTextColor
+// text-white
+
BlogDesign6.defaultProps = {
blogExcerpt: true,
blogAuthor: true,
blogComments: true,
+
+ commentNumBgColor: "bg-lightGrayBgColor",
+ commentNumTextColor: "text-white",
+ commentNumTopPosition: "-top-2",
+ commentNumRightPosition: "-right-2",
};
diff --git a/src/components/vodProductDesign/VodProductDesign.js b/src/components/vodProductDesign/VodProductDesign.js
index beb2d8d..214a095 100644
--- a/src/components/vodProductDesign/VodProductDesign.js
+++ b/src/components/vodProductDesign/VodProductDesign.js
@@ -45,6 +45,7 @@ const VodProductDesign = ({
priceStarHolder,
priceStarAlignment,
rangeWidth,
+ playBtnBgColor,
}) => {
return (
@@ -97,7 +98,7 @@ const VodProductDesign = ({
)}
{/* play button */}
-
+
{/* select Color */}
@@ -258,6 +259,10 @@ export default VodProductDesign;
// text color i used for product cat:
// text-darkCrimsonTextColor
+// bg color i used for play button icon:
+// bg-playButtonIcon
+// bg-playButtonIcon2
+
VodProductDesign.defaultProps = {
// icons on product image
colors: true,
@@ -298,6 +303,8 @@ VodProductDesign.defaultProps = {
productTitleCategoryHolder: "flex-row",
productTitleCategoryHolderAlignment: "items-center",
+ playBtnBgColor: "bg-playButtonIcon",
+
// برای اینکه بتونیم ستاره هارو بالا قیمت بزاریم و دیزاین را مثل کتاب ها در بیاریم
// یادمون باشه که حتما رویه
// flex-col-reverse
diff --git a/src/index.scss b/src/index.scss
index a7c5efc..e3004a8 100644
--- a/src/index.scss
+++ b/src/index.scss
@@ -16,7 +16,7 @@ body {
}
.comment-num {
- font-size: 10px;
+ font-size: 8px;
padding-top: 4px;
padding-bottom: 2px;
padding-left: 4px;
diff --git a/tailwind.config.js b/tailwind.config.js
index caef8f2..bb0cb35 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -54,6 +54,7 @@ module.exports = {
rangeBgColor: "#D3E9FF",
rangeFillBgColor: "#68A8E6",
playButtonIcon: "#0D0D0D99",
+ playButtonIcon2: "#E8E8E899",
}),
borderColor: (theme) => ({
...theme("colors"),