From 78a5bb7a34c6afdc7ada7ec44e7d6b6ca70c75bb Mon Sep 17 00:00:00 2001 From: Isaiah Hamilton Date: Wed, 23 Feb 2022 01:36:23 -0500 Subject: [PATCH] feat: share blog post --- .../blog/[year]/[month]/[day]/[slug].tsx | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/www/pages/blog/[year]/[month]/[day]/[slug].tsx b/www/pages/blog/[year]/[month]/[day]/[slug].tsx index 8a6b9511594..0e82da8eb08 100644 --- a/www/pages/blog/[year]/[month]/[day]/[slug].tsx +++ b/www/pages/blog/[year]/[month]/[day]/[slug].tsx @@ -92,6 +92,10 @@ function BlogPostPage(props: any) { const { basePath } = useRouter() + const copyLink = () => { + navigator.clipboard.writeText(`https://supabase.com/blog/${props.blog.slug}`) + } + const NextCard = (props: any) => { const { post, label, className } = props return ( @@ -244,6 +248,66 @@ function BlogPostPage(props: any) {
{content}
+
Share with your friends
+
+
+ + + + + + + +
+ +
+ + + + + + + +
+ + +
{props.prevPost && }