fix: blog authors

This commit is contained in:
Isaiah Hamilton committed 2022-03-29 07:54:28 -04:00
1 parent c0938b3bd8
commit 8bae8029c6
1 file changed
+18 -18
+18 -18
View File
@@ -170,26 +170,26 @@ function FeaturedThumb(blog: PostTypes) {
</div>
<div className="grid grid-rows-4 grid-flow-col gap-4 w-max">
{author.map((author: any) => {
return (
<div className="flex space-x-3 items-center">
{author.author_image_url && (
<div className="relative overflow-auto w-10 h-10">
<Image
src={author.author_image_url}
className="rounded-full"
layout="fill"
objectFit="cover"
/>
{author.map((author: any) => {
return (
<div className="flex space-x-3 items-center">
{author.author_image_url && (
<div className="relative overflow-auto w-10 h-10">
<Image
src={author.author_image_url}
className="rounded-full"
layout="fill"
objectFit="cover"
/>
</div>
)}
<div className="flex flex-col">
<span className="m-0 text-sm text-scale-1200">{author.author}</span>
<span className="m-0 text-xs text-scale-900">{author.position}</span>
</div>
)}
<div className="flex flex-col">
<span className="m-0 text-sm text-scale-1200">{author.author}</span>
<span className="m-0 text-xs text-scale-900">{author.position}</span>
</div>
</div>
)
})}
)
})}
</div>
</div>
</a>