The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: lw7 - day 5 studio section
Francesco Sansalvadore536c45c290d3
diff --git a/apps/www/components/LaunchWeek/Releases/LW7/Day5.tsx b/apps/www/components/LaunchWeek/Releases/LW7/Day5.tsxnew file mode 100644index 00000000000..3d0989111fb--- /dev/null+++ b/apps/www/components/LaunchWeek/Releases/LW7/Day5.tsx@@ -0,0 +1,544 @@+import React from 'react'+import Image from 'next/image'+import { motion } from 'framer-motion'+import { useMobileViewport } from '~/hooks/useMobileViewport'+import { CartTitle, MultistepSectionHeader, SectionButtons, StyledArticleBadge } from './components'++import { WeekDayProps } from '~/components/LaunchWeek/lw7_days'+import { opacityVariant4, scaleOpacityVariant2 } from './LW7Releases'++import styles from './day5.module.css'++const getDay5Motion = (index: number) => {+ switch (index) {+ case 0:+ return scaleOpacityVariant2+ default:+ return undefined+ }+}++const Day5 = ({ day }: { day: WeekDayProps }) => {+ const isMobile = useMobileViewport(767)+ const isTablet = useMobileViewport(1023)++ return (+ <>+ {/* Community */}+ <div className="h-auto flex flex-col gap-5 lg:flex-row">+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 lg:items-start justify-between+ basis-1/2 lg:flex-shrink xl:basis-2/3 w-full border rounded-xl px-4 sm:px-8 lg:px-14 py-10 xs:text-2xl text-xl sm:text-2xl md:text-xl text-center shadow-lg+ h-[400px]+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ >+ <div className="flex items-center text-center lg:text-left justify-between flex-col lg:flex-row lg:justify-start gap-3 text-white">+ <CartTitle>{day.steps[0].steps[0].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">New</StyledArticleBadge>+ </div>+ <SectionButtons blog={day.steps[0].steps[0].blog} />+ {day.steps[0]?.steps[0]?.bg_layers &&+ day.steps[0].steps[0].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isTablet ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isTablet ? '50% 50%' : '50% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 lg:items-start justify-between+ basis-1/2 lg:basis-1/3 w-full border rounded-xl px-4 sm:px-8 lg:px-14 py-10 xs:text-2xl text-xl sm:text-2xl md:text-xl text-center shadow-lg+ h-[400px]+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ >+ <div className="flex items-center text-center lg:text-left justify-between flex-col lg:flex-row lg:justify-start gap-3 text-white">+ <CartTitle>{day.steps[0].steps[1].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">New</StyledArticleBadge>+ </div>+ <SectionButtons blog={day.steps[0].steps[1].blog} />+ {day.steps[0]?.steps[1]?.bg_layers &&+ day.steps[0].steps[1].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isTablet ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isTablet ? '50% 50%' : '50% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ </div>+ {/* Studio */}+ <MultistepSectionHeader title={day.steps[1].title} blog={day.steps[1].blog} />+ <div+ className={[+ 'h-auto flex flex-col sm:grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6 gap-5 lg:flex-row',+ styles['day5-grid'],+ ].join(' ')}+ >+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 md:items-start justify-between+ col-span-full grid-ro w-full border rounded-xl px-4 sm:px-8 lg:px-14 py-10 text-xl sm:text-2xl md:text-xl text-center shadow-lg+ min-h-[350px] md:min-h-[220px]+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ style={{ gridArea: 'commandK' }}+ >+ <div className="flex items-center text-center md:text-left justify-between flex-col md:flex-row lg:justify-start gap-3 text-white">+ <CartTitle>{day.steps[1].steps[0].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">+ {day.steps[1].steps[0].badge}+ </StyledArticleBadge>+ </div>+ {day.steps[1].steps[0].bg_layers &&+ day.steps[1].steps[0].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isMobile ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isMobile ? '50% 50%' : '80% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 md:items-start justify-between text-xl sm:text-2xl md:text-xl shadow-lg+ w-full border rounded-xl px-4 sm:px-8 lg:px-14 py-10 text-center+ min-h-[350px] md:min-h-[220px]+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ style={{ gridArea: 'wrappers' }}+ >+ <div className="flex items-center text-center md:text-left justify-between flex-col md:items-start gap-3 text-white">+ <CartTitle>{day.steps[1].steps[1].title}</CartTitle>+ <StyledArticleBadge>{day.steps[1].steps[1].badge}</StyledArticleBadge>+ </div>+ {day.steps[1].steps[1].bg_layers &&+ day.steps[1].steps[1].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isMobile ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isMobile ? '50% 50%' : '80% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 justify-between text-xl sm:text-2xl md:text-xl shadow-lg+ w-full border rounded-xl px-4 py-10 text-center+ min-h-[350px] md:min-h-[220px]+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ style={{ gridArea: 'nullable' }}+ >+ <div className="flex flex-col items-center text-center gap-3 text-white">+ <CartTitle>{day.steps[1].steps[2].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">+ {day.steps[1].steps[2].badge}+ </StyledArticleBadge>+ </div>+ {day.steps[1].steps[2].bg_layers &&+ day.steps[1].steps[2].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isTablet ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isTablet ? '50% 50%' : '50% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 justify-between text-xl sm:text-2xl md:text-xl shadow-lg+ w-full border rounded-xl px-4 sm:px-8 py-10 text-center+ min-h-[350px] md:min-h-[220px]+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ style={{ gridArea: 'apiAutodocs' }}+ >+ <div className="flex items-center text-center flex-col gap-3 text-white">+ <CartTitle>{day.steps[1].steps[3].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">+ {day.steps[1].steps[3].badge}+ </StyledArticleBadge>+ </div>+ {day.steps[1].steps[3].bg_layers &&+ day.steps[1].steps[3].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isTablet ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isTablet ? '50% 50%' : '50% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 lg:items-start justify-between text-xl sm:text-2xl md:text-xl shadow-lg+ w-full border rounded-xl px-4 sm:px-8 lg:px-14 py-10 text-center+ h-auto min-h-[400px] md:min-h-[600px] xl:min-h-full+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ style={{ gridArea: 'pgRoles' }}+ >+ <div className="flex items-center text-center lg:text-left justify-between flex-col lg:flex-row lg:justify-start gap-3 text-white">+ <CartTitle>{day.steps[1].steps[4].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">+ {day.steps[1].steps[4].badge}+ </StyledArticleBadge>+ </div>+ {day.steps[1].steps[4].bg_layers &&+ day.steps[1].steps[4].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isTablet ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isTablet ? '50% 50%' : '50% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 lg:items-start justify-between text-xl sm:text-2xl md:text-xl shadow-lg+ w-full border rounded-xl px-4 sm:px-8 lg:px-14 py-10 text-center+ h-auto min-h-[400px] md:min-h-[600px] xl:min-h-full+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ style={{ gridArea: 'casDeletes' }}+ >+ <div className="flex items-center text-center lg:text-left justify-between flex-col lg:flex-row lg:justify-start gap-3 text-white">+ <CartTitle>{day.steps[1].steps[5].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">+ {day.steps[1].steps[5].badge}+ </StyledArticleBadge>+ </div>+ {day.steps[1].steps[5].bg_layers &&+ day.steps[1].steps[5].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isTablet ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isTablet ? '50% 50%' : '50% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 lg:items-start justify-between text-xl sm:text-2xl md:text-xl shadow-lg+ w-full border rounded-xl px-4 sm:px-8 lg:px-14 py-10 text-center+ min-h-[350px] md:min-h-[220px]+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ style={{ gridArea: 'graphiQL' }}+ >+ <div className="flex items-center text-center lg:text-left justify-between flex-col lg:flex-row lg:justify-start gap-3 text-white">+ <CartTitle>{day.steps[1].steps[6].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">+ {day.steps[1].steps[6].badge}+ </StyledArticleBadge>+ </div>+ {day.steps[1].steps[6].bg_layers &&+ day.steps[1].steps[6].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isTablet ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isTablet ? '50% 50%' : '50% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 lg:items-start justify-between text-xl sm:text-2xl md:text-xl shadow-lg+ w-full border rounded-xl px-4 sm:px-8 lg:px-14 py-10 text-center+ min-h-[350px] md:min-h-[220px]+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ style={{ gridArea: 'dbWebhooks' }}+ >+ <div className="flex items-center text-center lg:text-left justify-between flex-col lg:flex-row lg:justify-start gap-3 text-white">+ <CartTitle>{day.steps[1].steps[7].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">+ {day.steps[1].steps[7].badge}+ </StyledArticleBadge>+ </div>+ {day.steps[1].steps[7].bg_layers &&+ day.steps[1].steps[7].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isTablet ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isTablet ? '50% 50%' : '50% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 justify-between text-xl sm:text-2xl md:text-xl shadow-lg+ w-full border rounded-xl px-4 sm:px-8 lg:px-14 py-10 text-center+ min-h-[350px] md:min-h-[220px]+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ style={{ gridArea: 'viewsTables' }}+ >+ <div className="flex items-center text-center flex-col gap-3 text-white">+ <CartTitle>{day.steps[1].steps[8].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">+ {day.steps[1].steps[8].badge}+ </StyledArticleBadge>+ </div>+ {day.steps[1].steps[8].bg_layers &&+ day.steps[1].steps[8].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isTablet ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isTablet ? '50% 50%' : '50% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 justify-between text-xl sm:text-2xl md:text-xl shadow-lg+ w-full border rounded-xl px-4 sm:px-8 py-10 text-center+ min-h-[350px] md:min-h-[220px]+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ style={{ gridArea: 'JSONsupport' }}+ >+ <div className="flex items-center text-center flex-col gap-3 text-white">+ <CartTitle>{day.steps[1].steps[9].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">+ {day.steps[1].steps[9].badge}+ </StyledArticleBadge>+ </div>+ {day.steps[1].steps[9].bg_layers &&+ day.steps[1].steps[9].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isTablet ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isTablet ? '50% 50%' : '50% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 lg:items-start justify-between text-xl sm:text-2xl md:text-xl shadow-lg+ w-full border rounded-xl px-4 sm:px-8 lg:px-14 py-10 text-center+ min-h-[350px] md:min-h-[220px]+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ style={{ gridArea: 'insights' }}+ >+ <div className="flex items-center text-center lg:text-left justify-between flex-col lg:flex-row lg:justify-start gap-3 text-white">+ <CartTitle>{day.steps[1].steps[10].title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">+ {day.steps[1].steps[10].badge}+ </StyledArticleBadge>+ </div>+ {day.steps[1].steps[10].bg_layers &&+ day.steps[1].steps[10].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}+ variants={getDay5Motion(i)}+ >+ <Image+ src={!!layer.mobileImg && isTablet ? (layer.mobileImg as any) : layer.img}+ className={[`absolute w-full h-full -z-10 transition-all duration-300`].join(+ ' '+ )}+ layout="fill"+ objectPosition={!!layer.mobileImg && isTablet ? '50% 50%' : '50% 50%'}+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ </div>+ </>+ )+}++export default Day5diff --git a/apps/www/components/LaunchWeek/Releases/LW7/LW7Releases.tsx b/apps/www/components/LaunchWeek/Releases/LW7/LW7Releases.tsxindex ed7d4ccc23f..34e65255d5f 100644--- a/apps/www/components/LaunchWeek/Releases/LW7/LW7Releases.tsx+++ b/apps/www/components/LaunchWeek/Releases/LW7/LW7Releases.tsx@@ -17,12 +17,13 @@ import {import { useMobileViewport } from '../../../../hooks/useMobileViewport'import { motion } from 'framer-motion'+import Day5 from './Day5'-const defaultEase = [0.25, 0.25, 0, 1]-const defaultDuratonIn = 0.25-const defaultDuratonOut = 0.1+export const defaultEase = [0.25, 0.25, 0, 1]+export const defaultDuratonIn = 0.25+export const defaultDuratonOut = 0.1-const opacityVariant = {+export const opacityVariant = {default: { opacity: 0.9, ease: defaultEase, duration: defaultDuratonOut },hover: {opacity: 1,@@ -32,7 +33,7 @@ const opacityVariant = {},},}-const opacityVariant2 = {+export const opacityVariant2 = {default: { opacity: 0, ease: defaultEase, duration: defaultDuratonOut },hover: {opacity: 0.2,@@ -42,7 +43,7 @@ const opacityVariant2 = {},},}-const opacityVariant3 = {+export const opacityVariant3 = {default: { opacity: 0, ease: defaultEase, duration: defaultDuratonOut },hover: {opacity: 1,@@ -52,7 +53,7 @@ const opacityVariant3 = {},},}-const opacityVariant4 = {+export const opacityVariant4 = {default: { opacity: 0.3, ease: defaultEase, duration: defaultDuratonOut },hover: {opacity: 1,@@ -62,7 +63,7 @@ const opacityVariant4 = {},},}-const scaleOpacityVariant = {+export const scaleOpacityVariant = {default: { scale: 1, opacity: 0.9, ease: defaultEase, duration: defaultDuratonOut },hover: {scale: 1.05,@@ -73,13 +74,24 @@ const scaleOpacityVariant = {},},}-const aiImageMobileVariant = {+export const scaleOpacityVariant2 = {+ default: { scale: 1, opacity: 0.8, ease: defaultEase, duration: defaultDuratonOut },+ hover: {+ scale: 1.025,+ opacity: 1,+ transition: {+ duration: defaultDuratonIn,+ ease: defaultEase,+ },+ },+}+export const aiImageMobileVariant = {default: { scale: 0.9 },hover: {scale: 0.9,},}-const moveX10 = {+export const moveX10 = {default: { x: 0, ease: defaultEase, duration: defaultDuratonOut },hover: {x: 10,@@ -132,7 +144,6 @@ const getDay4Motion = (index: number) => {export default function LW7Releases() {const [preRelease, day1, day2, day3, day4, day5] = days- const isMobile = useMobileViewport(767)const isTablet = useMobileViewport(1023)const showAll = falseconst publishedSections =@@ -744,7 +755,7 @@ export default function LW7Releases() {className="h-[79px]"id={day5.d.toString()}>- <div></div>+ <Day5 day={day5} /></Accordion.Item></div></Accordion>diff --git a/apps/www/components/LaunchWeek/Releases/LW7/components/index.tsx b/apps/www/components/LaunchWeek/Releases/LW7/components/index.tsxindex 632764ee29d..4bf60df1b77 100644--- a/apps/www/components/LaunchWeek/Releases/LW7/components/index.tsx+++ b/apps/www/components/LaunchWeek/Releases/LW7/components/index.tsx@@ -142,6 +142,23 @@ export const AccordionHeader = ({ date, day, title, shipped }: any) => {</div>)}+export const MultistepSectionHeader = ({ title, blog }: any) => {+ return (+ <div className="flex flex-1 flex-col sm:flex-row py-8">+ <div className="flex gap-4 w-full items-center justify-between md:justify-start">+ {title && <span className="text-scale-1200 text-lg mt-3 sm:mt-0">{title}</span>}+ {!!blog && (+ <ChipLink href={blog} className="!w-auto">+ Blog post+ <div className="bg-[#313131] rounded-full inline-block p-1 ml-2">+ <PencilSvg />+ </div>+ </ChipLink>+ )}+ </div>+ </div>+ )+}export const ChipLink = ({href,diff --git a/apps/www/components/LaunchWeek/Releases/LW7/day5.module.css b/apps/www/components/LaunchWeek/Releases/LW7/day5.module.cssnew file mode 100644index 00000000000..e865d5cad1a--- /dev/null+++ b/apps/www/components/LaunchWeek/Releases/LW7/day5.module.css@@ -0,0 +1,38 @@+.day5-grid {+ grid-template-areas:+ 'commandK commandK '+ 'wrappers wrappers '+ 'nullable apiAutodocs'+ 'pgRoles pgRoles '+ 'casDeletes casDeletes '+ 'graphiQL graphiQL '+ 'dbWebhooks dbWebhooks '+ 'viewsTables viewsTables'+ 'JSONsupport JSONsupport'+ 'insights insights ';+}++@media (min-width: 768px) {+ .day5-grid {+ grid-template-areas:+ 'commandK commandK commandK commandK '+ 'wrappers wrappers nullable apiAutodocs'+ 'pgRoles pgRoles casDeletes casDeletes '+ 'pgRoles pgRoles casDeletes casDeletes '+ 'graphiQL graphiQL graphiQL graphiQL '+ 'dbWebhooks dbWebhooks dbWebhooks dbWebhooks '+ 'viewsTables viewsTables JSONsupport JSONsupport'+ 'insights insights insights insights ';+ }+}++@media (min-width: 1280px) {+ .day5-grid {+ grid-template-areas:+ 'commandK commandK commandK commandK commandK commandK'+ 'wrappers wrappers nullable apiAutodocs pgRoles pgRoles'+ 'casDeletes casDeletes graphiQL graphiQL pgRoles pgRoles'+ 'casDeletes casDeletes dbWebhooks dbWebhooks dbWebhooks dbWebhooks'+ 'viewsTables viewsTables JSONsupport insights insights insights';+ }+}diff --git a/apps/www/components/LaunchWeek/lw7_days.ts b/apps/www/components/LaunchWeek/lw7_days.tsindex 10ec823035c..d2841847afa 100644--- a/apps/www/components/LaunchWeek/lw7_days.ts+++ b/apps/www/components/LaunchWeek/lw7_days.ts@@ -33,8 +33,41 @@ const images = {'04-sso-01-mobile': '/images/launchweek/seven/day4/sso-support-01-mobile.jpg','04-sso-02': '/images/launchweek/seven/day4/sso-support-02.png','04-sso-02-mobile': '/images/launchweek/seven/day4/sso-support-02-mobile.png',+ '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',+ '05-studio-03-base': '/images/launchweek/seven/day5/studio/studio-03-nullableCols.jpg',+ '05-studio-04-base': '/images/launchweek/seven/day5/studio/studio-04-apiAutodocs.jpg',+ '05-studio-05-base': '/images/launchweek/seven/day5/studio/studio-05-pgRoles.jpg',+ '05-studio-06-base': '/images/launchweek/seven/day5/studio/studio-06-casDeletes.jpg',+ '05-studio-07-base': '/images/launchweek/seven/day5/studio/studio-07-graphiQL.jpg',+ '05-studio-08-base': '/images/launchweek/seven/day5/studio/studio-08-dbWebhooks.jpg',+ '05-studio-09-base': '/images/launchweek/seven/day5/studio/studio-09-viewsTables.jpg',+ '05-studio-10-base': '/images/launchweek/seven/day5/studio/studio-10-JSONsupport.jpg',+ '05-studio-11-base': '/images/launchweek/seven/day5/studio/studio-11-insights.jpg',}+export interface StepProps {+ title: string+ badge?: string+ break_thumb_title?: boolean+ blog?: string+ docs?: string+ description?: string+ github?: string+ hackernews?: string+ isNew?: boolean+ thumb?: string+ url?: string+ video?: string+ className?: string+ bg_layers?: {+ lottie?: any+ img?: string+ mobileImg?: string+ }[]+ steps: StepProps[] | []+}export interface WeekDayProps {title: stringshipped: boolean@@ -46,24 +79,7 @@ export interface WeekDayProps {youtube_id: stringblogpost: stringdocs: string- steps: {- title: string- break_thumb_title?: boolean- blog?: string- docs?: string- description?: string- github?: string- hackernews?: string- isNew?: boolean- thumb?: string- url?: string- video?: string- bg_layers?: {- lottie?: any- img?: string- mobileImg?: string- }[]- }[]+ steps: StepProps[] | []}export const endOfLW7 = '2023-04-16T23:59:59.999-07:00'@@ -92,6 +108,7 @@ const days: WeekDayProps[] = [{ img: images['0-ogImages-04'] },{ img: images['0-ogImages-05'] },],+ steps: [],},{title: 'Supavisor',@@ -99,6 +116,7 @@ const days: WeekDayProps[] = [hackernews: 'https://news.ycombinator.com/item?id=35501718',thumb: '/images/launchweek/seven/day0/supavisor/supavisor-thumb.png',bg_layers: [{ img: images['0-supavisor-01'] }, { img: images['0-supavisor-02'] }],+ steps: [],},],},@@ -120,6 +138,7 @@ const days: WeekDayProps[] = [thumb: '/images/launchweek/seven/day1/self-hosted-logs-thumb.jpg',video: 'https://www.youtube.com/watch?v=Ai2BjHV36Ng',hackernews: 'https://news.ycombinator.com/item?id=35518786',+ steps: [],bg_layers: [{img: images['01-self-hosted-logs-01'],@@ -156,6 +175,7 @@ const days: WeekDayProps[] = [thumb: images['02-self-hosted-edge-functions-thumb'],video: 'https://www.youtube.com/watch?v=cPGxPl1lx4Y',hackernews: 'https://news.ycombinator.com/item?id=35525222',+ steps: [],bg_layers: [{img: images['02-self-hosted-edge-functions-01'],@@ -187,6 +207,7 @@ const days: WeekDayProps[] = [thumb: images['03-storage-thumb'],video: 'https://www.youtube.com/watch?v=pT2PcZFq_M0',docs: '/docs/guides/storage/uploads#resumable-upload',+ steps: [],bg_layers: [{img: images['03-storage-01'],@@ -206,7 +227,7 @@ const days: WeekDayProps[] = [title: '',shipped: true,date: '13 Apr',- publishedAt: '2023-04-13T00:00:00.000-07:00',+ publishedAt: '2023-04-13T07:00:00.000-07:00',description: '',d: 4,dd: 'Thu',@@ -223,6 +244,7 @@ const days: WeekDayProps[] = [video: 'https://www.youtube.com/watch?v=hAwJeR6mhB0',docs: '/docs/guides/auth/sso/auth-sso-saml',hackernews: 'https://news.ycombinator.com/item?id=35555263',+ steps: [],bg_layers: [{img: images['04-sso-01'],@@ -238,16 +260,213 @@ const days: WeekDayProps[] = [},{title: '',- shipped: false,+ shipped: true,date: '14 Apr',- publishedAt: '2023-04-14T07:00:00.000-07:00',+ publishedAt: '2023-04-13T00:00:00.000-07:00',description: '',d: 5,dd: 'Fri',youtube_id: '',blogpost: '',docs: '',- steps: [],+ steps: [+ {+ title: '',+ thumb: '',+ steps: [+ {+ title: 'Community Highlight',+ blog: '/blog/supabase-auth-sso-pkce',+ bg_layers: [+ {+ img: images['04-sso-01'],+ mobileImg: images['04-sso-01-mobile'],+ },+ ],+ steps: [],+ },+ {+ title: 'PostgREST v11',+ blog: '/blog/supabase-auth-sso-pkce',+ docs: '/docs',+ bg_layers: [+ {+ img: images['04-sso-01'],+ mobileImg: images['04-sso-01-mobile'],+ },+ ],+ steps: [],+ },+ ],+ },+ {+ title: 'Studio Updates',+ blog: '/blog/studio',+ thumb: '',+ steps: [+ {+ title: '⌘K',+ badge: 'New',+ className: 'span-full',+ blog: '/blog/',+ bg_layers: [+ {+ img: images['05-studio-01-base'],+ mobileImg: images['05-studio-01-base-mobile'],+ },+ ],+ steps: [],+ },+ {+ title: 'Foreign Data Wrappers',+ badge: 'Update',+ blog: '/blog/',+ bg_layers: [+ {+ img: images['05-studio-02-base'],+ // mobileImg: images['05-studio-02-base-mobile'],+ },+ ],+ steps: [],+ },+ {+ title: 'Nullable columns',+ badge: 'New',+ blog: '/blog/',+ bg_layers: [+ {+ img: images['05-studio-03-base'],+ // mobileImg: images['05-studio-03-base-mobile'],+ },+ ],+ steps: [],+ },+ {+ title: 'API Autodocs',+ badge: 'New',+ blog: '/blog/',+ bg_layers: [+ {+ img: images['05-studio-04-base'],+ // mobileImg: images['05-studio-04-base-mobile'],+ },+ ],+ steps: [],+ },+ {+ title: 'Postgres Roles',+ badge: 'New',+ blog: '/blog/',+ bg_layers: [+ {+ img: images['05-studio-05-base'],+ // mobileImg: images['05-studio-05-base-mobile'],+ },+ ],+ steps: [],+ },+ {+ title: 'Cascade deletes',+ badge: 'New',+ blog: '/blog/',+ bg_layers: [+ {+ img: images['05-studio-06-base'],+ // mobileImg: images['05-studio-06-base-mobile'],+ },+ ],+ steps: [],+ },+ {+ title: 'GraphiQL',+ badge: 'New',+ blog: '/blog/',+ bg_layers: [+ {+ img: images['05-studio-07-base'],+ // mobileImg: images['05-studio-07-base-mobile'],+ },+ ],+ steps: [],+ },+ {+ title: 'Database Webhooks',+ badge: 'Updated',+ blog: '/blog/',+ bg_layers: [+ {+ img: images['05-studio-08-base'],+ // mobileImg: images['05-studio-08-base-mobile'],+ },+ ],+ steps: [],+ },+ {+ title: 'Supports 1000s of tables and views',+ badge: 'Enhanced',+ blog: '/blog/',+ bg_layers: [+ {+ img: images['05-studio-09-base'],+ // mobileImg: images['05-studio-09-base-mobile'],+ },+ ],+ steps: [],+ },+ {+ title: 'JSON Support',+ badge: 'Improved',+ blog: '/blog/',+ bg_layers: [+ {+ img: images['05-studio-10-base'],+ // mobileImg: images['05-studio-10-base-mobile'],+ },+ ],+ steps: [],+ },+ {+ title: 'Insights/Query Performance',+ badge: 'New',+ blog: '/blog/',+ bg_layers: [+ {+ img: images['05-studio-11-base'],+ // mobileImg: images['05-studio-11-base-mobile'],+ },+ ],+ steps: [],+ },+ ],+ },+ {+ title: 'One more thing',+ thumb: '',+ steps: [+ {+ title: 'dbdev',+ badge: 'New',+ blog: '/blog/supabase-auth-sso-pkce',+ bg_layers: [],+ steps: [],+ },+ {+ title: 'Postgres TLE',+ badge: 'New',+ blog: '/blog/supabase-auth-sso-pkce',+ bg_layers: [],+ steps: [],+ },+ {+ title: 'pg_graphql v1.2',+ badge: 'Updated',+ blog: '/blog/supabase-auth-sso-pkce',+ bg_layers: [],+ steps: [],+ },+ ],+ },+ ],},]diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsxindex ad320863206..1bf1f307e1a 100644--- a/apps/www/pages/launch-week/index.tsx+++ b/apps/www/pages/launch-week/index.tsx@@ -134,7 +134,7 @@ export default function TicketHome({ users }: Props) {/></div>- <div className="relative !w-full max-w-[100vw] !px-4 sm:max-w-xl md:max-w-2xl lg:max-w-7xl -mt-48 md:mt-[-460px] z-20 flex flex-col justify-around items-center !py-4 md:!py-8 gap-2 md:gap-4 !mx-auto">+ <div className="relative !w-full max-w-[100vw] !px-4 sm:max-w-xl md:max-w-4xl lg:max-w-7xl -mt-48 md:mt-[-460px] z-20 flex flex-col justify-around items-center !py-4 md:!py-8 gap-2 md:gap-4 !mx-auto"><LW7Releases /><LaunchWeekPrizeSection className="pt-10" ticket={Ticket} /></div>diff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK-mobile.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK-mobile.jpgnew file mode 100644index 00000000000..226bc0221daBinary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK-mobile.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK.jpgnew file mode 100644index 00000000000..696fb7aa62dBinary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK.png b/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK.pngnew file mode 100644index 00000000000..c65c2219367Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK.png differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-02-wrappers.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-02-wrappers.jpgnew file mode 100644index 00000000000..db4fec50f47Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-02-wrappers.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-02-wrappers.png b/apps/www/public/images/launchweek/seven/day5/studio/studio-02-wrappers.pngnew file mode 100644index 00000000000..a294351e010Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-02-wrappers.png differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-03-nullableCols.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-03-nullableCols.jpgnew file mode 100644index 00000000000..5419c141ddeBinary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-03-nullableCols.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-03-nullableCols.png b/apps/www/public/images/launchweek/seven/day5/studio/studio-03-nullableCols.pngnew file mode 100644index 00000000000..a4cabd7d3beBinary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-03-nullableCols.png differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-04-apiAutodocs.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-04-apiAutodocs.jpgnew file mode 100644index 00000000000..ceb369bc392Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-04-apiAutodocs.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-04-apiAutodocs.png b/apps/www/public/images/launchweek/seven/day5/studio/studio-04-apiAutodocs.pngnew file mode 100644index 00000000000..4d494281c0cBinary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-04-apiAutodocs.png differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-05-pgRoles.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-05-pgRoles.jpgnew file mode 100644index 00000000000..f22aa135f93Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-05-pgRoles.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-05-pgRoles.png b/apps/www/public/images/launchweek/seven/day5/studio/studio-05-pgRoles.pngnew file mode 100644index 00000000000..d3220fb9873Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-05-pgRoles.png differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-06-casDeletes.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-06-casDeletes.jpgnew file mode 100644index 00000000000..b7e2478fb98Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-06-casDeletes.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-06-casDeletes.png b/apps/www/public/images/launchweek/seven/day5/studio/studio-06-casDeletes.pngnew file mode 100644index 00000000000..af98ff5bee9Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-06-casDeletes.png differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-07-graphiQL.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-07-graphiQL.jpgnew file mode 100644index 00000000000..ea0f808837cBinary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-07-graphiQL.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-07-graphiQL.png b/apps/www/public/images/launchweek/seven/day5/studio/studio-07-graphiQL.pngnew file mode 100644index 00000000000..d04aff72618Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-07-graphiQL.png differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-08-dbWebhooks.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-08-dbWebhooks.jpgnew file mode 100644index 00000000000..f61b5177adbBinary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-08-dbWebhooks.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-08-dbWebhooks.png b/apps/www/public/images/launchweek/seven/day5/studio/studio-08-dbWebhooks.pngnew file mode 100644index 00000000000..d44a67de357Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-08-dbWebhooks.png differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-09-viewsTables.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-09-viewsTables.jpgnew file mode 100644index 00000000000..b441167c1c4Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-09-viewsTables.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-09-viewsTables.png b/apps/www/public/images/launchweek/seven/day5/studio/studio-09-viewsTables.pngnew file mode 100644index 00000000000..c06e3e0a4b9Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-09-viewsTables.png differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-10-JSONsupport.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-10-JSONsupport.jpgnew file mode 100644index 00000000000..2d4d209250eBinary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-10-JSONsupport.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-10-JSONsupport.png b/apps/www/public/images/launchweek/seven/day5/studio/studio-10-JSONsupport.pngnew file mode 100644index 00000000000..7a43d4eb5c0Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-10-JSONsupport.png differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-11-insights.jpg b/apps/www/public/images/launchweek/seven/day5/studio/studio-11-insights.jpgnew file mode 100644index 00000000000..b57abca8a22Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-11-insights.jpg differdiff --git a/apps/www/public/images/launchweek/seven/day5/studio/studio-11-insights.png b/apps/www/public/images/launchweek/seven/day5/studio/studio-11-insights.pngnew file mode 100644index 00000000000..16c87e465bbBinary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-11-insights.png differ