diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsx index 03668624b5f..84dd85541e3 100644 --- a/apps/www/components/Hero/Hero.tsx +++ b/apps/www/components/Hero/Hero.tsx @@ -24,7 +24,11 @@ const Hero = () => {
- +

diff --git a/apps/www/components/LaunchWeek/11/LaunchWeekPrizeSection.tsx b/apps/www/components/LaunchWeek/11/LaunchWeekPrizeSection.tsx index 6de52d04078..07cf7702e00 100644 --- a/apps/www/components/LaunchWeek/11/LaunchWeekPrizeSection.tsx +++ b/apps/www/components/LaunchWeek/11/LaunchWeekPrizeSection.tsx @@ -15,7 +15,6 @@ export default function LaunchWeekPrizeSection({ className }: { className?: stri )} >

Awards

-

Generate your ticket for a chance to win.

-
- -

} diff --git a/apps/www/components/LaunchWeek/11/Releases/LW11StickyNav.tsx b/apps/www/components/LaunchWeek/11/Releases/LW11StickyNav.tsx index 4fc5ed40416..e9ad7f67c10 100644 --- a/apps/www/components/LaunchWeek/11/Releases/LW11StickyNav.tsx +++ b/apps/www/components/LaunchWeek/11/Releases/LW11StickyNav.tsx @@ -100,21 +100,23 @@ const LWXStickyNav: FC = () => {
- - {hasTicket ? `${DISPLAY_NAME}'s ticket` : 'Claim ticket'} - - + {hasTicket && ( + + {DISPLAY_NAME}'s ticket + + + )}
diff --git a/apps/www/components/LaunchWeek/11/Releases/data/lw11_data.tsx b/apps/www/components/LaunchWeek/11/Releases/data/lw11_data.tsx index f3eaa2335b9..9ad4ec78bb1 100644 --- a/apps/www/components/LaunchWeek/11/Releases/data/lw11_data.tsx +++ b/apps/www/components/LaunchWeek/11/Releases/data/lw11_data.tsx @@ -269,7 +269,7 @@ const days: (isDark?: boolean) => WeekDayProps[] = (isDark = true) => [ d: 5, dd: 'Fri', shipped: true, - isToday: true, + isToday: false, hasCountdown: false, blog: '/blog/security-performance-advisor', date: '19 April', diff --git a/apps/www/components/LaunchWeek/11/Ticket/TicketingFlow.tsx b/apps/www/components/LaunchWeek/11/Ticket/TicketingFlow.tsx index fa411f10656..43c7dc1dc41 100644 --- a/apps/www/components/LaunchWeek/11/Ticket/TicketingFlow.tsx +++ b/apps/www/components/LaunchWeek/11/Ticket/TicketingFlow.tsx @@ -1,11 +1,9 @@ -import React, { useEffect, useRef } from 'react' -import dynamic from 'next/dynamic' -import { AnimatePresence, m, LazyMotion, domAnimation, useInView } from 'framer-motion' +import React, { useRef } from 'react' +import { AnimatePresence, m, LazyMotion, domAnimation } from 'framer-motion' import { Badge, cn } from 'ui' import { DEFAULT_TRANSITION, INITIAL_BOTTOM, getAnimation } from '~/lib/animations' import { LW11_DATE, LW11_LAUNCH_DATE_END } 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' @@ -15,16 +13,13 @@ import TicketForm from './TicketForm' import CountdownComponent from '../Countdown' import TicketActions from './TicketActions' -const LWGame = dynamic(() => import('./LW11Game')) - const TicketingFlow = () => { const sectionRef = useRef(null) - const { ticketState, userData, showCustomizationForm } = useConfData() - const { isGameMode, setIsGameMode } = useLwGame(ticketState !== 'ticket' || showCustomizationForm) + const { ticketState, userData } = useConfData() - const isLoading = !isGameMode && ticketState === 'loading' - const isRegistering = !isGameMode && ticketState === 'registration' - const hasTicket = !isGameMode && ticketState === 'ticket' + const isLoading = ticketState === 'loading' + const isRegistering = ticketState === 'registration' + const hasTicket = ticketState === 'ticket' const hasPlatinumTicket = userData.platinum const hasSecretTicket = userData.secret const metadata = userData?.metadata @@ -36,14 +31,6 @@ const TicketingFlow = () => { const winningChances = useWinningChances() - const isInView = useInView(sectionRef) - - useEffect(() => { - if (!isInView) setIsGameMode(false) - - return () => setIsGameMode(false) - }, [isInView]) - return ( <> @@ -87,24 +74,15 @@ const TicketingFlow = () => { exit={exit} className={cn( 'w-full min-h-[400px] max-w-md mx-auto flex flex-col justify-center gap-8 lg:gap-12 opacity-0 invisible', - !isGameMode && !hasTicket && 'opacity-100 visible' + !hasTicket && 'opacity-100 visible' )} >
-

Claim your ticket

-
-
+

Time to participate has expired

- Time to participate + See you next Launch Week. -
- )} {hasTicket && ( @@ -164,17 +142,6 @@ const TicketingFlow = () => { )} - {isInView && !showCustomizationForm && isGameMode && ( - - - - )} diff --git a/apps/www/lib/constants.ts b/apps/www/lib/constants.ts index 432a68f9169..5d2da629668 100644 --- a/apps/www/lib/constants.ts +++ b/apps/www/lib/constants.ts @@ -48,7 +48,7 @@ export const LWX_DATE = 'Dec 11-15 / 8am PT' export const LWX_LAUNCH_DATE = '2023-12-11T08:00:00.000-07:00' export const LW11_DATE = 'April 15-19 / 7am PT' export const LW11_LAUNCH_DATE = '2024-04-15T07:00:00.000-07:00' -export const LW11_LAUNCH_DATE_END = '2024-04-20T07:00:00.000-07:00' +export const LW11_LAUNCH_DATE_END = '2024-04-21T23:59:59.000-07:00' export const TWEET_TEXT = '👁️⚡👁️' export const TWEET_TEXT_GOLDEN = `👁️⚡👁️` export const TWEET_TEXT_PLATINUM = `👁️⚡👁️` diff --git a/packages/ui/src/components/PromoToast/PromoToast.tsx b/packages/ui/src/components/PromoToast/PromoToast.tsx index c6fc01bd103..f75a8b0d404 100644 --- a/packages/ui/src/components/PromoToast/PromoToast.tsx +++ b/packages/ui/src/components/PromoToast/PromoToast.tsx @@ -43,12 +43,11 @@ const PromoToast = () => {

General Availability Week

- Day 5
diff --git a/packages/ui/src/layout/banners/LW11CountdownBanner/LW11CountdownBanner.tsx b/packages/ui/src/layout/banners/LW11CountdownBanner/LW11CountdownBanner.tsx index 83cc92702b3..3938c6ef279 100644 --- a/packages/ui/src/layout/banners/LW11CountdownBanner/LW11CountdownBanner.tsx +++ b/packages/ui/src/layout/banners/LW11CountdownBanner/LW11CountdownBanner.tsx @@ -23,7 +23,7 @@ export function LW11CountdownBanner() { >

{announcement.text}

diff --git a/packages/ui/src/layout/banners/data/Announcement.json b/packages/ui/src/layout/banners/data/Announcement.json index aa88079ba88..eda8f37d83c 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": "General Availability Week: Day 5", + "text": "Supabase has reached General Availability", "launchDate": "2024-04-15T07:00:00.000-08:00", - "link": "https://supabase.com/ga-week#day-5", + "link": "https://supabase.com/ga-week", "badge": "Learn more" }