diff --git a/src/components/Blogss/design2/BlogDesign2.scss b/src/components/Blogss/design2/BlogDesign2.scss deleted file mode 100644 index a175b31..0000000 --- a/src/components/Blogss/design2/BlogDesign2.scss +++ /dev/null @@ -1,7 +0,0 @@ -.child-text { - transition: all 0.4s; -} -.parent:hover .child-text { - transition: all 0.4s; - transform: translateY(-7px) !important; -} diff --git a/src/components/Blogss/design3/index.js b/src/components/Blogss/design3/index.js index 4c07090..6c9fbc3 100644 --- a/src/components/Blogss/design3/index.js +++ b/src/components/Blogss/design3/index.js @@ -1,107 +1,71 @@ import React from "react"; - -import blogFeaturedImage2 from "../assets/blog-featured-image2.jpg"; -import blogAuthorImg from "../assets/blog-author.png"; -import commentIcon from "../assets/light-gray-comment-icon.svg"; +import CommentIcon from "../../MiniComponents/CommentIcon"; const BlogDesign3 = ({ + blogTitle, blogSubTitle, + featuredImage, blogAuthor, + blogAuthorImg, blogComments, - blogTitleColor, - blogCommentAuthorTextColor, - commentNumBgColor, - commentNumTextColor, - commentNumTopPosition, - commentNumRightPosition, }) => { return ( -
-
- {/* */} -
-

- آیا مواد غذای پر فیبر و مفید هستند؟ +
+ {/* */} +
+ {blogTitle && ( +

+ {blogTitle} +

+ )} + {blogSubTitle && ( +

+ شما چه فکری می کنید

- {blogSubTitle && ( -

- نظر شما چیه -

+ )} +
+ {blogAuthor && ( +
+ author +

{blogAuthor}

+
+ )} + {blogComments && ( +
+

{blogComments}

+ +
)} -
- {blogAuthor && ( -
- -

- حامد دژبانی نسب -

-
- )} - {blogComments && ( -
-

- زمان مطالعه 30 دقیقه -

-
- - - 26 - -
-
- )} -
-

+ ); }; export default BlogDesign3; -//different text colors i used: -// text-darkBlueTextColor2 -// text-productTitle -// text-lightGrayTextColor - -// 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 - BlogDesign3.defaultProps = { - blogTitleColor: "text-lightGrayTextColor", - blogCommentAuthorTextColor: "text-lightGrayTextColor", + blogTitle: `آیا مواد غذای پر فیبر و مفید هستند؟`, + blogSubTitle: `شما چه فکری می کنید`, + + featuredImage: "images/blog-featured-image2.jpg", - blogSubTitle: true, - blogAuthor: true, - blogComments: true, + blogAuthor: `حامد دژبانی نسب`, + blogAuthorImg: "images/blog-author.png", - commentNumBgColor: "bg-lightGrayBgColor", - commentNumTextColor: "text-white", - commentNumTopPosition: "-top-2", - commentNumRightPosition: "-right-2", + blogComments: `زمان مطالعه 30 دقیقه`, };