Skip to content

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

feat: one more thing assets

Francesco Sansalvadore69da0a010207
diff --git a/apps/www/components/LaunchWeek/Releases/LW7/Day5.tsx b/apps/www/components/LaunchWeek/Releases/LW7/Day5.tsx
index 7c364b81608..64c0416aa06 100644
--- a/apps/www/components/LaunchWeek/Releases/LW7/Day5.tsx
+++ b/apps/www/components/LaunchWeek/Releases/LW7/Day5.tsx
@@ -18,16 +18,22 @@ const getDay5Motion = (index: number) => {
}
}
-const getDay5Community02Motion = (index: number) => {
+const getDay5omt01Motion = (index: number) => {
switch (index) {
case 0:
- return opacityVariant4
- case 1:
return scaleOpacityVariant
default:
return undefined
}
}
+const getDay5omt02Motion = (index: number) => {
+ switch (index) {
+ case 0:
+ return opacityVariant4
+ default:
+ return undefined
+ }
+}
const Day5 = ({ day }: { day: WeekDayProps }) => {
const isMobile = useMobileViewport(767)
@@ -511,6 +517,88 @@ const Day5 = ({ day }: { day: WeekDayProps }) => {
)}
</motion.div>
</div>
+ {/* One More Thing */}
+ <MultistepSectionHeader title={day.steps[2].title} />
+ <div className="h-auto flex flex-col md:grid md:grid-cols-3 gap-5 lg:flex-row">
+ <motion.div
+ className={`
+ relative overflow-hidden flex-1 flex flex-col items-center gap-5 md:items-start justify-between
+ 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-[400px] md:min-h-[250px] col-span-2
+ `}
+ initial="default"
+ animate="default"
+ whileHover="hover"
+ >
+ <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[2].steps[0].title}</CartTitle>
+ <StyledArticleBadge className="lg:ml-2">
+ {day.steps[2].steps[0].badge}
+ </StyledArticleBadge>
+ </div>
+ <SectionButtons blog={day.steps[2].steps[0].blog} />
+ {day.steps[2].steps[0].bg_layers &&
+ day.steps[2].steps[0].bg_layers?.map(
+ (layer, i) =>
+ !!layer.img && (
+ <motion.div
+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}
+ variants={getDay5omt01Motion(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%' : '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-[400px] md:min-h-[250px]
+ `}
+ initial="default"
+ animate="default"
+ whileHover="hover"
+ >
+ <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[2].steps[1].title}</CartTitle>
+ <StyledArticleBadge>{day.steps[2].steps[1].badge}</StyledArticleBadge>
+ </div>
+ <SectionButtons blog={day.steps[2].steps[1].blog} />
+ {day.steps[2].steps[1].bg_layers &&
+ day.steps[2].steps[1].bg_layers?.map(
+ (layer, i) =>
+ !!layer.img && (
+ <motion.div
+ className={['absolute inset-0 w-full h-full -z-10'].join(' ')}
+ variants={getDay5omt02Motion(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={
+ i == 1 && !!layer.mobileImg && isTablet ? '50% 60%' : '80% 50%'
+ }
+ objectFit={i == 1 && !!layer.mobileImg && isTablet ? 'contain' : 'cover'}
+ quality={100}
+ />
+ </motion.div>
+ )
+ )}
+ </motion.div>
+ </div>
</>
)
}
diff --git a/apps/www/components/LaunchWeek/lw7_days.ts b/apps/www/components/LaunchWeek/lw7_days.ts
index 6f0cd93a70f..0c62e32b4db 100644
--- a/apps/www/components/LaunchWeek/lw7_days.ts
+++ b/apps/www/components/LaunchWeek/lw7_days.ts
@@ -47,6 +47,14 @@ const images = {
'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',
+ '05-omt-01-001': '/images/launchweek/seven/day5/one-more-thing/omt-01-01.jpg',
+ '05-omt-01-001-mobile': '/images/launchweek/seven/day5/one-more-thing/omt-01-01-mobile.jpg',
+ '05-omt-01-002': '/images/launchweek/seven/day5/one-more-thing/omt-01-02.png',
+ '05-omt-01-002-mobile': '/images/launchweek/seven/day5/one-more-thing/omt-01-02-mobile.png',
+ '05-omt-02-001': '/images/launchweek/seven/day5/one-more-thing/omt-02-01.jpg',
+ '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',
}
export interface StepProps {
@@ -439,21 +447,32 @@ const days: WeekDayProps[] = [
title: 'dbdev',
badge: 'New',
blog: '/blog/supabase-auth-sso-pkce',
- bg_layers: [],
+ bg_layers: [
+ {
+ img: images['05-omt-01-001'],
+ mobileImg: images['05-omt-01-001-mobile'],
+ },
+ {
+ img: images['05-omt-01-002'],
+ mobileImg: images['05-omt-01-002-mobile'],
+ },
+ ],
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: [],
+ bg_layers: [
+ {
+ img: images['05-omt-02-001'],
+ mobileImg: images['05-omt-02-001-mobile'],
+ },
+ {
+ img: images['05-omt-02-002'],
+ mobileImg: images['05-omt-02-002-mobile'],
+ },
+ ],
steps: [],
},
],
diff --git a/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-01-mobile.jpg b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-01-mobile.jpg
new file mode 100644
index 00000000000..df8f6a6ac2d
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-01-mobile.jpg differ
diff --git a/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-01.jpg b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-01.jpg
new file mode 100644
index 00000000000..71b251d2462
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-01.jpg differ
diff --git a/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-02-mobile.png b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-02-mobile.png
new file mode 100644
index 00000000000..55427f2bb1a
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-02-mobile.png differ
diff --git a/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-02.png b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-02.png
new file mode 100644
index 00000000000..76dcdb6028e
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-01-02.png differ
diff --git a/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-01-mobile.jpg b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-01-mobile.jpg
new file mode 100644
index 00000000000..a8b6932aef6
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-01-mobile.jpg differ
diff --git a/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-01.jpg b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-01.jpg
new file mode 100644
index 00000000000..bb7c900f3ce
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-01.jpg differ
diff --git a/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-02-mobile.png b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-02-mobile.png
new file mode 100644
index 00000000000..d4f560cd7c0
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-02-mobile.png differ
diff --git a/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-02.png b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-02.png
new file mode 100644
index 00000000000..2739290c21e
Binary files /dev/null and b/apps/www/public/images/launchweek/seven/day5/one-more-thing/omt-02-02.png differ