The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: fix no thumb bug and add thumb images
Francesco Sansalvadoreff876a9b249b
diff --git a/apps/www/components/LaunchWeek/7/BlogLinks.tsx b/apps/www/components/LaunchWeek/7/BlogLinks.tsxindex d7087d7e3b9..41168f03550 100644--- a/apps/www/components/LaunchWeek/7/BlogLinks.tsx+++ b/apps/www/components/LaunchWeek/7/BlogLinks.tsx@@ -13,68 +13,76 @@ 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-black dark:text-white text-xl mb-4">More Launch Week 7</h3>{activeDays.map((day) =>- day.steps?.map((step) => (- <motion.div- className={`h-auto w-full flex flex-col lg:flex-row relative overflow-hidden`}- initial="default"- animate="default"- whileHover="hover"- >- <Link- href={- (step.blog || step.github || step.hackernews || step.blog || step.docs) as string- }- >- <a- className={`- flex flex-col flex-1 gap-3 items-start justify-center border rounded-xl h-full relative overflow-hidden- p-6 lg:p-10 text-2xl bg-[#1C1C1C]- before:absolute before:w-full before:h-full before:top-52 before:right-0 before:bottom-0 before:left-0- before:border-[#1f3536] before:-z-10- `}- >- <div className="relative z-10 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 text-base from-[#F4FFFA] to-[#B7B2C9] drop-shadow-lg',- step.break_thumb_title && 'max-w-[240px]',- ].join(' ')}- >- {step.title}- </div>- </div>- {step.thumb && (- <motion.div- className="absolute inset-0 w-full h-full z-0"- variants={hoverVariant}- >- <Image- src={step.thumb}- className={`- absolute- w-full h-full -z-10 transition-all duration-300- `}- layout="fill"- objectPosition="100% 50%"- objectFit="cover"- />- </motion.div>- )}- <div- className={`absolute opacity-10 w-full h-full -z-10 transition-all duration-300`}- style={{- background: `radial-gradient(650px 150px at 50% 100%, #4635A730, transparent)`,- }}- />- </a>- </Link>- </motion.div>- ))+ day.steps?.map((step, i) => {+ return (+ <>+ {!step.hideInBlog && <StepCard step={step} key={i} />}+ {step.steps?.map(+ (nestedStep, i) => !nestedStep.hideInBlog && <StepCard step={nestedStep} key={i} />+ )}+ </>+ )+ }))}</div>)}+const StepCard = ({ step }: { step: any }) => (+ <motion.div+ className={`h-auto w-full flex flex-col lg:flex-row relative overflow-hidden`}+ initial="default"+ animate="default"+ whileHover="hover"+ >+ <Link+ href={+ (step.blog || step.github || step.hackernews || step.blog || step.docs || '#') as string+ }+ >+ <a+ className={`+flex flex-col flex-1 gap-3 items-start justify-center border rounded-xl h-full relative overflow-hidden+p-6 lg:p-10 text-2xl bg-[#1C1C1C]+before:absolute before:w-full before:h-full before:top-52 before:right-0 before:bottom-0 before:left-0+before:border-[#1f3536] before:-z-10+`}+ >+ <div className="relative z-10 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 text-base from-[#F4FFFA] to-[#B7B2C9] drop-shadow-lg',+ step.break_thumb_title && 'max-w-[240px]',+ ].join(' ')}+ >+ {step.title}+ </div>+ </div>+ {step.thumb && (+ <motion.div className="absolute inset-0 w-full h-full z-0" variants={hoverVariant}>+ <Image+ src={step.thumb}+ className={`+ absolute+ w-full h-full -z-10 transition-all duration-300+ `}+ layout="fill"+ objectPosition="100% 50%"+ objectFit="cover"+ />+ </motion.div>+ )}+ <div+ className={`absolute opacity-10 w-full h-full -z-10 transition-all duration-300`}+ style={{+ background: `radial-gradient(650px 150px at 50% 100%, #4635A730, transparent)`,+ }}+ />+ </a>+ </Link>+ </motion.div>+)+const defaultEase = [0.5, 0, 0.35, 1]const hoverVariant = {default: { scale: 1, ease: defaultEase, duration: 0.2 },diff --git a/apps/www/components/LaunchWeek/lw7_days.ts b/apps/www/components/LaunchWeek/lw7_days.tsindex 0c62e32b4db..3ba0b9c4c89 100644--- a/apps/www/components/LaunchWeek/lw7_days.ts+++ b/apps/www/components/LaunchWeek/lw7_days.ts@@ -35,6 +35,8 @@ const images = {'04-sso-02-mobile': '/images/launchweek/seven/day4/sso-support-02-mobile.png','05-community-01-001': '/images/launchweek/seven/day5/community/community-01-01.jpg','05-community-01-002': '/images/launchweek/seven/day5/community/community-01-02.png',+ '05-community-01-thumb': '/images/launchweek/seven/day5/community/community-thumb.jpg',+ '05-studio-01-thumb': '/images/launchweek/seven/day5/studio/studio-thumb.jpg','05-studio-01-base': '/images/launchweek/seven/day5/studio/studio-01-commandK.jpg','05-studio-01-base-mobile': '/images/launchweek/seven/day5/studio/studio-01-commandK-mobile.jpg','05-studio-02-base': '/images/launchweek/seven/day5/studio/studio-02-wrappers.jpg',@@ -55,6 +57,8 @@ const images = {'05-omt-02-001-mobile': '/images/launchweek/seven/day5/one-more-thing/omt-02-01-mobile.jpg','05-omt-02-002': '/images/launchweek/seven/day5/one-more-thing/omt-02-02.png','05-omt-02-002-mobile': '/images/launchweek/seven/day5/one-more-thing/omt-02-02-mobile.png',+ '05-omt-01-thumb': '/images/launchweek/seven/day5/one-more-thing/dbdev-thumb.jpg',+ '05-omt-02-thumb': '/images/launchweek/seven/day5/one-more-thing/pgTLE-thumb.jpg',}export interface StepProps {@@ -71,6 +75,7 @@ export interface StepProps {url?: stringvideo?: stringclassName?: string+ hideInBlog?: booleanbg_layers?: {lottie?: anyimg?: string@@ -281,12 +286,14 @@ const days: WeekDayProps[] = [docs: '',steps: [{- title: '',+ title: 'Community Highlight',thumb: '',+ hideInBlog: true,steps: [{title: 'Community Highlight',blog: '/blog/supabase-auth-sso-pkce',+ thumb: images['05-community-01-thumb'],bg_layers: [{img: images['05-community-01-001'],@@ -302,13 +309,14 @@ const days: WeekDayProps[] = [{title: 'Studio Updates',blog: '/blog/studio',- thumb: '',+ thumb: images['05-studio-01-thumb'],steps: [{title: '⌘K',badge: 'New',className: 'span-full',blog: '/blog/',+ hideInBlog: true,bg_layers: [{img: images['05-studio-01-base'],@@ -321,10 +329,10 @@ const days: WeekDayProps[] = [title: 'Foreign Data Wrappers',badge: 'Update',blog: '/blog/',+ hideInBlog: true,bg_layers: [{img: images['05-studio-02-base'],- // mobileImg: images['05-studio-02-base-mobile'],},],steps: [],@@ -333,10 +341,10 @@ const days: WeekDayProps[] = [title: 'Nullable columns',badge: 'New',blog: '/blog/',+ hideInBlog: true,bg_layers: [{img: images['05-studio-03-base'],- // mobileImg: images['05-studio-03-base-mobile'],},],steps: [],@@ -345,10 +353,10 @@ const days: WeekDayProps[] = [title: 'API Autodocs',badge: 'New',blog: '/blog/',+ hideInBlog: true,bg_layers: [{img: images['05-studio-04-base'],- // mobileImg: images['05-studio-04-base-mobile'],},],steps: [],@@ -357,10 +365,10 @@ const days: WeekDayProps[] = [title: 'Postgres Roles',badge: 'New',blog: '/blog/',+ hideInBlog: true,bg_layers: [{img: images['05-studio-05-base'],- // mobileImg: images['05-studio-05-base-mobile'],},],steps: [],@@ -369,10 +377,10 @@ const days: WeekDayProps[] = [title: 'Cascade deletes',badge: 'New',blog: '/blog/',+ hideInBlog: true,bg_layers: [{img: images['05-studio-06-base'],- // mobileImg: images['05-studio-06-base-mobile'],},],steps: [],@@ -381,10 +389,10 @@ const days: WeekDayProps[] = [title: 'GraphiQL',badge: 'New',blog: '/blog/',+ hideInBlog: true,bg_layers: [{img: images['05-studio-07-base'],- // mobileImg: images['05-studio-07-base-mobile'],},],steps: [],@@ -393,10 +401,10 @@ const days: WeekDayProps[] = [title: 'Database Webhooks',badge: 'Updated',blog: '/blog/',+ hideInBlog: true,bg_layers: [{img: images['05-studio-08-base'],- // mobileImg: images['05-studio-08-base-mobile'],},],steps: [],@@ -405,10 +413,10 @@ const days: WeekDayProps[] = [title: 'Supports 1000s of tables and views',badge: 'Enhanced',blog: '/blog/',+ hideInBlog: true,bg_layers: [{img: images['05-studio-09-base'],- // mobileImg: images['05-studio-09-base-mobile'],},],steps: [],@@ -417,10 +425,10 @@ const days: WeekDayProps[] = [title: 'JSON Support',badge: 'Improved',blog: '/blog/',+ hideInBlog: true,bg_layers: [{img: images['05-studio-10-base'],- // mobileImg: images['05-studio-10-base-mobile'],},],steps: [],@@ -429,10 +437,10 @@ const days: WeekDayProps[] = [title: 'Insights/Query Performance',badge: 'New',blog: '/blog/',+ hideInBlog: true,bg_layers: [{img: images['05-studio-11-base'],- // mobileImg: images['05-studio-11-base-mobile'],},],steps: [],@@ -442,11 +450,13 @@ const days: WeekDayProps[] = [{title: 'One more thing',thumb: '',+ hideInBlog: true,steps: [{title: 'dbdev',badge: 'New',blog: '/blog/supabase-auth-sso-pkce',+ thumb: images['05-omt-01-thumb'],bg_layers: [{img: images['05-omt-01-001'],@@ -462,6 +472,7 @@ const days: WeekDayProps[] = [{title: 'Postgres TLE',badge: 'New',+ thumb: images['05-omt-02-thumb'],blog: '/blog/supabase-auth-sso-pkce',bg_layers: [{diff --git a/apps/www/public/images/launchweek/seven/day5/community/community-01-02.png b/apps/www/public/images/launchweek/seven/day5/community/community-01-02.pngindex 4dae9c48606..a721eade18f 100644Binary files a/apps/www/public/images/launchweek/seven/day5/community/community-01-02.png and b/apps/www/public/images/launchweek/seven/day5/community/community-01-02.png differdiff --git a/apps/www/public/images/launchweek/seven/day5/community/community-thumb.jpg b/apps/www/public/images/launchweek/seven/day5/community/community-thumb.jpgnew file mode 100644index 00000000000..5e6deee9749Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/community/community-thumb.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/one-more-thing/dbdev-thumb.jpg b/apps/www/public/images/launchweek/seven/day5/one-more-thing/dbdev-thumb.jpgnew file mode 100644index 00000000000..2bf9e51bb39Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/one-more-thing/dbdev-thumb.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/one-more-thing/pgTLE-thumb.jpg b/apps/www/public/images/launchweek/seven/day5/one-more-thing/pgTLE-thumb.jpgnew file mode 100644index 00000000000..d3179367159Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/one-more-thing/pgTLE-thumb.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-thumb.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-thumb.jpgnew file mode 100644index 00000000000..d32a35876acBinary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-thumb.jpg differ