|
|
|
import React from "react";
|
|
|
|
|
|
|
|
import blogFeaturedImage2 from "../../../assets/images/blog-featured-image2.jpg";
|
|
|
|
import blogAuthorImg from "../../../assets/images/blog-author.png";
|
|
|
|
|
|
|
|
import whiteCommentIcon from "../../../assets/icons/white-comment-icon.svg";
|
|
|
|
|
|
|
|
const BlogDesign2 = ({ blogSubTitle, dateButton, tagButton }) => {
|
|
|
|
return (
|
|
|
|
<section className="w-11/12 mx-auto p-4 bg-white rounded-md shadow-md my-8">
|
|
|
|
{/* title holder */}
|
|
|
|
<div className="flex items-center justify-between mb-6">
|
|
|
|
<h2 className="text-productTitle bg-green-100 p-2 rounded text-base">
|
|
|
|
طراحی بلاگ 2
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div className="mb-6">
|
|
|
|
<p className="leading-10">
|
|
|
|
آدرس:
|
|
|
|
<span className="bg-blue-400 text-white rounded shadow-sm px-2 py-1 mx-2">
|
|
|
|
blogs/design2
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{/* blog UI Design2 */}
|
|
|
|
<div className="relative w-full md:w-1/4">
|
|
|
|
{dateButton && (
|
|
|
|
<button className="bg-yellow-100 rounded p-1 text-sm absolute left-2 top-4">
|
|
|
|
1400/09/19
|
|
|
|
</button>
|
|
|
|
)}
|
|
|
|
{tagButton && (
|
|
|
|
<button className="bg-yellow-100 rounded p-1 text-sm absolute left-2 top-4">
|
|
|
|
تگ
|
|
|
|
</button>
|
|
|
|
)}
|
|
|
|
<img src={blogFeaturedImage2} alt="" className="w-full" />
|
|
|
|
<div className="absolute right-2 bottom-16">
|
|
|
|
<h2 className="text-white text-lg">
|
|
|
|
آیا مواد غذایی پر فیبر مفید هستند؟
|
|
|
|
</h2>
|
|
|
|
{blogSubTitle && (
|
|
|
|
<h2 className="text-white text-lg">شما چه فکری می کنید</h2>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
<div className="flex item-center justify-around absolute right-2 bottom-1 w-full">
|
|
|
|
{/* {blogAuthor && ( */}
|
|
|
|
<div className="flex items-center">
|
|
|
|
<img src={blogAuthorImg} alt="" />
|
|
|
|
<p className="text-xs text-white mr-2">حامد دژبانی نسب</p>
|
|
|
|
</div>
|
|
|
|
{/* // )} */}
|
|
|
|
{/* {blogComments && ( */}
|
|
|
|
<div className="flex items-center">
|
|
|
|
<p className="text-xs text-white ml-2">زمان مطالعه 30 دقیقه</p>
|
|
|
|
<img src={whiteCommentIcon} alt="" />
|
|
|
|
</div>
|
|
|
|
{/* // )} */}
|
|
|
|
</div>
|
|
|
|
{/* <div className="absolute right-2 bottom-20 h-16 w-11/12 shadow-2xl shdadow-black"></div> */}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BlogDesign2;
|
|
|
|
|
|
|
|
BlogDesign2.defaultProps = {
|
|
|
|
blogSubTitle: true,
|
|
|
|
dateButton: false,
|
|
|
|
tagButton: true,
|
|
|
|
};
|