The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: move share links
Francesco Sansalvadore9dbb7c1673fd
diff --git a/apps/www/components/LaunchWeek/BlogLinks.tsx b/apps/www/components/LaunchWeek/BlogLinks.tsxindex 00ec35233ab..28136328611 100644--- a/apps/www/components/LaunchWeek/BlogLinks.tsx+++ b/apps/www/components/LaunchWeek/BlogLinks.tsx@@ -15,7 +15,7 @@ const BlogLinks = () => {return (<div className="flex gap-2 z-10"><a href={blog} target="_blank" rel="noopener">- <div className="flex items-center border border-slate-400 bg-gradient-to-r from-[#fcfcfc] to-[#f2f2f2] hover:to-[#d5d5d5] text-black dark:text-white dark:from-[#191919] dark:to-[#464444] dark:hover:to-[#4e4e4e] rounded-full text-sm py-2 pl-3 pr-2">+ <div className="flex items-center border border-slate-400 bg-gradient-to-r to-[#fcfcfc] from-[#f2f2f2] hover:from-[#d5d5d5] text-black dark:text-white dark:to-[#191919] dark:from-[#464444] dark:hover:from-[#4e4e4e] rounded-full text-xs py-1 pl-3 pr-1">Blog post<div className="bg-[#eeeeee] dark:bg-[#313131] rounded-full inline-block p-1 ml-2"><PencilSvg />@@ -58,9 +58,7 @@ const BlogLinks = () => {<div className="flex flex-col gap-3 lg:gap-4 border-t border-scale-400 py-4 lg:py-8 mt-4 lg:mt-8"><h3 className="text-white text-xl mb-4">More Launch Week 7</h3>{activeDays.map((day) => (- <div- className={`min-h-[150px] w-full flex flex-col lg:flex-row group/day${day.d} relative overflow-hidden`}- >+ <div className={`h-auto w-full flex flex-col lg:flex-row relative overflow-hidden`}><divclassName={`flex flex-col flex-1 gap-3 items-start justify-center border rounded-xl h-full relative overflow-hidden@@ -69,15 +67,15 @@ const BlogLinks = () => {before:border-[#1f3536] before:-z-10`}>- <div className="flex items-center lg: justify-between flex-col-reverse lg:flex-row lg:justify-start gap-2 text-black dark:text-white">+ <div className="flex items-center text-lg flex-col-reverse lg:flex-row lg:justify-start gap-2 text-black dark:text-white"><div className="text-transparent bg-clip-text bg-gradient-to-r from-[#F4FFFA] to-[#B7B2C9]">{day.title}</div></div><SectionButtons- docs={day.steps[0].docs}+ // docs={day.steps[0].docs}blog={day.steps[0].blog}- youtube_id={day.steps[0].youtube_id}+ // youtube_id={day.steps[0].youtube_id}/></div>{day.steps[0].thumb && (diff --git a/apps/www/pages/blog/[slug].tsx b/apps/www/pages/blog/[slug].tsxindex 20878bf3dac..d544193eb04 100644--- a/apps/www/pages/blog/[slug].tsx+++ b/apps/www/pages/blog/[slug].tsx@@ -15,7 +15,6 @@ import { mdxSerialize } from '~/lib/mdx/mdxSerialize'import { getAllPostSlugs, getPostdata, getSortedPosts } from '~/lib/posts'import BlogLinks from '~/components/LaunchWeek/BlogLinks'import { useEffect, useRef, useState } from 'react'-import { motion } from 'framer-motion'// table of contents extractorconst toc = require('markdown-toc')@@ -66,7 +65,6 @@ export async function getStaticProps({ params }: any) {function BlogPostPage(props: any) {const articleRef = useRef(null)- const [showStickyShare, setShowStickyShare] = useState(false)const content = props.blog.contentconst authorArray = props.blog.author.split(',')const isLaunchWeek7 = props.blog.launchweek === 7@@ -192,10 +190,7 @@ function BlogPostPage(props: any) {)const handleScroll = () => {- const article = articleRef?.current- if (!article || typeof window === 'undefined') return null- const articleContainer = (article as any)?.getBoundingClientRect()- setShowStickyShare(articleContainer.top <= 65 && articleContainer.bottom >= 100)+ // TODO: activate toc sections}useEffect(() => {@@ -267,18 +262,6 @@ function BlogPostPage(props: any) {Back</a></p>- <motion.div- className="hidden lg:block lg:sticky lg:top-16"- animate={{ opacity: showStickyShare ? 1 : 0 }}- transition={{ duration: 0.2, ease: [0.6, 0, 0.2, 1] }}- >- <div className="py-4 lg:py-8">- <div className="text-scale-900 dark:text-scale-1000 text-sm">- Share this article- </div>- <ShareArticleActions />- </div>- </motion.div></div><div className="col-span-12 lg:col-span-12 xl:col-span-10">{/* Title and description */}@@ -381,8 +364,7 @@ function BlogPostPage(props: any) {</div>{/* Sidebar */}<div className="col-span-12 space-y-8 lg:col-span-5 xl:col-span-3 xl:col-start-9">- {/* <div className="space-y-8 lg:sticky lg:top-24 lg:mb-24"> */}- <div className="space-y-8 lg:mb-24">+ <div className="space-y-8 lg:sticky lg:top-24 lg:mb-24"><div className="hidden lg:block">{toc}</div><div><div className="mb-4">@@ -394,9 +376,9 @@ function BlogPostPage(props: any) {<div><p className="cursor-pointer"><div className="flex gap-2">- <div className="text-scale-900">+ {/* <div className="text-scale-900"><IconFile size={'small'} style={{ minWidth: '1.2rem' }} />- </div>+ </div> */}<span className="text-scale-1100 hover:text-gray-1200 text-sm">{post.title}</span>@@ -413,6 +395,10 @@ function BlogPostPage(props: any) {</a></Link></div>+ <div className="py-4 lg:py-8">+ <div className="text-scale-1200 text-sm">Share this article</div>+ <ShareArticleActions />+ </div></div></div></div>