update src/views/Blog/index.js

master
mahdi 2 years ago
parent ec66729bd7
commit dc2fa0fbd5
  1. 13
      src/views/Blogs/layouts/Single.js

@ -59,13 +59,20 @@ export const Single = ({ blog, isMobile }) => {
{!isMobile && (
<div className="w-full flex justify-between">
<div className="flex">
<Avatar size={80} />
{!blog?.author.picFileId && <Avatar size={80} />}
{blog?.author.picFileId && (
<img
src={`https://dnvn.ir/api/v1/file/${blog?.author.picFileId}`}
alt=""
/>
)}
<div className="flex flex-col py-2 mr-2 justify-center">
<strong className="lg:text-xl lg:font-black text-gray1">
{window.t("نوشته از:" + " " + "کامران ایزدی")}
{window.t("نوشته از:")}
{blog?.author.name}
</strong>
<p className="lg:text-tiny lg:font-semibold text-gray70 mt-3">
{window.t("سردبیر بخش وبلاگ دانوین ایزدی")}
{blog?.author.role}
</p>
</div>
</div>

Loading…
Cancel
Save