Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

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.tsx
new file mode 100644
index 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 Day5
diff --git a/apps/www/components/LaunchWeek/Releases/LW7/LW7Releases.tsx b/apps/www/components/LaunchWeek/Releases/LW7/LW7Releases.tsx
index 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 = false
const 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.tsx
index 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.css
new file mode 100644
index 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.ts
index 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: string
shipped: boolean
@@ -46,24 +79,7 @@ export interface WeekDayProps {
youtube_id: string
blogpost: string
docs: 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.tsx
index 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.jpg
new file mode 100644
index 00000000000..226bc0221da
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK-mobile.jpg differ
diff --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.jpg
new file mode 100644
index 00000000000..696fb7aa62d
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK.jpg differ
diff --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.png
new file mode 100644
index 00000000000..c65c2219367
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-01-commandK.png differ
diff --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.jpg
new file mode 100644
index 00000000000..db4fec50f47
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-02-wrappers.jpg differ
diff --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.png
new file mode 100644
index 00000000000..a294351e010
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-02-wrappers.png differ
diff --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.jpg
new file mode 100644
index 00000000000..5419c141dde
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-03-nullableCols.jpg differ
diff --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.png
new file mode 100644
index 00000000000..a4cabd7d3be
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-03-nullableCols.png differ
diff --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.jpg
new file mode 100644
index 00000000000..ceb369bc392
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-04-apiAutodocs.jpg differ
diff --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.png
new file mode 100644
index 00000000000..4d494281c0c
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-04-apiAutodocs.png differ
diff --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.jpg
new file mode 100644
index 00000000000..f22aa135f93
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-05-pgRoles.jpg differ
diff --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.png
new file mode 100644
index 00000000000..d3220fb9873
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-05-pgRoles.png differ
diff --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.jpg
new file mode 100644
index 00000000000..b7e2478fb98
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-06-casDeletes.jpg differ
diff --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.png
new file mode 100644
index 00000000000..af98ff5bee9
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-06-casDeletes.png differ
diff --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.jpg
new file mode 100644
index 00000000000..ea0f808837c
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-07-graphiQL.jpg differ
diff --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.png
new file mode 100644
index 00000000000..d04aff72618
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-07-graphiQL.png differ
diff --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.jpg
new file mode 100644
index 00000000000..f61b5177adb
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-08-dbWebhooks.jpg differ
diff --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.png
new file mode 100644
index 00000000000..d44a67de357
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-08-dbWebhooks.png differ
diff --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.jpg
new file mode 100644
index 00000000000..b441167c1c4
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-09-viewsTables.jpg differ
diff --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.png
new file mode 100644
index 00000000000..c06e3e0a4b9
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-09-viewsTables.png differ
diff --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.jpg
new file mode 100644
index 00000000000..2d4d209250e
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-10-JSONsupport.jpg differ
diff --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.png
new file mode 100644
index 00000000000..7a43d4eb5c0
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-10-JSONsupport.png differ
diff --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.jpg
new file mode 100644
index 00000000000..b57abca8a22
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-11-insights.jpg differ
diff --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.png
new file mode 100644
index 00000000000..16c87e465bb
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/studio/studio-11-insights.png differ