You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.6 KiB

3 years ago
import React from "react";
import blogImage from "../../../assets/images/blog-featured-image.jpg";
import blogAuthorImg from "../../../assets/images/blog-author.png";
import commentIcon from "../../../assets/icons/black-comment-icon.svg";
const BlogDesign1 = ({ blogExcerpt, blogAuthor, blogComments }) => {
return (
3 years ago
<section className="w-4/12 mx-auto p-4 bg-white rounded-md shadow-md my-8">
3 years ago
{/* title holder */}
<div className="flex items-center justify-between mb-6">
3 years ago
<h2 className="text-productTitle bg-lime-200 p-2 rounded text-base">
3 years ago
طراحی بلاگ 1
3 years ago
</h2>
3 years ago
</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/design1{" "}
</span>
</p>
</div>
{/* blog UI Design1 */}
3 years ago
<div className="flex items-center justify-around py-2 px-4">
3 years ago
<div className="w-4/12">
<img src={blogImage} alt="" className="w-full" />
</div>
<div className="w-8/12 mr-4">
3 years ago
<h2 className="text-base text-justify text-grayTextColor">
3 years ago
آیا مواد غذای پر فیبر و مفید هستند؟
</h2>
{blogExcerpt && (
3 years ago
<p className="text-justify text-sm leading-6 my-3 text-grayTextColor">
3 years ago
در این قسمت یک توضیح بسیار کوتاه یا عادی در مورد ارور نوشته خواهد
شد. طراح سعی می کند تا این متن را بیشتر از خد انتظار بلند کند تا
دیگران متوجه شوند.
</p>
)}
3 years ago
<div className="flex item-center justify-between w-full mt-4">
3 years ago
{blogAuthor && (
3 years ago
<div className="flex items-center">
3 years ago
<img src={blogAuthorImg} alt="" className="w-7 h-7" />
3 years ago
<p className="text-xs text-lightGrayTextColor mr-2 font-light">
3 years ago
حامد دژبانی نسب
</p>
</div>
)}
{blogComments && (
3 years ago
<div className="flex items-center">
3 years ago
<p className="text-xs text-lightGrayTextColor ml-2 font-light">
3 years ago
زمان مطالعه 30 دقیقه
</p>
3 years ago
<img src={commentIcon} alt="" className="w-7 h-7" />
3 years ago
</div>
)}
</div>
</div>
</div>
</section>
);
};
export default BlogDesign1;
BlogDesign1.defaultProps = {
blogExcerpt: true,
blogAuthor: true,
blogComments: true,
};