|
|
|
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";
|
|
|
|
|
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
|
import {} from "@fortawesome/free-brands-svg-icons";
|
|
|
|
import { faComment } from "@fortawesome/free-solid-svg-icons";
|
|
|
|
|
|
|
|
const BlogDesign5 = ({ blogExcerpt, blogAuthor, blogComments }) => {
|
|
|
|
return (
|
|
|
|
<section className="w-4/12 mx-auto p-4 bg-gray-200 rounded-md shadow-md my-8">
|
|
|
|
{/* title holder */}
|
|
|
|
<div className="flex items-center justify-between mb-6">
|
|
|
|
<h2 className="text-productTitle bg-lime-200 p-2 rounded text-base">
|
|
|
|
طراحی بلاگ 5
|
|
|
|
</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/design5
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{/* blog UI Design5 */}
|
|
|
|
<div className="flex items-strech justify-around p-4 rounded-md shadow-md bg-white">
|
|
|
|
<div className="w-2/5">
|
|
|
|
<img src={blogImage} alt="" className="w-full h-full" />
|
|
|
|
</div>
|
|
|
|
<div className="w-3/5 flex flex-col justify-around mr-4">
|
|
|
|
<h2 className="text-sm text-justify text-grayTextColor">
|
|
|
|
آیا مواد غذای پر فیبر و مفید هستند؟
|
|
|
|
</h2>
|
|
|
|
{blogExcerpt && (
|
|
|
|
<p className="text-justify text-xs leading-6 text-grayTextColor">
|
|
|
|
در این قسمت یک توضیح بسیار کوتاه یا عادی در مورد ارور نوشته خواهد
|
|
|
|
شد. طراح سعی می کند تا این متن را بیشتر از خد انتظار بلند کند تا
|
|
|
|
دیگران متوجه شوند.
|
|
|
|
</p>
|
|
|
|
)}
|
|
|
|
|
|
|
|
<div className="flex item-center justify-between w-full">
|
|
|
|
{blogAuthor && (
|
|
|
|
<div className="flex items-center">
|
|
|
|
<img src={blogAuthorImg} alt="" className="w-6 h-6" />
|
|
|
|
<p className="text-xs text-lightGrayTextColor font-light mr-2">
|
|
|
|
حامد دژبانی نسب
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
{blogComments && (
|
|
|
|
<div className="flex items-center">
|
|
|
|
<p className="text-xs text-lightGrayTextColor font-light ml-2">
|
|
|
|
زمان مطالعه 30 دقیقه
|
|
|
|
</p>
|
|
|
|
<div className="relative">
|
|
|
|
<FontAwesomeIcon
|
|
|
|
icon={faComment}
|
|
|
|
className="text-grayTextColor text-md"
|
|
|
|
></FontAwesomeIcon>
|
|
|
|
<span className="comment-num absolute -top-3 -right-3 bg-lightGrayBgColor text-white">
|
|
|
|
26
|
|
|
|
</span>
|
|
|
|
</div>{" "}
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BlogDesign5;
|
|
|
|
|
|
|
|
BlogDesign5.defaultProps = {
|
|
|
|
blogExcerpt: true,
|
|
|
|
blogAuthor: true,
|
|
|
|
blogComments: true,
|
|
|
|
};
|