|
|
|
@ -1,5 +1,7 @@ |
|
|
|
|
import React from "react"; |
|
|
|
|
|
|
|
|
|
import "./BlogDesign2.scss"; |
|
|
|
|
|
|
|
|
|
import blogFeaturedImage2 from "../../../assets/images/blog-featured-image2.jpg"; |
|
|
|
|
import blogAuthorImg from "../../../assets/images/blog-author.png"; |
|
|
|
|
|
|
|
|
@ -30,7 +32,7 @@ const BlogDesign2 = ({ |
|
|
|
|
</div> |
|
|
|
|
{/* blog UI Design2 */} |
|
|
|
|
<div |
|
|
|
|
className="relative flex flex-col justify-end p-3" |
|
|
|
|
className="parent relative flex flex-col justify-end p-3 cursor-pointer" |
|
|
|
|
style={{ |
|
|
|
|
backgroundImage: `url(${blogFeaturedImage2})`, |
|
|
|
|
backgroundSize: "100% 100%", |
|
|
|
@ -50,18 +52,18 @@ const BlogDesign2 = ({ |
|
|
|
|
تگ |
|
|
|
|
</button> |
|
|
|
|
)} |
|
|
|
|
<div className="z-10"> |
|
|
|
|
<h2 className="text-white text-base"> |
|
|
|
|
<div className="z-10 child-text"> |
|
|
|
|
<h2 className="text-white text-sm"> |
|
|
|
|
آیا مواد غذایی پر فیبر مفید هستند؟ |
|
|
|
|
</h2> |
|
|
|
|
{blogSubTitle && ( |
|
|
|
|
<h2 className="text-white text-base mt-2">شما چه فکری می کنید</h2> |
|
|
|
|
<h2 className="text-white text-sm mt-2">شما چه فکری می کنید</h2> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
<div className="z-10 flex item-center justify-between w-full mt-4"> |
|
|
|
|
<div className="z-10 flex item-center justify-between w-full mt-4 child-text"> |
|
|
|
|
{blogAuthor && ( |
|
|
|
|
<div className="flex items-center"> |
|
|
|
|
<img src={blogAuthorImg} alt="" className="w-7 h-7" /> |
|
|
|
|
<img src={blogAuthorImg} alt="" className="w-6 h-6" /> |
|
|
|
|
<p className="text-xs text-white font-light mr-2"> |
|
|
|
|
حامد دژبانی نسب |
|
|
|
|
</p> |
|
|
|
@ -72,7 +74,7 @@ const BlogDesign2 = ({ |
|
|
|
|
<p className="text-xs text-white font-light ml-2"> |
|
|
|
|
زمان مطالعه 30 دقیقه |
|
|
|
|
</p> |
|
|
|
|
<img src={whiteCommentIcon} alt="" className="w-7 h-7" /> |
|
|
|
|
<img src={whiteCommentIcon} alt="" className="w-6 h-6" /> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|