diff --git a/src/components/Blogss/design1/index.js b/src/components/Blogss/design1/index.js
index cba9423..220f667 100644
--- a/src/components/Blogss/design1/index.js
+++ b/src/components/Blogss/design1/index.js
@@ -1,13 +1,12 @@
-import RelativeCircle from "../../RelativeCircle";
+import CommentIcon from "../../MiniComponents/CommentIcon";
+import RelativeCircle from "../../MiniComponents/RelativeCircle";
const BlogDesign1 = ({
blogTitle,
blogExcerpt,
blogAuthor,
blogComments,
- commentNum,
featuredImage,
- commentIcon,
}) => {
return (
@@ -39,14 +38,11 @@ const BlogDesign1 = ({
{blogComments}
-
-
-
-
+
)}
@@ -68,5 +64,4 @@ BlogDesign1.defaultProps = {
commentNum: `26`,
featuredImage: "images/blog-featured-image.jpg",
- commentIcon: "images/light-gray-comment-icon.svg",
};
diff --git a/src/components/CardTrelloDesign/index.js b/src/components/CardTrelloDesign/index.js
index 6a49c28..000fbc6 100644
--- a/src/components/CardTrelloDesign/index.js
+++ b/src/components/CardTrelloDesign/index.js
@@ -9,6 +9,9 @@ import messageText from "./images/message-text.svg";
import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther";
import AnimatedProgressBar from "../AnimatedProgressBar";
+import RelativeCircle from "../MiniComponents/RelativeCircle";
+import CommentIcon from "../MiniComponents/CommentIcon";
+
const CardTrelloDesign = ({
circle,
commnets,
@@ -72,14 +75,12 @@ const CardTrelloDesign = ({
10
-
-
-
-
+
)}
{showTag &&
diff --git a/src/components/MiniComponents/CommentIcon/index.js b/src/components/MiniComponents/CommentIcon/index.js
new file mode 100644
index 0000000..3f7bdd7
--- /dev/null
+++ b/src/components/MiniComponents/CommentIcon/index.js
@@ -0,0 +1,18 @@
+import React from "react";
+import RelativeCircle from "../RelativeCircle";
+
+const CommentIcon = ({ icon, commentClassName, className, commentNum }) => {
+ return (
+
+
+
+
+ );
+};
+
+export default CommentIcon;
+
+CommentIcon.defaultProps = {
+ icon: "images/light-gray-comment-icon.svg",
+ commentClassName: "w-10",
+};
diff --git a/src/components/RelativeCircle/index.js b/src/components/MiniComponents/RelativeCircle/index.js
similarity index 55%
rename from src/components/RelativeCircle/index.js
rename to src/components/MiniComponents/RelativeCircle/index.js
index a488b92..a0e4da0 100644
--- a/src/components/RelativeCircle/index.js
+++ b/src/components/MiniComponents/RelativeCircle/index.js
@@ -3,7 +3,7 @@ import React from "react";
const RelativeCircle = ({ commentNum, className }) => {
return (
{commentNum}
@@ -13,6 +13,6 @@ const RelativeCircle = ({ commentNum, className }) => {
export default RelativeCircle;
RelativeCircle.defaultProps = {
- commentNum: "26",
- className: "",
+ commentNum: "44",
+ className: "w-7 w-7 bg-red-600 text-white border-blue-400",
};
diff --git a/src/components/MiniComponents/index.js b/src/components/MiniComponents/index.js
new file mode 100644
index 0000000..674824d
--- /dev/null
+++ b/src/components/MiniComponents/index.js
@@ -0,0 +1,28 @@
+import React, { useState } from "react";
+
+import CommentIcon from "./CommentIcon";
+import RelativeCircle from "./RelativeCircle";
+
+function Blogs() {
+ const list = {
+ 1: ,
+ 2: ,
+ };
+ const [type, setType] = useState(1);
+
+ return (
+
+
+ {list[type]}
+
+ );
+}
+
+export default Blogs;
diff --git a/src/redux/data.js b/src/redux/data.js
index 1bb775b..27def74 100644
--- a/src/redux/data.js
+++ b/src/redux/data.js
@@ -9,6 +9,9 @@ import Banners from "../components/Banners";
import Blogss from "../components/Blogss";
import CardTrelloDesign from "../components/CardTrelloDesign";
+// mini components
+import MiniComponents from "../components/MiniComponents";
+
// import ButtonDesign from "./components/buttonDesign/ButtonDesign";
// import ProductDesign from "./components/productDesign/ProductDesign";
// import ProductTags from "./components/productTags/ProductTags";
@@ -199,6 +202,17 @@ const components = [
code: null,
},
},
+ // mini components
+ {
+ name: "Mini Components",
+ author: "Andalib",
+ props: [],
+ content: {
+ name: "Mini Components used in Main Components",
+ component: ,
+ code: null,
+ },
+ },
];
export default components;