add link to blog authors

This commit is contained in:
Isaiah Hamilton committed 2021-12-27 18:58:13 -05:00
1 parent 99ba7024f4
commit 5bdca07883
2 files changed
+19 -21

No files matched your search

-6
View File
@@ -3,42 +3,36 @@
"author": "Rory Wilding",
"author_url": "https://github.com/roryw10",
"author_image_url": "https://github.com/roryw10.png",
"authorURL": "https://github.com/roryw10",
"position": "Head of Growth"
},
"ant_wilson": {
"author": "Ant Wilson",
"author_url": "https://github.com/awalias",
"author_image_url": "https://github.com/awalias.png",
"authorURL": "https://github.com/awalias",
"position": "CTO and Co-Founder"
},
"paul_copplestone": {
"author": "Paul Copplestone",
"author_url": "https://github.com/kiwicopple",
"author_image_url": "https://github.com/kiwicopple.png",
"authorURL": "https://github.com/kiwicopple",
"position": "CEO and Co-Founder"
},
"angelico_de_los_reyes": {
"author": "Angelico de los Reyes",
"author_url": "https://github.com/dragarcia",
"author_image_url": "https://avatars0.githubusercontent.com/u/26374889?s=400&u=f5e35e9b47a50fa2b4d8c4bb96babd921071bcf1&v=4",
"authorURL": "https://github.com/dragarcia",
"position": ""
},
"thor_schaeff": {
"author": "Thor Schaeff",
"author_url": "https://github.com/thorwebdev",
"author_image_url": "https://github.com/thorwebdev.png",
"authorURL": "https://github.com/thorwebdev",
"position": "DevRel & DX"
},
"supabase": {
"author": "Supabase",
"author_url": "https://github.com/supabase",
"author_image_url": "https://github.com/supabase.png",
"authorURL": "https://github.com/supabase",
"position": ""
},
"inian": {
+19 -15
View File
@@ -208,21 +208,25 @@ function BlogPostPage(props: any) {
</Typography.Text>
</div>
{author && (
<div className="mt-6 mb-8 lg:mb-0">
<Space size={4}>
{author.author_image_url && (
<img
src={author.author_image_url}
className="rounded-full w-10 border dark:border-dark"
/>
)}
<Space direction="vertical" size={0}>
<Typography.Text>{author.author}</Typography.Text>
<Typography.Text type="secondary" small>
{author.position}
</Typography.Text>
</Space>
</Space>
<div className="mt-6 mb-8 lg:mb-0 w-max">
<Link href={author.author_url}>
<a className="cursor-pointer">
<Space size={4}>
{author.author_image_url && (
<img
src={author.author_image_url}
className="rounded-full w-10 border dark:border-dark"
/>
)}
<Space direction="vertical" size={0}>
<Typography.Text>{author.author}</Typography.Text>
<Typography.Text type="secondary" small>
{author.position}
</Typography.Text>
</Space>
</Space>
</a>
</Link>
</div>
)}
</div>