|
|
|
@ -23,15 +23,16 @@ export const Target = ({ blogs, isMobile }) => { |
|
|
|
|
{blog?.title} |
|
|
|
|
</strong> |
|
|
|
|
<div className="w-full flex justify-between"> |
|
|
|
|
<div className="flex"> |
|
|
|
|
{!blog?.author.picFileId && <Avatar size={60} />} |
|
|
|
|
{blog?.author.picFileId && ( |
|
|
|
|
<img |
|
|
|
|
src={`https://dnvn.ir/api/v1/file/${blog?.author.picFileId}`} |
|
|
|
|
alt="author" |
|
|
|
|
className="w-20 rounded" |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
<div className="flex items-center"> |
|
|
|
|
<Avatar |
|
|
|
|
rounded={"rounded-full"} |
|
|
|
|
source={ |
|
|
|
|
blog?.author?.picFileId |
|
|
|
|
? `https://dnvn.ir/api/v1/file/${blog?.author?.picFileId}` |
|
|
|
|
: null |
|
|
|
|
} |
|
|
|
|
size={60} |
|
|
|
|
/> |
|
|
|
|
<div className="flex flex-col py-1 mr-1 justify-center"> |
|
|
|
|
<strong className="text-opacity-75 text-tiny text-black dark:text-gray-200"> |
|
|
|
|
{window.t("نوشته از:" + " " + `${blog?.author.name}`)} |
|
|
|
@ -41,15 +42,15 @@ export const Target = ({ blogs, isMobile }) => { |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div className="flex flex-col i justify-center items-end"> |
|
|
|
|
<span className="lg:text-tiny text-gray1 lg:font-black"> |
|
|
|
|
<div className="flex flex-col gap-y-3 justify-center items-end"> |
|
|
|
|
<span className="text-tiny text-black"> |
|
|
|
|
{window.t("زمان مطالعه:") + |
|
|
|
|
" " + |
|
|
|
|
`${blog?.duration}` + |
|
|
|
|
" " + |
|
|
|
|
window.t("دقیقه")} |
|
|
|
|
</span> |
|
|
|
|
<span className="mt-3 lg:text-tiny text-gray1 lg:font-black"> |
|
|
|
|
<span className="text-tiny text-black"> |
|
|
|
|
{moment(blog?.updatedAt).locale("fa").format("YYYY/MM/DD")} |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
@ -71,15 +72,16 @@ export const Target = ({ blogs, isMobile }) => { |
|
|
|
|
{blog?.title} |
|
|
|
|
</strong> |
|
|
|
|
<div className="w-full flex justify-between"> |
|
|
|
|
<div className="flex"> |
|
|
|
|
{!blog?.author.picFileId && <Avatar size={60} />} |
|
|
|
|
{blog?.author.picFileId && ( |
|
|
|
|
<img |
|
|
|
|
src={`https://dnvn.ir/api/v1/file/${blog?.author.picFileId}`} |
|
|
|
|
alt="author" |
|
|
|
|
className="w-20 rounded" |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
<div className="flex items-center"> |
|
|
|
|
<Avatar |
|
|
|
|
rounded={"rounded-full"} |
|
|
|
|
source={ |
|
|
|
|
blog?.author?.picFileId |
|
|
|
|
? `https://dnvn.ir/api/v1/file/${blog?.author?.picFileId}` |
|
|
|
|
: null |
|
|
|
|
} |
|
|
|
|
size={60} |
|
|
|
|
/> |
|
|
|
|
<div className="flex flex-col py-2 mr-2 justify-center"> |
|
|
|
|
<strong className="lg:text-tiny lg:font-black text-opacity-75 text-white"> |
|
|
|
|
{window.t("نوشته از:" + " " + `${blog?.author.name}`)} |
|
|
|
|