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 4 release

Francesco Sansalvadore54bab466da6c
diff --git a/apps/www/components/LaunchWeek/Releases/LW7/LW7Releases.tsx b/apps/www/components/LaunchWeek/Releases/LW7/LW7Releases.tsx
index 122a0b64a15..89278b7f991 100644
--- a/apps/www/components/LaunchWeek/Releases/LW7/LW7Releases.tsx
+++ b/apps/www/components/LaunchWeek/Releases/LW7/LW7Releases.tsx
@@ -19,44 +19,56 @@ import { useMobileViewport } from '../../../../hooks/useMobileViewport'
import { motion } from 'framer-motion'
const defaultEase = [0.25, 0.25, 0, 1]
+const defaultDuratonIn = 0.25
+const defaultDuratonOut = 0.1
const opacityVariant = {
- default: { opacity: 0.9, ease: defaultEase, duration: 0.2 },
+ default: { opacity: 0.9, ease: defaultEase, duration: defaultDuratonOut },
hover: {
opacity: 1,
transition: {
- duration: 0.4,
+ duration: defaultDuratonIn,
ease: defaultEase,
},
},
}
const opacityVariant2 = {
- default: { opacity: 0, ease: defaultEase, duration: 0.2 },
+ default: { opacity: 0, ease: defaultEase, duration: defaultDuratonOut },
hover: {
opacity: 0.2,
transition: {
- duration: 0.4,
+ duration: defaultDuratonIn,
ease: defaultEase,
},
},
}
const opacityVariant3 = {
- default: { opacity: 0, ease: defaultEase, duration: 0.2 },
+ default: { opacity: 0, ease: defaultEase, duration: defaultDuratonOut },
hover: {
opacity: 1,
transition: {
- duration: 0.4,
+ duration: defaultDuratonIn,
+ ease: defaultEase,
+ },
+ },
+}
+const opacityVariant4 = {
+ default: { opacity: 0.2, ease: defaultEase, duration: defaultDuratonOut },
+ hover: {
+ opacity: 1,
+ transition: {
+ duration: defaultDuratonIn,
ease: defaultEase,
},
},
}
const scaleOpacityVariant = {
- default: { scale: 1, opacity: 0.9, ease: defaultEase, duration: 0.2 },
+ default: { scale: 1, opacity: 0.9, ease: defaultEase, duration: defaultDuratonOut },
hover: {
scale: 1.05,
opacity: 1,
transition: {
- duration: 0.4,
+ duration: defaultDuratonIn,
ease: defaultEase,
},
},
@@ -68,11 +80,11 @@ const aiImageMobileVariant = {
},
}
const moveX10 = {
- default: { x: 0, ease: defaultEase, duration: 0.2 },
+ default: { x: 0, ease: defaultEase, duration: defaultDuratonOut },
hover: {
x: 10,
transition: {
- duration: 0.4,
+ duration: defaultDuratonIn,
ease: defaultEase,
},
},
@@ -107,6 +119,16 @@ const getDay3Motion = (index: number) => {
return undefined
}
}
+const getDay4Motion = (index: number) => {
+ switch (index) {
+ case 0:
+ return opacityVariant4
+ // case 2:
+ // return opacityVariant3
+ default:
+ return undefined
+ }
+}
export default function LW7Releases() {
const [preRelease, day1, day2, day3, day4, day5] = days
@@ -427,7 +449,7 @@ export default function LW7Releases() {
}
className={[
`
- absolute opacity-90
+ absolute
w-full h-full -z-10 transition-all duration-300
`,
i === 5 && '',
@@ -515,7 +537,7 @@ export default function LW7Releases() {
}
className={[
`
- absolute opacity-90
+ absolute
w-full h-full -z-10 transition-all duration-300
`,
i === 5 && '',
@@ -602,7 +624,7 @@ export default function LW7Releases() {
}
className={[
`
- absolute opacity-90
+ absolute
w-full h-full -z-10 transition-all duration-300
`,
i === 5 && '',
@@ -637,7 +659,76 @@ export default function LW7Releases() {
className="h-[79px]"
id={day4.d.toString()}
>
- <div></div>
+ {day4.steps.length > 0 && (
+ <div className="h-[400px] flex flex-col gap-5 lg:flex-row">
+ <motion.div
+ className={`
+ relative overflow-hidden group/2 flex-1 flex flex-col items-center gap-5 lg:items-start justify-between
+ w-full border rounded-xl h-full px-8 lg:px-14 py-14 xs:text-2xl text-xl text-center shadow-lg
+ `}
+ initial="default"
+ animate="default"
+ whileHover="hover"
+ >
+ <div className="flex items-center text-center lg:text-left lg: justify-between flex-col-reverse lg:flex-row lg:justify-start gap-2 text-black dark:text-white">
+ <CartTitle>{day4.steps[0].title}</CartTitle>
+ <StyledArticleBadge className="lg:ml-2">New</StyledArticleBadge>
+ </div>
+ <SectionButtons
+ docs={day4.steps[0].docs}
+ blog={day4.steps[0].blog}
+ video={day4.steps[0].video}
+ />
+ {day4.steps[0].bg_layers &&
+ day4.steps[0].bg_layers?.map((layer, i) =>
+ !!layer.lottie ? (
+ <div className="absolute inset-0 opacity-90 w-full h-full -z-10 transition-all duration-300">
+ <Lottie
+ style={{
+ position: 'absolute',
+ inset: 0,
+ width: '100%',
+ height: '100%',
+ }}
+ autoplay={true}
+ animationData={layer.lottie}
+ />
+ </div>
+ ) : (
+ !!layer.img && (
+ <motion.div
+ className={[
+ 'absolute inset-0 w-full h-full -z-10',
+ i === 2 && '!mix-blend-overlay blur-2xl',
+ ].join(' ')}
+ variants={getDay4Motion(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% 65%' : '80% 50%'
+ }
+ objectFit={!!layer.mobileImg && isTablet ? 'contain' : 'cover'}
+ quality={100}
+ />
+ </motion.div>
+ )
+ )
+ )}
+ </motion.div>
+ </div>
+ )}
</Accordion.Item>
</div>
<div className="border-b border-[#232323] pb-3" id="currentDay">
diff --git a/apps/www/components/LaunchWeek/lw7_days.ts b/apps/www/components/LaunchWeek/lw7_days.ts
index 05fa19b1d53..7614ca3b272 100644
--- a/apps/www/components/LaunchWeek/lw7_days.ts
+++ b/apps/www/components/LaunchWeek/lw7_days.ts
@@ -28,6 +28,9 @@ const images = {
'03-storage-02': '/images/launchweek/seven/day3/storage-02.png',
'03-storage-02-mobile': '/images/launchweek/seven/day3/storage-02-mobile.png',
'03-storage-03': '/images/launchweek/seven/day3/storage-03.png',
+ '04-sso-thumb': '/images/launchweek/seven/day4/sso-support-thumb.jpg',
+ '04-sso-01': '/images/launchweek/seven/day4/sso-support-01.png',
+ '04-sso-02': '/images/launchweek/seven/day4/sso-support-02.png',
}
export interface WeekDayProps {
@@ -166,7 +169,7 @@ const days: WeekDayProps[] = [
title: '',
shipped: true,
date: '12 Apr',
- publishedAt: '2023-04-12T00:00:00.000-07:00',
+ publishedAt: '2023-04-12T07:00:00.000-07:00',
description: '',
d: 3,
dd: 'Wed',
@@ -199,16 +202,33 @@ const days: WeekDayProps[] = [
},
{
title: '',
- shipped: false,
+ shipped: true,
date: '13 Apr',
- publishedAt: '2023-04-13T07:00:00.000-07:00',
+ publishedAt: '2023-04-13T00:00:00.000-07:00',
description: '',
d: 4,
dd: 'Thu',
youtube_id: '',
blogpost: '',
docs: '',
- steps: [],
+ steps: [
+ {
+ title: 'SSO Support for Projects',
+ description: '',
+ blog: '/blog/sso-support-for-projects',
+ thumb: images['04-sso-thumb'],
+ video: '',
+ docs: '',
+ bg_layers: [
+ {
+ img: images['04-sso-01'],
+ },
+ {
+ img: images['04-sso-02'],
+ },
+ ],
+ },
+ ],
},
{
title: '',
diff --git a/apps/www/public/images/launchweek/seven/day4/sso-support-01.png b/apps/www/public/images/launchweek/seven/day4/sso-support-01.png
new file mode 100644
index 00000000000..d81385850e9
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day4/sso-support-01.png differ
diff --git a/apps/www/public/images/launchweek/seven/day4/sso-support-02.png b/apps/www/public/images/launchweek/seven/day4/sso-support-02.png
new file mode 100644
index 00000000000..bef26f88a64
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day4/sso-support-02.png differ
diff --git a/apps/www/public/images/launchweek/seven/day4/sso-support-thumb.jpg b/apps/www/public/images/launchweek/seven/day4/sso-support-thumb.jpg
new file mode 100644
index 00000000000..5c1129bfe06
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day4/sso-support-thumb.jpg differ
diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xml
index c8bcd42038e..ca327cabe0f 100644
--- a/apps/www/public/rss.xml
+++ b/apps/www/public/rss.xml
@@ -5,12 +5,19 @@
<link>https://supabase.com</link>
<description>Latest news from Supabase</description>
<language>en</language>
- <lastBuildDate>Mon, 10 Apr 2023 22:10:00 +0000</lastBuildDate>
+ <lastBuildDate>Tue, 11 Apr 2023 22:10:00 +0000</lastBuildDate>
<atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
<item>
- <guid>https://supabase.com/blog/edge-runtime-self-hosted-deno</guid>
+ <guid>https://supabase.com/blog/storage-v3-resumable-uploads</guid>
+ <title>Supabase Storage v3: Resumable Uploads with support for 50GB files</title>
+ <link>https://supabase.com/blog/storage-v3-resumable-uploads</link>
+ <description>undefined</description>
+ <pubDate>Tue, 11 Apr 2023 22:10:00 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/edge-runtime-self-hosted-deno-functions</guid>
<title>Supabase Edge Runtime: Self-hosted Deno Functions</title>
- <link>https://supabase.com/blog/edge-runtime-self-hosted-deno</link>
+ <link>https://supabase.com/blog/edge-runtime-self-hosted-deno-functions</link>
<description>undefined</description>
<pubDate>Mon, 10 Apr 2023 22:10:00 +0000</pubDate>
</item>