Skip to content

Commit

Permalink
Update Author Section
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Sep 7, 2023
1 parent 5f878e2 commit 24457e2
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions blog/src/components/post/PostFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,7 @@ import { BigTag } from '../tags/BigTag';
export const PostFooter = ({ post }: { post: BlogPostMetadata }) => {
return (
<div className="not-prose mx-auto mt-6 flex w-full max-w-3xl flex-col gap-4">
{/* add a horizontal line to indicate start of footer */}
<hr className="my-6 border-t-2" />
<div
className={clsx(
'grid grid-cols-1 gap-4',
post.authors.length > 1 ? 'sm:grid-cols-2' : ''
)}
>
{post.authors.map((author) => (
<Author name={author} socials={false} size="small" link />
))}
</div>
<div className="flex flex-col items-center gap-4 rounded-lg bg-white p-2 sm:flex-row sm:justify-between">
{/* insert share buttons for twitter, linkedin and facebook */}

<div className="my-2 flex flex-wrap justify-center gap-2">
{post.tags.map((tag) => (
<BigTag tag={tag} />
Expand Down Expand Up @@ -69,6 +55,16 @@ export const PostFooter = ({ post }: { post: BlogPostMetadata }) => {
</a>
</div>
</div>
<div
className={clsx(
'grid grid-cols-1 gap-4',
post.authors.length > 1 ? 'sm:grid-cols-2' : ''
)}
>
{post.authors.map((author) => (
<Author name={author} socials={false} size="small" link />
))}
</div>
</div>
);
};

0 comments on commit 24457e2

Please sign in to comment.