The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
lw8: add youtube link
Francesco Sansalvadore2361e238323b
diff --git a/apps/www/components/LaunchWeek/8/Releases/components/index.tsx b/apps/www/components/LaunchWeek/8/Releases/components/index.tsxindex dc070d1bb84..81507f7baa9 100644--- a/apps/www/components/LaunchWeek/8/Releases/components/index.tsx+++ b/apps/www/components/LaunchWeek/8/Releases/components/index.tsx@@ -153,6 +153,8 @@ export const AccordionHeader = ({shipped,publishedAt,shippable = true,+ youtube_id,+ videoThumbnail,}: {date: stringday: number@@ -161,6 +163,8 @@ export const AccordionHeader = ({shipped?: booleanpublishedAt: stringshippable?: boolean+ youtube_id?: string+ videoThumbnail?: string}) => (<divclassName={['flex flex-1 justify-between items-stretch scroll-mt-20 text-scale-900'].join(' ')}@@ -217,19 +221,27 @@ export const AccordionHeader = ({</span>)}</div>- {day === 1 && (+ {shippable && shipped && youtube_id && (<div className="self-end hover:cursor-pointer">- <ExpandableVideo videoId="OWhKVbg1p7Y" trigger={<VideoPreviewTrigger />} />+ <ExpandableVideo+ videoId={youtube_id}+ trigger={+ <VideoPreviewTrigger+ title={`Watch: Day ${day}`}+ thumbnail={videoThumbnail ?? '/images/launchweek/8/lw8-yt-thumb.jpg'}+ />+ }+ /></div>)}</div>)-export const VideoPreviewTrigger = () => (+export const VideoPreviewTrigger = ({ title, thumbnail }: { title: string; thumbnail: string }) => (<div className="flex items-center h-full gap-3 text-xs group/vid text-scale-1100 hover:text-scale-1200 transition-colors">- <span>Watch: Day 1</span>+ <span>{title}</span><div className="relative h-8 !aspect-video flex items-center justify-center rounded overflow-hidden border border-scale-800 opacity-80 group-hover/vid:opacity-100 transition-colors">- <div className="absolute z-10 w-2.5 h-2.5 text-scale-900 opacity-70 group-hover/vid:opacity-100 transition-opacity">+ <div className="absolute z-10 w-2.5 h-2.5 text-scale-900 opacity-80 group-hover/vid:opacity-100 transition-opacity"><svg viewBox="0 0 81 91" fill="none" xmlns="http://www.w3.org/2000/svg"><pathd="M76.5621 37.998C82.3369 41.3321 82.3369 49.6673 76.5621 53.0014L13.2198 89.5721C7.44504 92.9062 0.226562 88.7386 0.226562 82.0704L0.226566 8.92901C0.226566 2.26085 7.44506 -1.90673 13.2199 1.42735L76.5621 37.998Z"@@ -238,10 +250,11 @@ export const VideoPreviewTrigger = () => (</svg></div><Image- src="/images/launchweek/8/lw8-yt-thumb.jpg"+ src={thumbnail}alt="Video thumbnail"layout="fill"objectFit="cover"+ className="blur-sm"/></div></div>diff --git a/apps/www/components/LaunchWeek/8/Releases/index.tsx b/apps/www/components/LaunchWeek/8/Releases/index.tsxindex c5d01d691d6..6c7ed265e62 100644--- a/apps/www/components/LaunchWeek/8/Releases/index.tsx+++ b/apps/www/components/LaunchWeek/8/Releases/index.tsx@@ -296,6 +296,8 @@ export default function LW8Releases() {title={day1.title}shipped={day1Shipped}publishedAt={day1.publishedAt}+ youtube_id={day1.youtube_id}+ videoThumbnail={day1.videoThumbnail}/>}disabled={true}diff --git a/apps/www/components/LaunchWeek/8/Releases/lw8_data.ts b/apps/www/components/LaunchWeek/8/Releases/lw8_data.tsindex 425dff76ba2..f922ab12dcd 100644--- a/apps/www/components/LaunchWeek/8/Releases/lw8_data.ts+++ b/apps/www/components/LaunchWeek/8/Releases/lw8_data.ts@@ -1,4 +1,6 @@const images = {+ yt_thumbnail: '/images/launchweek/8/lw8-yt-thumb.jpg',+ day_1_thumb: '/images/launchweek/8/day1/day-01-thumb.jpg','00-stay-remote': '/images/launchweek/8/day0/remote.png','00-pg-server': '/images/launchweek/8/day0/pg-server.png','00-constellation': '/images/launchweek/8/day0/constellation-pre.svg',@@ -38,6 +40,7 @@ export interface WeekDayProps {d: numberdd: stringyoutube_id: string+ videoThumbnail?: stringblogpost: stringdocs: stringtwitter_spaces?: string@@ -91,15 +94,16 @@ const days: WeekDayProps[] = [description: '',d: 1,dd: 'Mon',- youtube_id: '',+ youtube_id: 'RJccSbJ9Go4',+ videoThumbnail: images.day_1_thumb,blogpost: '',docs: '',twitter_spaces: 'https://twitter.com/i/spaces/1DXGyvjkeEeJM',steps: [{title: 'Huggingface now supported in Supabase',- blog: '/blog/',- hackernews: '/blog/',+ blog: '/blog/hugging-face-is-now-supported-in-supabase',+ hackernews: '/',twitter_spaces: 'https://twitter.com/i/spaces/1DXGyvjkeEeJM',bg_layers: [{ img: images['01-hugging'] }],steps: [],diff --git a/apps/www/public/images/launchweek/8/day1/day-01-thumb.jpg b/apps/www/public/images/launchweek/8/day1/day-01-thumb.jpgnew file mode 100644index 00000000000..c238ca71eabBinary files /dev/null and b/apps/www/public/images/launchweek/8/day1/day-01-thumb.jpg differdiff --git a/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsx b/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsxindex e288219df2f..5966ec25db1 100644--- a/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsx+++ b/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsx@@ -70,7 +70,7 @@ export function ExpandableVideo({'!bg-[#f8f9fa]/95 dark:!bg-[#1c1c1c]/80','!border-[#e6e8eb]/90 dark:!border-[#282828]/90','transition ease-out',- 'mx-auto backdrop-blur-md w-full',+ 'mx-auto backdrop-blur-md w-[calc(100%-2rem)]',].join(' ')}onInteractOutside={(e) => {// Only hide menu when clicking outside, not focusing outside@@ -82,7 +82,7 @@ export function ExpandableVideo({size="xxlarge"><div className="!w-full flex items-center justify-center">- <div className="relative w-full mx-4">+ <div className="relative w-full"><buttononClick={() => setExpandVideo(false)}className="text-scale-1100 hover:text-scale-1200 absolute -top-8 right-0"