The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Lw12 end (#28715)
Francesco Sansalvadore1d87cabf96ce
diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsxindex aa09be33869..28a500ca8d1 100644--- a/apps/www/components/Hero/Hero.tsx+++ b/apps/www/components/Hero/Hero.tsx@@ -31,12 +31,7 @@ const Hero = () => {Launch Week <span className="hidden sm:inline ml-1"> 12</span></>}- announcement={- <>- <span className="hidden sm:inline">Day 5: </span>Foreign Data Wrappers{' '}- <span className="hidden sm:inline">with Wasm</span>- </>- }+ announcement="Explore what we shipped"/></div><h1 className="text-foreground text-4xl sm:text-5xl sm:leading-none lg:text-7xl">diff --git a/apps/www/components/LaunchWeek/12/LaunchWeekPrizeSection.tsx b/apps/www/components/LaunchWeek/12/LaunchWeekPrizeSection.tsxindex ad760b9197b..f3af0b07139 100644--- a/apps/www/components/LaunchWeek/12/LaunchWeekPrizeSection.tsx+++ b/apps/www/components/LaunchWeek/12/LaunchWeekPrizeSection.tsx@@ -36,17 +36,17 @@ export default function LaunchWeekPrizeSection({ className }: { className?: stri<div className="flex flex-col justify-center lg:w-1/2 gap-1 p-4 md:p-8 lg:pl-0 lg:h-full"><div className="flex flex-col gap-2"><LabelBadge text="5 pieces" />- <p className="text-foreground">Win Wandrd Backpack</p>+ <p className="text-foreground">Wandrd Backpack</p><p className="text-foreground-lighter text-sm">- Share your ticket to increase your chances of winning a{' '}+ Registrations are closed to participate in winning a{' '}<aclassName="text-foreground hover:underline"href="https://eu.wandrd.com/products/prvke?variant=39360658473002"target="_blank">Wandrd backpack- </a>{' '}- and other limited swag.+ </a>+ .</p></div></div>@@ -72,7 +72,7 @@ export default function LaunchWeekPrizeSection({ className }: { className?: stri<div className="relative flex flex-col justify-center w-full gap-1 p-4 md:p-6 bg-surface-75 border-t border-muted"><div className="flex flex-col gap-2"><LabelBadge text="30 t-shirts" />- <p>World Tour T-Shirt</p>+ <p className="text-foreground">World Tour T-Shirt</p></div></div></div>diff --git a/apps/www/components/LaunchWeek/12/Releases/LWStickyNav.tsx b/apps/www/components/LaunchWeek/12/Releases/LWStickyNav.tsxindex 584da7ba176..4d4b7f65b54 100644--- a/apps/www/components/LaunchWeek/12/Releases/LWStickyNav.tsx+++ b/apps/www/components/LaunchWeek/12/Releases/LWStickyNav.tsx@@ -87,8 +87,8 @@ const LWXStickyNav: FC = () => {</Link></li><li className="hidden sm:block">- <Link href="#ticket" className="p-1 transition-colors hover:text-foreground">- Ticket+ <Link href="#awards" className="p-1 transition-colors hover:text-foreground">+ Awards</Link></li></div>diff --git a/apps/www/components/LaunchWeek/12/Releases/data/lw12_data.tsx b/apps/www/components/LaunchWeek/12/Releases/data/lw12_data.tsxindex 586bc705392..4b6fd7f3407 100644--- a/apps/www/components/LaunchWeek/12/Releases/data/lw12_data.tsx+++ b/apps/www/components/LaunchWeek/12/Releases/data/lw12_data.tsx@@ -232,7 +232,7 @@ const days: (isDark?: boolean) => WeekDayProps[] = (isDark = true) => [d: 5,dd: 'Fri',shipped: true,- isToday: true,+ isToday: false,hasCountdown: false,blog: '/blog/postgres-foreign-data-wrappers-with-wasm',date: '16 August',diff --git a/apps/www/components/LaunchWeek/12/Ticket/TicketingFlow.tsx b/apps/www/components/LaunchWeek/12/Ticket/TicketingFlow.tsxdeleted file mode 100644index 68cc4afdb57..00000000000--- a/apps/www/components/LaunchWeek/12/Ticket/TicketingFlow.tsx+++ /dev/null@@ -1,167 +0,0 @@-import React from 'react'-import dynamic from 'next/dynamic'-import { AnimatePresence, m, LazyMotion, domAnimation } from 'framer-motion'-import { Badge, cn } from 'ui'-import { DEFAULT_TRANSITION, INITIAL_BOTTOM, getAnimation } from '~/lib/animations'-import { LW12_DATE, LW12_LAUNCH_DATE } from '~/lib/constants'-import useWinningChances from '../../hooks/useWinningChances'-import useLwGame from '../../hooks/useLwGame'--import useConfData from '~/components/LaunchWeek/hooks/use-conf-data'-import SectionContainer from '~/components/Layouts/SectionContainer'-import TicketContainer from './TicketContainer'-import TicketForm from './TicketForm'-import CountdownComponent from '../Countdown'-import TicketPresence from './TicketPresence'-import TicketActions from './TicketActions'-// import LW12Background from '../LW12Background'-import TicketCopy from './TicketCopy'-import TicketActions2 from './TicketActions2'--const LWGame = dynamic(() => import('./LW12Game'))--const TicketingFlow = () => {- const { ticketState, userData, showCustomizationForm } = useConfData()- const { isGameMode, setIsGameMode } = useLwGame(ticketState !== 'ticket' || showCustomizationForm)-- const isLoading = !isGameMode && ticketState === 'loading'- const isRegistering = !isGameMode && ticketState === 'registration'- const hasTicket = !isGameMode && ticketState === 'ticket'- const hasPlatinumTicket = userData.platinum- const hasSecretTicket = userData.secret-- const transition = DEFAULT_TRANSITION- const initial = INITIAL_BOTTOM- const animate = getAnimation({ duration: 1 })- const exit = { opacity: 0, transition: { ...transition, duration: 0.2 } }-- const winningChances = useWinningChances()-- const DISPLAY_NAME = userData?.name || userData?.username- const FIRST_NAME = DISPLAY_NAME?.split(' ')[0]-- return (- <>- <SectionContainer className="relative h-full flex-1">- <div className="relative z-10 flex h-full">- <h1 className="sr-only">Supabase Launch Week 12 | {LW12_DATE}</h1>-- <LazyMotion features={domAnimation}>- <AnimatePresence mode="wait" key={ticketState}>- {isLoading && (- <m.div- key="loading"- initial={exit}- animate={animate}- exit={exit}- className="relative w-full min-h-[400px] mx-auto py-16 md:py-24 flex flex-col items-center gap-6 text-foreground"- >- <div className="hidden">- <TicketForm />- </div>- <svg- className="animate-spinner opacity-50 w-5 h-5 md:w-6 md:h-6"- width="100%"- height="100%"- viewBox="0 0 62 61"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <path- d="M61 31C61 14.4315 47.5685 1 31 1C14.4315 1 1 14.4315 1 31"- stroke="white"- strokeWidth="2"- />- </svg>- </m.div>- )}- {isRegistering && (- <m.div- key="registration"- initial={initial}- animate={animate}- exit={exit}- className={cn(- 'w-full min-h-[400px] max-w-3xl mx-auto text-left md:text-center flex flex-col md:items-center justify-center gap-6 lg:gap-8 opacity-0 invisible',- !isGameMode && !hasTicket && 'opacity-100 visible'- )}- >- <div className="flex flex-col md:items-center gap-6">- <p className="text-foreground-lighter text-lg ">- Join for a chance to win swag.- </p>- </div>- <TicketForm />- </m.div>- )}- {hasTicket && (- <m.div- key="ticket"- initial={initial}- animate={animate}- exit={exit}- className="w-full flex-1 min-h-[400px] h-full flex flex-col xl:flex-row items-center xl:justify-center xl:items-center gap-8 md:gap-10 xl:gap-32 text-foreground text-center md:text-left"- >- <div className="w-full lg:w-auto h-full mt-3 md:mt-6 xl:mt-0 max-w-lg flex flex-col items-center justify-center gap-3">- <TicketContainer />- <TicketPresence />- <TicketCopy />- </div>- <div className="order-first xl:h-full w-full max-w-lg gap-8 flex flex-col items-center justify-center xl:items-start xl:justify-center text-center xl:text-left">- {hasPlatinumTicket ? (- <div>- {hasSecretTicket ? (- <p className="text-2xl mb-1">Share the secret ticket to beat the odds</p>- ) : (- <p className="text-2xl mb-1">Thanks for sharing</p>- )}- <p className="text-2xl text-foreground-light">- Follow Launch Week 12 announcements to find out if you're a lucky winner- of limited swag.- </p>- </div>- ) : winningChances !== 2 ? (- <div>- {hasSecretTicket && (- <p className="text-2xl mb-1">You found a secret ticket</p>- )}- {!hasSecretTicket && (- <p className="text-2xl mb-1">You're in, {FIRST_NAME}!</p>- )}- <p className="text-2xl text-foreground-light">- Share your ticket to win limited swag.- </p>- </div>- ) : (- <div>- <p className="text-2xl mb-1">Almost there {FIRST_NAME}!</p>- <p className="text-2xl text-foreground-light">- Share on {!userData.shared_on_linkedin ? 'LinkedIn' : 'Twitter'} to- increase your chances of winning limited swag.- </p>- </div>- )}- <TicketActions2 />- </div>- </m.div>- )}- {!showCustomizationForm && isGameMode && (- <m.div- key="ticket"- initial={initial}- animate={animate}- exit={exit}- className="w-full flex justify-center text-foreground !h-[500px]"- >- <LWGame setIsGameMode={setIsGameMode} />- </m.div>- )}- </AnimatePresence>- </LazyMotion>- </div>- </SectionContainer>- </>- )-}--export default TicketingFlowdiff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsxindex dadb3843db0..5e337a7ee0d 100644--- a/apps/www/pages/launch-week/index.tsx+++ b/apps/www/pages/launch-week/index.tsx@@ -21,7 +21,6 @@ const LaunchWeekPrizeSection = dynamic(() => import('~/components/LaunchWeek/12/LaunchWeekPrizeSection'))const LW12Meetups = dynamic(() => import('~/components/LaunchWeek/12/LWMeetups'))-const TicketingFlow = dynamic(() => import('~/components/LaunchWeek/12/Ticket/TicketingFlow'))interface Props {meetups?: Meetup[]@@ -108,10 +107,7 @@ export default function LaunchWeekIndex({ meetups }: Props) {<SectionContainer id="meetups" className="scroll-mt-[60px] lw-nav-anchor"><LW12Meetups meetups={meetups} /></SectionContainer>- <SectionContainer className="!py-8 lw-nav-anchor" id="ticket">- <TicketingFlow />- </SectionContainer>- <SectionContainer className="!pt-8" id="awards">+ <SectionContainer className="!pt-8 scroll-mt-[60px] lw-nav-anchor" id="awards"><LaunchWeekPrizeSection /></SectionContainer><CTABanner />diff --git a/packages/ui-patterns/PromoToast/PromoToast.tsx b/packages/ui-patterns/PromoToast/PromoToast.tsxindex 1706babbc6d..32d9a58f054 100644--- a/packages/ui-patterns/PromoToast/PromoToast.tsx+++ b/packages/ui-patterns/PromoToast/PromoToast.tsx@@ -45,10 +45,10 @@ const PromoToast = () => {)}><p className="relative z-10 text-foreground flex flex-col text-xl w-full leading-7">- Launch Week 12: Day 5+ Launch Week 12</p><div className="relative z-10 text-foreground-lighter flex flex-col text-sm w-full mb-2">- Postgres Foreign Data Wrappers with Wasm+ Explore what we shipped{/* <CountdownComponent date={new Date(announcement.launchDate)} showCard={false} /> */}</div>diff --git a/packages/ui/src/layout/banners/data/Announcement.json b/packages/ui/src/layout/banners/data/Announcement.jsonindex 50f410995de..27f1d5fd6d1 100644--- a/packages/ui/src/layout/banners/data/Announcement.json+++ b/packages/ui/src/layout/banners/data/Announcement.json@@ -1,7 +1,7 @@{"show": true,- "text": "Launch Week 12: Day 5",+ "text": "Launch Week 12","launchDate": "2024-08-12T07:00:00.000-08:00",- "link": "/launch-week#day-5",+ "link": "/launch-week","cta": "Learn more"}