The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
lw8: pre release page setup
Francesco Sansalvadorefc257d93ca7f
diff --git a/apps/www/components/LaunchWeek/7/LaunchWeekPrizeSection.tsx b/apps/www/components/LaunchWeek/7/LaunchWeekPrizeSection.tsxindex 4f8d365192b..c469dac9aa8 100644--- a/apps/www/components/LaunchWeek/7/LaunchWeekPrizeSection.tsx+++ b/apps/www/components/LaunchWeek/7/LaunchWeekPrizeSection.tsx@@ -54,13 +54,8 @@ export default function LaunchWeekPrizeSection({</svg></div><h2 className="text-4xl">- Get your <span className="gradient-text-pink-500">winning ticket</span>+ Submissions <span className="gradient-text-pink-500">closed</span></h2>- <p className="radial-gradient-text-scale-500">- Join us on April 16th for Launch Week 7's final day- <br className="hidden md:inline-block" /> and find out if you are one of the lucky- winners. Get sharing!- </p></motion.div></div>{ticket && <Ticket />}diff --git a/apps/www/components/LaunchWeek/8/AnimatedParticles/ParticlesCanvas.tsx b/apps/www/components/LaunchWeek/8/AnimatedParticles/ParticlesCanvas.tsxindex 6d88c89268a..6f13f0548c0 100644--- a/apps/www/components/LaunchWeek/8/AnimatedParticles/ParticlesCanvas.tsx+++ b/apps/www/components/LaunchWeek/8/AnimatedParticles/ParticlesCanvas.tsx@@ -3,53 +3,15 @@ import { Canvas } from '@react-three/fiber'import { AdditiveBlending } from 'three'import Particle from './Particle'import useParticlesConfig from './hooks/useParticlesConfig'-import { SupabaseClient } from '@supabase/supabase-js'-const ParticlesCanvas = ({ supabase, users }: { supabase?: SupabaseClient; users: any }) => {+const ParticlesCanvas = () => {const isWindowUndefined = typeof window === 'undefined'if (isWindowUndefined) return nullconst canvasRef = React.useRef(null)const [animate, setAnimate] = useState<boolean>(true)- const { config, handleSetConfig, particles, setParticles, isDebugMode } =- useParticlesConfig(users)- const [realtimeChannel, setRealtimeChannel] = useState<ReturnType<- (typeof supabase | any)['channel']- > | null>(null)-- const loadUsers = async () => {- return await supabase!.from('lw8_tickets_golden').select('username, golden', { count: 'exact' })- }-- // Update particles live when new tickets are generated- useEffect(() => {- if (!!supabase) {- const channel = supabase- .channel('lw8_tickets_changes')- .on(- 'postgres_changes',- {- event: 'INSERT',- schema: 'public',- table: 'lw8_tickets_golden',- },- async () => {- const { data: users } = await loadUsers()-- handleSetConfig('particles', users?.length)- setParticles((prev: any) => users! ?? prev)- }- )- .subscribe()- setRealtimeChannel(channel)- }-- return () => {- // Cleanup realtime subscription on unmount- realtimeChannel?.unsubscribe()- }- }, [])+ const { config, particles } = useParticlesConfig()// stop animation if canvas if is not in viewport// to avoid unnecessary computations@@ -83,7 +45,7 @@ const ParticlesCanvas = ({ supabase, users }: { supabase?: SupabaseClient; usersconst Material = () =>useMemo(() => (- <meshStandardMaterial+ <meshPhysicalMaterialcolor={config.color}blending={config.particlesBlending ? AdditiveBlending : undefined}/>@@ -110,7 +72,7 @@ const ParticlesCanvas = ({ supabase, users }: { supabase?: SupabaseClient; usersclassName="relative z-30"><ambientLight intensity={config.lightIntensity} />- <group position={[0, 70, 0]} scale={[0.9, 0.9, 0.9]}>+ <group position={[0, 70, 0]} scale={[0.75, 0.75, 0.75]}>{/* Animated 8 shape particles */}{particles?.map((user: any, index: number) => (<Particlediff --git a/apps/www/components/LaunchWeek/8/AnimatedParticles/hooks/useParticlesConfig.tsx b/apps/www/components/LaunchWeek/8/AnimatedParticles/hooks/useParticlesConfig.tsxindex 6eb0dadb087..25fc60d5dd6 100644--- a/apps/www/components/LaunchWeek/8/AnimatedParticles/hooks/useParticlesConfig.tsx+++ b/apps/www/components/LaunchWeek/8/AnimatedParticles/hooks/useParticlesConfig.tsx@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'import { range } from 'lodash'let defaultConfig = {- particles: 20,+ particles: 1500,particlesSize: 1.2,goldParticlesSize: 1.5,particlesSides: 5,@@ -16,7 +16,7 @@ let defaultConfig = {trailWidth: 40,trailLength: 100,trailDecay: 450,- color: 'white',+ color: '#ffffff',colorGold: '#b89d18',xThickness: 7,xRandomnessFactor: 2.2,@@ -28,12 +28,12 @@ let defaultConfig = {showGold: true,}-const useParticlesConfig = (users: any): any => {+const useParticlesConfig = (): any => {const isWindowUndefined = typeof window === 'undefined'if (isWindowUndefined) return nullconst hash = window.location.hashconst isDebugMode = hash.includes('#debug')- const [particles, setParticles] = useState<any[]>(users)+ const [particles, setParticles] = useState<any[]>(range(0, defaultConfig.particles))const [config, setConfig] = useState(defaultConfig)diff --git a/apps/www/components/LaunchWeek/8/Countdown.tsx b/apps/www/components/LaunchWeek/8/Countdown.tsxindex 322b7a944db..e8394b6128f 100644--- a/apps/www/components/LaunchWeek/8/Countdown.tsx+++ b/apps/www/components/LaunchWeek/8/Countdown.tsx@@ -1,20 +1,35 @@import React from 'react'import Countdown from 'react-countdown'import { CountdownWidget } from 'ui'-import { LW8_LAUNCH_DATE } from '~/lib/constants'-const CountdownComponent = () => {+const CountdownComponent = ({+ date,+ showCard = true,+}: {+ date: string | number | Date+ showCard?: boolean+}) => {+ if (!date) return null+const renderer = ({ days, hours, minutes, seconds, completed }: any) => {if (completed) {// Render a completed statereturn null} else {// Render countdown- return <CountdownWidget days={days} hours={hours} minutes={minutes} seconds={seconds} />+ return (+ <CountdownWidget+ days={days}+ hours={hours}+ minutes={minutes}+ seconds={seconds}+ showCard={showCard}+ />+ )}}- return <Countdown date={new Date(LW8_LAUNCH_DATE)} renderer={renderer} />+ return <Countdown date={new Date(date)} renderer={renderer} />}export default CountdownComponentdiff --git a/apps/www/components/LaunchWeek/8/LaunchWeekLogoHeader.tsx b/apps/www/components/LaunchWeek/8/LaunchWeekLogoHeader.tsxindex 4c0786c62c3..cf61bb72778 100644--- a/apps/www/components/LaunchWeek/8/LaunchWeekLogoHeader.tsx+++ b/apps/www/components/LaunchWeek/8/LaunchWeekLogoHeader.tsx@@ -1,12 +1,13 @@import Link from 'next/link'import CountdownComponent from './Countdown'+import { LW8_LAUNCH_DATE } from '../../../lib/constants'export function LaunchWeekLogoHeader() {return (<div className="flex flex-col gap-1 md:gap-2 items-center justify-end"><div className="opacity-0 !animate-[fadeIn_0.5s_cubic-bezier(0.25,0.25,0,1)_0.5s_both] px-2 flex flex-col items-center text-center gap-3"><div className="">- <CountdownComponent />+ <CountdownComponent date={LW8_LAUNCH_DATE} /></div><h1 className="sr-only font-normal uppercase text-[28px] sm:text-[32px]">Launch week 8</h1><p className="text-white radial-gradient-text-scale-600 text-lg sm:text-2xl">diff --git a/apps/www/components/LaunchWeek/8/Releases/components/index.tsx b/apps/www/components/LaunchWeek/8/Releases/components/index.tsxindex 58a6ab51863..f36870fd58a 100644--- a/apps/www/components/LaunchWeek/8/Releases/components/index.tsx+++ b/apps/www/components/LaunchWeek/8/Releases/components/index.tsx@@ -180,7 +180,7 @@ export const AccordionHeader = ({</g></svg>- <CountdownComponent />+ <CountdownComponent date={publishedAt} showCard={false} /></span>)}</div>@@ -318,7 +318,7 @@ export const SectionButtons = ({}export const CartTitle = ({ children }: { children: any }) => (- <span className="z-0 relative text-[#F4FFFA90] bg-clip-text bg-gradient-to-r from-[#F4FFFA] to-[#675FA7] tracking-[-.5px] text-xl">+ <span className="z-0 relative text-[#F4FFFA90] bg-clip-text bg-gradient-to-r from-[#F4FFFA] to-[#675FA7] tracking-[-.5px]">{children}<div className="absolute -z-10 inset-0 w-full h-full bg-[#1C1C1C90] rounded-full blur-xl" /></span>diff --git a/apps/www/components/LaunchWeek/8/Releases/index.tsx b/apps/www/components/LaunchWeek/8/Releases/index.tsxnew file mode 100644index 00000000000..ef25ae7da45--- /dev/null+++ b/apps/www/components/LaunchWeek/8/Releases/index.tsx@@ -0,0 +1,716 @@+import Image from 'next/image'+import { motion } from 'framer-motion'+import { Accordion } from 'ui'+import { useBreakpoint } from 'common/hooks/useBreakpoint'++import days, { WeekDayProps, endOfLW8 } from './lw8_data'+import SectionContainer from '~/components/Layouts/SectionContainer'+import {+ AccordionHeader,+ CartTitle,+ ChipLink,+ PencilSvg,+ SectionButtons,+ SmallCard,+ StyledArticleBadge,+} from './components'++export const defaultEase = [0.25, 0.25, 0, 1]+export const defaultDuratonIn = 0.25+export const defaultDuratonOut = 0.1++export const opacityVariant = {+ default: { opacity: 0.9, ease: defaultEase, duration: defaultDuratonOut },+ hover: {+ opacity: 1,+ transition: {+ duration: defaultDuratonIn,+ ease: defaultEase,+ },+ },+}+export const opacityVariant2 = {+ default: { opacity: 0, ease: defaultEase, duration: defaultDuratonOut },+ hover: {+ opacity: 0.2,+ transition: {+ duration: defaultDuratonIn,+ ease: defaultEase,+ },+ },+}+export const opacityVariant3 = {+ default: { opacity: 0, ease: defaultEase, duration: defaultDuratonOut },+ hover: {+ opacity: 1,+ transition: {+ duration: defaultDuratonIn,+ ease: defaultEase,+ },+ },+}+export const opacityVariant4 = {+ default: { opacity: 0.3, ease: defaultEase, duration: defaultDuratonOut },+ hover: {+ opacity: 1,+ transition: {+ duration: defaultDuratonIn,+ ease: defaultEase,+ },+ },+}+export const scaleOpacityVariant = {+ default: { scale: 1, opacity: 0.9, ease: defaultEase, duration: defaultDuratonOut },+ hover: {+ scale: 1.05,+ opacity: 1,+ transition: {+ duration: defaultDuratonIn,+ ease: defaultEase,+ },+ },+}+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,+ },+}+export const moveX10 = {+ default: { x: 0, ease: defaultEase, duration: defaultDuratonOut },+ hover: {+ x: 10,+ transition: {+ duration: defaultDuratonIn,+ ease: defaultEase,+ },+ },+}++const getDay1Motion = (index: number) => {+ switch (index) {+ case 1:+ case 2:+ return moveX10+ case 3:+ return opacityVariant2+ default:+ return undefined+ }+}+const getDay2Motion = (index: number) => {+ switch (index) {+ case 1:+ return opacityVariant3+ default:+ return undefined+ }+}+const getDay3Motion = (index: number) => {+ switch (index) {+ case 1:+ return scaleOpacityVariant+ case 2:+ return opacityVariant3+ default:+ return undefined+ }+}+const getDay4Motion = (index: number) => {+ switch (index) {+ case 0:+ return opacityVariant4+ // case 2:+ // return opacityVariant3+ default:+ return undefined+ }+}++export default function LW8Releases() {+ const [preRelease, day1, day2, day3, day4, day5] = days+ const isTablet = useBreakpoint(1023)+ const showAll = false+ const publishedSections =+ days+ .filter((day: WeekDayProps) => Date.parse(day.publishedAt) <= Date.now() || showAll)+ .map((day: WeekDayProps) => day.d.toString()) ?? []++ const prereleaseShipped = Date.parse(preRelease.publishedAt) <= Date.now()+ const day1Shipped = Date.parse(day1.publishedAt) <= Date.now()+ const day2Shipped = Date.parse(day2.publishedAt) <= Date.now()+ const day3Shipped = Date.parse(day3.publishedAt) <= Date.now()+ const day4Shipped = Date.parse(day4.publishedAt) <= Date.now()+ const day5Shipped = Date.parse(day5.publishedAt) <= Date.now()+ const isHackathonLive = prereleaseShipped && Date.parse(endOfLW8) >= Date.now()++ return (+ <>+ <SectionContainer className="!py-0 w-full !px-0 !max-w-none">+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-4 scroll-mt-[105px]" id="hackathon">+ <SmallCard className={[isHackathonLive && '!from-[#6F13A4] !to-[#A69DC920]'].join(' ')}>+ <div className="relative z-10 flex items-center mb-4 sm:mb-0">+ <div+ className={[+ 'flex min-w-[20px] opacity-50',+ isHackathonLive && 'opacity-pulse',+ ].join(' ')}+ >+ <svg+ width="21"+ height="21"+ viewBox="0 0 21 21"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M5.55025 3.97258C5.94078 4.36311 5.94078 4.99627 5.55025 5.38679C2.81658 8.12046 2.81658 12.5526 5.55025 15.2863C5.94078 15.6768 5.94078 16.31 5.55025 16.7005C5.15973 17.091 4.52656 17.091 4.13604 16.7005C0.62132 13.1858 0.62132 7.4873 4.13604 3.97258C4.52656 3.58206 5.15973 3.58206 5.55025 3.97258ZM15.4498 3.97281C15.8403 3.58229 16.4735 3.58229 16.864 3.97281C20.3787 7.48753 20.3787 13.186 16.864 16.7007C16.4735 17.0913 15.8403 17.0913 15.4498 16.7007C15.0592 16.3102 15.0592 15.677 15.4498 15.2865C18.1834 12.5529 18.1834 8.1207 15.4498 5.38703C15.0592 4.9965 15.0592 4.36334 15.4498 3.97281ZM8.37869 6.80101C8.76921 7.19153 8.76921 7.8247 8.37869 8.21522C7.20711 9.38679 7.20711 11.2863 8.37869 12.4579C8.76921 12.8484 8.76921 13.4816 8.37868 13.8721C7.98816 14.2626 7.355 14.2626 6.96447 13.8721C5.01185 11.9195 5.01185 8.75363 6.96447 6.80101C7.355 6.41048 7.98816 6.41048 8.37869 6.80101ZM12.6213 6.80124C13.0119 6.41072 13.645 6.41072 14.0355 6.80124C15.9882 8.75386 15.9882 11.9197 14.0355 13.8723C13.645 14.2628 13.0119 14.2628 12.6213 13.8723C12.2308 13.4818 12.2308 12.8486 12.6213 12.4581C13.7929 11.2865 13.7929 9.38703 12.6213 8.21545C12.2308 7.82493 12.2308 7.19176 12.6213 6.80124ZM10.5 9.33677C11.0523 9.33677 11.5 9.78449 11.5 10.3368V10.3468C11.5 10.8991 11.0523 11.3468 10.5 11.3468C9.94772 11.3468 9.5 10.8991 9.5 10.3468V10.3368C9.5 9.78449 9.94772 9.33677 10.5 9.33677Z"+ fill="#F2F2F2"+ />+ </svg>+ </div>+ <div className="flex flex-col lg:flex-row ml-2 sm:ml-4">+ <span className="text-white mr-2">Supabase AI Hackathon</span>+ </div>+ </div>+ <div className="flex w-full sm:w-auto justify-center gap-2 z-10">+ <ChipLink href={'/blog/launch-week-7-hackathon'}>+ Blog post+ <div className="bg-[#313131] rounded-full hidden sm:inline-block p-1 ml-2">+ <PencilSvg />+ </div>+ </ChipLink>+ </div>+ {isHackathonLive && (+ <div className="absolute opacity-pulse inset-0 w-full h-full bg-gradient-to-b from-[#1C1C1C80] to-[#1C1C1C] rounded-2xl overflow-hidden shadow-lg pointer-events-none" />+ )}+ </SmallCard>+ <SmallCard>+ <div className="relative flex items-center mb-4 sm:mb-0">+ <div className="flex min-w-[20px]">+ <svg+ width="21"+ height="21"+ viewBox="0 0 21 21"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M5.91406 2.17188C6.46635 2.17188 6.91406 2.61959 6.91406 3.17188V4.17188H7.91406C8.46635 4.17188 8.91406 4.61959 8.91406 5.17188C8.91406 5.72416 8.46635 6.17188 7.91406 6.17188H6.91406V7.17188C6.91406 7.72416 6.46635 8.17188 5.91406 8.17188C5.36178 8.17188 4.91406 7.72416 4.91406 7.17188V6.17188H3.91406C3.36178 6.17188 2.91406 5.72416 2.91406 5.17188C2.91406 4.61959 3.36178 4.17188 3.91406 4.17188H4.91406V3.17188C4.91406 2.61959 5.36178 2.17188 5.91406 2.17188ZM5.91406 12.1719C6.46635 12.1719 6.91406 12.6196 6.91406 13.1719V14.1719H7.91406C8.46635 14.1719 8.91406 14.6196 8.91406 15.1719C8.91406 15.7242 8.46635 16.1719 7.91406 16.1719H6.91406V17.1719C6.91406 17.7242 6.46635 18.1719 5.91406 18.1719C5.36178 18.1719 4.91406 17.7242 4.91406 17.1719V16.1719H3.91406C3.36178 16.1719 2.91406 15.7242 2.91406 15.1719C2.91406 14.6196 3.36178 14.1719 3.91406 14.1719H4.91406V13.1719C4.91406 12.6196 5.36178 12.1719 5.91406 12.1719Z"+ fill="#F2F2F2"+ />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M12.914 2.17188C13.3677 2.17188 13.7646 2.47736 13.8807 2.91598L15.0599 7.37081L18.4137 9.30569C18.7233 9.48428 18.914 9.8145 18.914 10.1719C18.914 10.5293 18.7233 10.8595 18.4137 11.0381L15.0599 12.9729L13.8807 17.4278C13.7646 17.8664 13.3677 18.1719 12.914 18.1719C12.4603 18.1719 12.0634 17.8664 11.9473 17.4278L10.7681 12.9729L7.41433 11.0381C7.10478 10.8595 6.91406 10.5293 6.91406 10.1719C6.91406 9.8145 7.10478 9.48428 7.41433 9.30569L10.7681 7.37081L11.9473 2.91598C12.0634 2.47736 12.4603 2.17188 12.914 2.17188Z"+ fill="#F2F2F2"+ />+ </svg>+ </div>+ <div className="flex flex-col lg:flex-row ml-2 sm:ml-4">+ <span className="text-white mr-2">Join the prize draw</span>+ </div>+ </div>+ <div className="flex w-full sm:w-auto justify-center gap-2 z-10">+ <ChipLink href="#lw-7-prizes" className="!pr-3 !justify-center">+ More info+ </ChipLink>+ </div>+ </SmallCard>+ </div>+ </SectionContainer>+ <SectionContainer className="!pt-0 !w-full !px-0 !max-w-none">+ <Accordion+ type="default"+ openBehaviour="multiple"+ size="large"+ className="text-white"+ justified={false}+ // bordered={false}+ chevronAlign="right"+ defaultValue={publishedSections}+ >+ <div className="border-b border-[#111718]">+ <Accordion.Item+ header={+ <AccordionHeader+ date={preRelease.date}+ day={preRelease.dd}+ title={preRelease.title}+ shipped={true}+ publishedAt={preRelease.publishedAt}+ />+ }+ key={preRelease.dd}+ // disabled={!prereleaseShipped}+ className="h-[79px]"+ id={preRelease.d.toString()}+ >+ {preRelease.steps.length > 0 && (+ <div className="h-[800px] lg:h-[400px] flex flex-col gap-5 lg:flex-row">+ <motion.div+ className={`+ relative overflow-hidden group/3 flex-1 flex flex-col items-center justify-between+ basis-1/2 lg:basis-1/3 border border-[#111718] rounded-xl h-full bg-no-repeat py-10 sm:py-14 px-8 lg:px-10 text-2xl bg-contain shadow-lg+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ >+ <div+ className="top-0 absolute group-hover/3:scale-105 opacity-60 group-hover/3:opacity-100 w-full h-full -z-10 transition-all duration-500"+ style={{+ background: `radial-gradient(100% 100% at 80% 110%, #6F13A450, transparent)`,+ }}+ />+ <div className="flex flex-col items-center gap-2 min-w-[300px]">+ {/* <StyledArticleBadge>New</StyledArticleBadge> */}+ <CartTitle>{preRelease.steps[0]?.title}</CartTitle>+ <p className="text-sm text-slate-900">{preRelease.steps[0]?.description}</p>+ </div>+ <SectionButtons blog={preRelease.steps[0]?.blog} />+ {preRelease.steps[0]?.bg_layers &&+ preRelease.steps[0]?.bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className="absolute opacity-90 inset-0 w-full h-full -z-10"+ variants={i === 1 ? scaleOpacityVariant : undefined}+ >+ <Image+ src={layer.img}+ className={`+ absolute opacity-90+ w-full h-full -z-10 transition-all duration-300+ `}+ layout="fill"+ objectPosition="50% 50%"+ objectFit="cover"+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden group/3 flex-1 flex flex-col items-center justify-between+ basis-1/2 lg:basis-1/3 border border-[#111718] rounded-xl h-full bg-no-repeat py-10 sm:py-14 px-8 lg:px-10 text-2xl bg-contain shadow-lg+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ >+ <div+ className="top-0 absolute group-hover/3:scale-105 opacity-60 group-hover/3:opacity-100 w-full h-full -z-10 transition-all duration-500"+ style={{+ background: `radial-gradient(100% 100% at 80% 110%, #6F13A450, transparent)`,+ }}+ />+ <div className="flex flex-col items-center gap-2 min-w-[300px]">+ {/* <StyledArticleBadge>New</StyledArticleBadge> */}+ <CartTitle>{preRelease.steps[1].title}</CartTitle>+ <p className="text-sm text-slate-900">{preRelease.steps[1].description}</p>+ </div>+ <SectionButtons+ github={preRelease.steps[1].github}+ hackernews={preRelease.steps[1].hackernews}+ />+ {preRelease.steps[1].bg_layers &&+ preRelease.steps[1].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className="absolute opacity-90 inset-0 w-full h-full -z-10"+ variants={i === 1 ? scaleOpacityVariant : undefined}+ >+ <Image+ src={layer.img}+ className={`+ absolute opacity-90+ w-full h-full -z-10 transition-all duration-300+ `}+ layout="fill"+ objectPosition="50% 50%"+ objectFit="cover"+ />+ </motion.div>+ )+ )}+ </motion.div>+ <motion.div+ className={`+ relative overflow-hidden group/3 flex-1 flex flex-col items-center justify-between+ basis-1/2 lg:basis-1/3 border border-[#111718] rounded-xl h-full bg-no-repeat py-10 sm:py-14 px-8 lg:px-10 text-2xl bg-contain shadow-lg+ `}+ initial="default"+ animate="default"+ whileHover="hover"+ >+ <div+ className="top-0 absolute group-hover/3:scale-105 opacity-60 group-hover/3:opacity-100 w-full h-full -z-10 transition-all duration-500"+ style={{+ background: `radial-gradient(100% 100% at 80% 110%, #6F13A450, transparent)`,+ }}+ />+ <div className="flex flex-col items-center gap-2 min-w-[300px]">+ {/* <StyledArticleBadge>New</StyledArticleBadge> */}+ <CartTitle>{preRelease.steps[2].title}</CartTitle>+ <p className="text-sm text-slate-900">{preRelease.steps[2].description}</p>+ </div>+ <SectionButtons blog={preRelease.steps[2].blog} />+ {preRelease.steps[2].bg_layers &&+ preRelease.steps[2].bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className="absolute opacity-90 inset-0 w-full h-full -z-10"+ variants={i === 1 ? scaleOpacityVariant : undefined}+ >+ <Image+ src={layer.img}+ className={`+ absolute opacity-90+ w-full h-full -z-10 transition-all duration-300+ `}+ layout="fill"+ objectPosition="50% 50%"+ objectFit="cover"+ />+ </motion.div>+ )+ )}+ </motion.div>+ </div>+ )}+ </Accordion.Item>+ </div>+ <div className="border-b border-[#111718]">+ <Accordion.Item+ header={+ <AccordionHeader+ date={day1.date}+ day={day1.dd}+ title={day1.title}+ shipped={day1Shipped}+ publishedAt={day1.publishedAt}+ />+ }+ disabled={!day1Shipped}+ className="h-[79px]"+ id={day1.d.toString()}+ >+ {day1.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 border-[#111718] rounded-xl h-full px-4 sm: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 justify-between flex-col-reverse lg:flex-row lg:justify-start gap-2 text-white">+ <CartTitle>{day1.steps[0]?.title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">New</StyledArticleBadge>+ </div>+ <SectionButtons+ blog={day1.steps[0]?.blog}+ video={day1.steps[0]?.video}+ hackernews={day1.steps[0]?.hackernews}+ />+ {day1.steps[0]?.bg_layers &&+ day1.steps[0]?.bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={[+ 'absolute inset-0 w-full h-full -z-10',+ i === 3 && '!mix-blend-overlay blur-2xl',+ ].join(' ')}+ variants={getDay1Motion(i)}+ >+ <Image+ src={+ !!layer.mobileImg && isTablet+ ? (layer.mobileImg as any)+ : layer.img+ }+ className={[+ `+ absolute+ w-full h-full -z-10 transition-all duration-300+ `,+ i === 5 && '',+ ].join(' ')}+ layout="fill"+ objectPosition={+ !!layer.mobileImg && isTablet ? '25% 80%' : '80% 50%'+ }+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ </div>+ )}+ </Accordion.Item>+ </div>+ <div className="border-b border-[#111718]">+ <Accordion.Item+ header={+ <AccordionHeader+ date={day2.date}+ day={day2.dd}+ title={day2.title}+ shipped={day2Shipped}+ publishedAt={day2.publishedAt}+ />+ }+ disabled={!day2Shipped}+ className="h-[79px]"+ id={day2.d.toString()}+ >+ {day2.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-4 sm: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 justify-between flex-col-reverse lg:flex-row lg:justify-start gap-2 text-black dark:text-white">+ <CartTitle>{day2.steps[0]?.title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">New</StyledArticleBadge>+ </div>+ <SectionButtons+ blog={day2.steps[0]?.blog}+ video={day2.steps[0]?.video}+ hackernews={day2.steps[0]?.hackernews}+ />+ {day2.steps[0]?.bg_layers &&+ day2.steps[0]?.bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={[+ 'absolute inset-0 w-full h-full -z-10',+ i === 3 && '!mix-blend-overlay blur-2xl',+ ].join(' ')}+ variants={getDay2Motion(i)}+ >+ <Image+ src={+ !!layer.mobileImg && isTablet+ ? (layer.mobileImg as any)+ : layer.img+ }+ className={[+ `+ absolute+ w-full h-full -z-10 transition-all duration-300+ `,+ i === 5 && '',+ ].join(' ')}+ layout="fill"+ objectPosition={+ !!layer.mobileImg && isTablet ? '25% 80%' : '80% 50%'+ }+ objectFit="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ </div>+ )}+ </Accordion.Item>+ </div>+ <div className="border-b border-[#111718]">+ <Accordion.Item+ header={+ <AccordionHeader+ date={day3.date}+ day={day3.dd}+ title={day3.title}+ shipped={day3Shipped}+ publishedAt={day3.publishedAt}+ />+ }+ disabled={!day3Shipped}+ className="h-[79px]"+ id={day3.d.toString()}+ >+ {day3.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-4 sm: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 justify-between flex-col-reverse lg:flex-row lg:justify-start gap-2 text-black dark:text-white">+ <CartTitle>{day3.steps[0]?.title}</CartTitle>+ <StyledArticleBadge className="lg:ml-2">Updated</StyledArticleBadge>+ </div>+ <SectionButtons+ docs={day3.steps[0]?.docs}+ blog={day3.steps[0]?.blog}+ video={day3.steps[0]?.video}+ />+ {day3.steps[0]?.bg_layers &&+ day3.steps[0]?.bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={[+ 'absolute inset-0 w-full h-full -z-10',+ i === 2 && '!mix-blend-overlay blur-2xl',+ ].join(' ')}+ variants={getDay3Motion(i)}+ >+ <Image+ src={+ !!layer.mobileImg && isTablet+ ? (layer.mobileImg as any)+ : layer.img+ }+ className={[+ `+ absolute+ w-full h-full -z-10 transition-all duration-300+ `,+ i === 5 && '',+ ].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-[#111718]">+ <Accordion.Item+ header={+ <AccordionHeader+ date={day4.date}+ day={day4.dd}+ title={day4.title}+ shipped={day4Shipped}+ publishedAt={day4.publishedAt}+ />+ }+ disabled={!day4Shipped}+ className="h-[79px]"+ id={day4.d.toString()}+ >+ {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-4 sm: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 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}+ hackernews={day4.steps[0]?.hackernews}+ mobileGrid+ />+ {day4.steps[0]?.bg_layers &&+ day4.steps[0]?.bg_layers?.map(+ (layer, i) =>+ !!layer.img && (+ <motion.div+ className={['absolute inset-0 w-full h-full -z-10'].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="cover"+ quality={100}+ />+ </motion.div>+ )+ )}+ </motion.div>+ </div>+ )}+ </Accordion.Item>+ </div>+ <div className="border-b border-[#111718]" id="currentDay">+ <Accordion.Item+ header={+ <AccordionHeader+ date={day5.date}+ day={day5.dd}+ title={day5.title}+ shipped={day5Shipped}+ publishedAt={day5.publishedAt}+ />+ }+ disabled={!day5Shipped}+ className="h-[79px]"+ id={day5.d.toString()}+ ></Accordion.Item>+ </div>+ </Accordion>+ </SectionContainer>+ </>+ )+}diff --git a/apps/www/components/LaunchWeek/8/Releases/lw8_data.ts b/apps/www/components/LaunchWeek/8/Releases/lw8_data.tsnew file mode 100644index 00000000000..4fc39d5c70c--- /dev/null+++ b/apps/www/components/LaunchWeek/8/Releases/lw8_data.ts@@ -0,0 +1,214 @@+const images = {+ '0-ogImages-01': '/images/launchweek/seven/day0/ai-images/ai-images-01.png',+ '0-ogImages-02': '/images/launchweek/seven/day0/ai-images/ai-image-03.svg',+ '0-ogImages-03': '/images/launchweek/seven/day0/ai-images/ai-image-04.png',+ '0-ogImages-03-mobile': '/images/launchweek/seven/day0/ai-images/ai-image-text-input.png',+ '0-ogImages-04': '/images/launchweek/seven/day0/ai-images/images/img_3.png',+ '0-ogImages-05': '/images/launchweek/seven/day0/ai-images/ai-images-overlay.png',+ '0-supavisor-01': '/images/launchweek/seven/day0/supavisor/supavisor_01.svg',+ '0-supavisor-02': '/images/launchweek/seven/day0/supavisor/supavisor_02.svg',+ '01-self-hosted-logs-01': '/images/launchweek/seven/day1/self-hosted-logs-base.jpg',+ '01-self-hosted-logs-01-mobile':+ '/images/launchweek/seven/day1/self-hosted-logs-007-mobile-base.jpg',+ '01-self-hosted-logs-03': '/images/launchweek/seven/day1/self-hosted-logs-001-5.svg',+ '01-self-hosted-logs-03-mobile':+ '/images/launchweek/seven/day1/self-hosted-logs-001-5-mobile.svg',+ '01-self-hosted-logs-04': '/images/launchweek/seven/day1/self-hosted-logs-001-7.svg',+ '01-self-hosted-logs-04-mobile':+ '/images/launchweek/seven/day1/self-hosted-logs-001-7-mobile.svg',+ '01-self-hosted-logs-06': '/images/launchweek/seven/day1/self-hosted-logs-004.png',+ '02-self-hosted-edge-functions-thumb':+ '/images/launchweek/seven/day2/self-hosted-edge-functions-thumb.png',+ '02-self-hosted-edge-functions-01':+ '/images/launchweek/seven/day2/self-hosted-edge-functions-001.png',+ '02-self-hosted-edge-functions-02':+ '/images/launchweek/seven/day2/self-hosted-edge-functions-002.png',+ '03-storage-thumb': '/images/launchweek/seven/day3/storage-v3-thumb.png',+ '03-storage-01': '/images/launchweek/seven/day3/storage-01.png',+ '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-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-community-01-001': '/images/launchweek/seven/day5/community/community-01-01.jpg',+ '05-community-01-001-mobile':+ '/images/launchweek/seven/day5/community/community-01-01-mobile.jpg',+ '05-community-01-002': '/images/launchweek/seven/day5/community/community-01-02.png',+ '05-community-01-002-mobile':+ '/images/launchweek/seven/day5/community/community-01-02-mobile.png',+ '05-community-01-thumb': '/images/launchweek/seven/day5/community/community-thumb.jpg',+ '05-studio-01-thumb': '/images/launchweek/seven/day5/studio/studio-thumb.jpg',+ '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-02.jpg',+ '05-studio-08-base': '/images/launchweek/seven/day5/studio/studio-08-dbWebhooks.jpg',+ '05-studio-08-base-mobile':+ '/images/launchweek/seven/day5/studio/studio-08-dbWebhooks-mobile.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',+ '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-003': '/images/launchweek/seven/day5/one-more-thing/omt-01-03.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-003': '/images/launchweek/seven/day5/one-more-thing/omt-02-03.png',+ '05-omt-02-002-mobile': '/images/launchweek/seven/day5/one-more-thing/omt-02-02-mobile.png',+ '05-omt-01-thumb': '/images/launchweek/seven/day5/one-more-thing/dbdev-thumb.jpg',+ '05-omt-02-thumb': '/images/launchweek/seven/day5/one-more-thing/pgTLE-thumb.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+ hideInBlog?: boolean+ bg_layers?: {+ lottie?: any+ img?: string+ mobileImg?: string+ }[]+ steps: StepProps[] | []+}+export interface WeekDayProps {+ title: string+ shipped: boolean+ date: string+ publishedAt: string+ description: string+ d: number+ dd: string+ youtube_id: string+ blogpost: string+ docs: string+ steps: StepProps[] | []+}++export const endOfLW8 = '2023-08-11T23:59:59.999-08:00'++const days: WeekDayProps[] = [+ {+ title: '',+ shipped: true,+ date: '04 Aug',+ publishedAt: '2023-08-04T07:00:00.000-08:00',+ description: '',+ d: 0,+ dd: 'Pre-release',+ youtube_id: '',+ blogpost: '',+ docs: '',+ steps: [+ {+ title: "Why we'll stay remote",+ blog: 'asdf',+ thumb: '/images/launchweek/seven/day0/ai-images/00-ai-images-thumb.png',+ // bg_layers: [{ img: images['0-ogImages-01'] }],+ steps: [],+ },+ {+ title: 'Postgres Language Server',+ github: 'https://github.com/supabase/...',+ hackernews: 'https://news.ycombinator.com/item?id=...',+ thumb: '/images/launchweek/seven/day0/supavisor/supavisor-thumb.png',+ // bg_layers: [{ img: images['0-supavisor-01'] }],+ steps: [],+ },+ {+ title: 'How we made LW8',+ blog: 'asdf',+ thumb: '/images/launchweek/seven/day0/ai-images/00-ai-images-thumb.png',+ // bg_layers: [{ img: images['0-ogImages-01'] }],+ steps: [],+ },+ ],+ },+ {+ title: '',+ shipped: true,+ date: '07 Aug',+ publishedAt: '2023-08-07T07:00:00.000-08:00',+ description: '',+ d: 1,+ dd: 'Mon',+ youtube_id: '',+ blogpost: '',+ docs: '',+ steps: [],+ },+ {+ title: '',+ shipped: true,+ date: '08 Aug',+ publishedAt: '2023-08-08T07:00:00.000-08:00',+ description: '',+ d: 2,+ dd: 'Tue',+ youtube_id: 'cPGxPl1lx4Y',+ blogpost: '',+ docs: '',+ steps: [],+ },+ {+ title: '',+ shipped: true,+ date: '09 Aug',+ publishedAt: '2023-08-09T07:00:00.000-08:00',+ description: '',+ d: 3,+ dd: 'Wed',+ youtube_id: '',+ blogpost: '',+ docs: '/docs/guides/storage/uploads#resumable-upload',+ steps: [],+ },+ {+ title: '',+ shipped: true,+ date: '10 Aug',+ publishedAt: '2023-08-10T07:00:00.000-08:00',+ description: '',+ d: 4,+ dd: 'Thu',+ youtube_id: '',+ blogpost: '',+ docs: '',+ steps: [],+ },+ {+ title: '',+ shipped: true,+ date: '11 Aug',+ publishedAt: '2023-08-11T00:00:00.000-08:00',+ description: '',+ d: 5,+ dd: 'Fri',+ youtube_id: '',+ blogpost: '',+ docs: '',+ steps: [],+ },+]++export default daysdiff --git a/apps/www/components/LaunchWeek/8/Releases/styles/launchWeek7.module.css b/apps/www/components/LaunchWeek/8/Releases/styles/launchWeek7.module.cssnew file mode 100644index 00000000000..7a1417601cd--- /dev/null+++ b/apps/www/components/LaunchWeek/8/Releases/styles/launchWeek7.module.css@@ -0,0 +1,29 @@+.mask {+ mask-image: radial-gradient(black, transparent);+}++.dark_community {+ background-image: radial-gradient(closest-side at 50% 50%, #132121, #132121db, #121212);+}++.community {+ background-image: radial-gradient(closest-side at 50% 50%, #d9eeef, #dbeef0, white);+}++.wrappers > span {+ left: -200px !important;+}++.community_wrappers > span {+ left: -400px !important;+}++@media (max-width: 768px) {+ .community_wrappers > span > img {+ object-fit: contain !important;+ }+}++.lw7-article-card-gradient {+ background: linear-gradient(90deg, #1c1c1c -20%, #20113d50 150%);+}diff --git a/apps/www/components/LaunchWeek/8/Releases/styles/utils7.module.css b/apps/www/components/LaunchWeek/8/Releases/styles/utils7.module.cssnew file mode 100644index 00000000000..c4aba2ab686--- /dev/null+++ b/apps/www/components/LaunchWeek/8/Releases/styles/utils7.module.css@@ -0,0 +1,76 @@+.appear {+ opacity: 0;+ animation: appear 0.8s cubic-bezier(0.1, 0, 0.175, 1) forwards;+}++.appear-first {+ animation-delay: 0.4s;+}++.appear-second {+ animation-delay: 0.8s;+}++.appear-third {+ animation-delay: 1.2s;+}++.appear-fourth {+ animation-delay: 1.6s;+}++.appear-fifth {+ animation-delay: 2s;+}++.appear-sixth {+ animation-delay: 2.4s;+}++@keyframes appear {+ to {+ opacity: 1;+ }+}++@media (min-width: 1200px) {+ .hide-on-desktop {+ display: none;+ }+}++.show-on-mobile {+ display: block;+}++.hide-on-mobile {+ display: none;+}++@media (min-width: 768px) {+ .show-on-mobile {+ display: none;+ }++ .hide-on-mobile {+ display: block;+ }+}++.hide-on-tablet {+ display: block;+}++.show-on-tablet {+ display: none;+}++@media (max-width: 1199px) and (min-width: 768px) {+ .show-on-tablet {+ display: block;+ }++ .hide-on-tablet {+ display: none;+ }+}diff --git a/apps/www/components/LaunchWeek/8/Ticket/TicketActions.tsx b/apps/www/components/LaunchWeek/8/Ticket/TicketActions.tsxindex 3a81766bc57..103e8b5e63b 100644--- a/apps/www/components/LaunchWeek/8/Ticket/TicketActions.tsx+++ b/apps/www/components/LaunchWeek/8/Ticket/TicketActions.tsx@@ -20,8 +20,8 @@ export default function TicketActions({ticketGenerationState,setTicketGenerationState,}: Props) {- const [imgReady, setImgReady] = useState(false)- const [loading, setLoading] = useState(false)+ const [_imgReady, setImgReady] = useState(false)+ const [_loading, setLoading] = useState(false)const downloadLink = useRef<HTMLAnchorElement>()const link = `${SITE_URL}/tickets/${username}?lw=8${golden ? `&golden=true` : ''}`const permalink = encodeURIComponent(link)diff --git a/apps/www/components/Nav/Company.tsx b/apps/www/components/Nav/Company.tsxindex 3332c475b76..620acfb2ef0 100644--- a/apps/www/components/Nav/Company.tsx+++ b/apps/www/components/Nav/Company.tsx@@ -27,7 +27,7 @@ const Company = () => {stroke="currentColor"aria-hidden="true">- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d={icon} />+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d={icon} /></svg><div className="ml-4"><p className="text-base font-medium text-gray-900 dark:text-white">{text}</p>diff --git a/apps/www/components/Nav/Developers.tsx b/apps/www/components/Nav/Developers.tsxindex 01cd98ebedf..71061cd2fc8 100644--- a/apps/www/components/Nav/Developers.tsx+++ b/apps/www/components/Nav/Developers.tsx@@ -32,7 +32,7 @@ const Developers = () => {stroke="currentColor"aria-hidden="true">- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d={icon} />+ <path stroke-linecap="round" strokeLinejoin="round" strokeWidth="1.5" d={icon} /></svg>)}{Svg && <Svg />}diff --git a/apps/www/data/partners/index.tsx b/apps/www/data/partners/index.tsxindex 317e95ae89f..bb5399763c8 100644--- a/apps/www/data/partners/index.tsx+++ b/apps/www/data/partners/index.tsx@@ -29,9 +29,9 @@ export default {aria-hidden="true"><path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="1.5"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"d="M12.0003 6.1488L10.5812 4.76334C8.68921 2.91613 5.62161 2.91613 3.72957 4.76334C1.98628 6.46532 1.84923 9.14165 3.31842 10.9968C3.44378 11.1551 3.77166 11.514 3.92041 11.6592M12.0003 6.1488L13.4193 4.76334C15.3113 2.91613 18.3789 2.91613 20.271 4.76334C22.163 6.61054 22.163 9.60546 20.271 11.4527L19.2017 12.5186M12.0003 6.1488L10.7542 7.39725C10.0214 8.13141 10.0219 9.32043 10.7554 10.0539C11.4894 10.7879 12.6793 10.7879 13.4133 10.0539L16.0693 7.39787M14.9131 13.4531L17.4954 16.1809M17.4954 16.1809C18.2089 16.9347 18.1764 18.1242 17.4226 18.8378C16.6693 19.5509 15.4807 19.5189 14.7669 18.7663L13.3188 17.2217M17.4954 16.1809C18.2086 16.9344 19.3982 16.9676 20.1516 16.2543C20.9051 15.5411 20.9376 14.3521 20.2244 13.5987L17.6415 10.8703M6.13555 14.7589L7.46387 13.4306M6.13555 14.7589C5.40193 15.4925 4.21251 15.4925 3.47889 14.7589C2.74528 14.0253 2.74528 12.8358 3.47889 12.1022L4.80722 10.7739C5.54084 10.0403 6.73026 10.0403 7.46388 10.7739C8.19749 11.5075 8.19749 12.6969 7.46387 13.4306M6.13555 14.7589C5.40193 15.4925 5.40193 16.6819 6.13555 17.4155C6.86916 18.1492 8.05859 18.1492 8.7922 17.4155M7.46387 13.4306C8.19749 12.6969 9.38691 12.6969 10.1205 13.4306C10.8541 14.1642 10.8541 15.3536 10.1205 16.0872M8.7922 17.4155L10.1205 16.0872M8.7922 17.4155C8.05859 18.1492 8.05859 19.3386 8.7922 20.0722C9.52582 20.8058 10.7152 20.8058 11.4489 20.0722L12.7772 18.7439C13.5108 18.0102 13.5108 16.8208 12.7772 16.0872C12.0436 15.3536 10.8541 15.3536 10.1205 16.0872"/></svg>diff --git a/apps/www/lib/constants.ts b/apps/www/lib/constants.tsindex 45408582f02..2582abf0ff7 100644--- a/apps/www/lib/constants.ts+++ b/apps/www/lib/constants.ts@@ -38,7 +38,7 @@ export const TWITTER_USER_NAME = 'supabase'export const COOKIE = 'supa-lw8-ticket-user-id'export const LW7_DATE = 'April 10th 2023'export const LW8_DATE = 'August 7-11'-export const LW8_LAUNCH_DATE = '2023-08-07T09:00:00.000-07:00'+export const LW8_LAUNCH_DATE = '2023-08-07T09:00:00.000-08:00'export const TWEET_TEXT ='#SupaLaunchWeek 8 is coming August 7-11! Join the party and generate your custom ticket for a chance to win swag ✨'export const TWEET_TEXT_GOLDEN = `I turned my #SupaLaunchWeek 8 ticket GOLD! 🌟😎🌟\n\n`diff --git a/apps/www/package.json b/apps/www/package.jsonindex 55aacb7ebbb..6b6fb4b06bf 100644--- a/apps/www/package.json+++ b/apps/www/package.json@@ -60,7 +60,7 @@"shared-data": "*","swiper": "^6.5.0","swr": "^0.5.4",- "three": "^0.154.0",+ "three": "^0.136.0","typescript": "^5.0.4","ui": "*","use-debounce": "^7.0.1",diff --git a/apps/www/pages/launch-week/7/index.tsx b/apps/www/pages/launch-week/7/index.tsxindex 55c3b4348aa..5043d62d84d 100644--- a/apps/www/pages/launch-week/7/index.tsx+++ b/apps/www/pages/launch-week/7/index.tsx@@ -28,11 +28,11 @@ interface Props {const supabaseAdmin = createClient(process.env.NEXT_PUBLIC_SUPABASE_URL ?? 'http://localhost:54321',+ // ANON KEYprocess.env.SUPABASE_SERVICE_ROLE_SECRET ??process.env.NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_SECRET ??- ''+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9idWxkYW5ycHRsb2t0eGNmZnZuIiwicm9sZSI6ImFub24iLCJpYXQiOjE2Njk3MjcwMTIsImV4cCI6MTk4NTMwMzAxMn0.SZLqryz_-stF8dgzeVXmzZWPOqdOrBwqJROlFES8v3I')-export default function TicketHome({ users }: Props) {const { isDarkMode, toggleTheme } = useTheme()diff --git a/apps/www/pages/launch-week/7/tickets/index.tsx b/apps/www/pages/launch-week/7/tickets/index.tsxindex 61b1b0cd3a6..0027a45b7c6 100644--- a/apps/www/pages/launch-week/7/tickets/index.tsx+++ b/apps/www/pages/launch-week/7/tickets/index.tsx@@ -131,11 +131,7 @@ export default function TicketsPage({ users }: Props) {<h2 className="text-4xl">Check out <span className="gradient-text-pink-500">all the tickets</span></h2>- <p className="radial-gradient-text-scale-500">- Join us on April 16th for Launch Week 7's final day{' '}- <br className="hidden md:inline-block" /> and find out if you are one of the lucky- winners. Get sharing!- </p>+ <p className="radial-gradient-text-scale-500">Submissions are closed.</p><div className="mt-1"><Link href="/launch-week/7"><a>diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsxindex 0462fd955db..93185cfb128 100644--- a/apps/www/pages/launch-week/index.tsx+++ b/apps/www/pages/launch-week/index.tsx@@ -1,14 +1,15 @@-import { GetServerSideProps } from 'next'-import { NextSeo } from 'next-seo'import { useState, useEffect } from 'react'-import Image from 'next/image'+import { GetServerSideProps } from 'next'import dynamic from 'next/dynamic'+import Head from 'next/head'+import Image from 'next/image'import { useRouter } from 'next/router'+import { NextSeo } from 'next-seo'import { createClient, Session, SupabaseClient } from '@supabase/supabase-js'import { SITE_ORIGIN, SITE_URL } from '~/lib/constants'-import { PageState, ConfDataContext, UserData } from '~/components/LaunchWeek/hooks/use-conf-data'import DefaultLayout from '~/components/Layouts/Default'+import { PageState, ConfDataContext, UserData } from '~/components/LaunchWeek/hooks/use-conf-data'import SectionContainer from '~/components/Layouts/SectionContainer'import { LaunchWeekLogoHeader } from '~/components/LaunchWeek/8/LaunchWeekLogoHeader'import { Meetup } from '~/components/LaunchWeek/8/LW8Meetups'@@ -16,12 +17,16 @@ import { Meetup } from '~/components/LaunchWeek/8/LW8Meetups'import { useTheme } from 'common/Providers'import 'swiper/swiper.min.css'+<<<<<<< HEADimport Head from 'next/head'import LW8CalloutsSection from '../../components/LaunchWeek/8/LW8CalloutsSection'+=======+>>>>>>> 26b990905 (lw8: pre release page setup)const AnimatedParticles = dynamic(() => import('~/components/LaunchWeek/8/AnimatedParticles/ParticlesCanvas'))+const LW8Releases = dynamic(() => import('~/components/LaunchWeek/8/Releases'))const TicketContainer = dynamic(() => import('~/components/LaunchWeek/8/Ticket/TicketContainer'))const LW8Meetups = dynamic(() => import('~/components/LaunchWeek/8/LW8Meetups'))const LaunchWeekPrizeSection = dynamic(@@ -67,7 +72,7 @@ export default function TicketHome({ users, meetups }: Props) {}const [userData, setUserData] = useState<UserData>(defaultUserData)- const [pageState, setPageState] = useState<PageState>('ticket')+ const [_, setPageState] = useState<PageState>('ticket')useEffect(() => {if (!supabase) {@@ -142,7 +147,7 @@ export default function TicketHome({ users, meetups }: Props) {<LaunchWeekLogoHeader /></div><div className="absolute inset-0 z-0">- {supabase && <AnimatedParticles supabase={supabase} users={users} />}+ {supabase && <AnimatedParticles />}<Imagesrc="/images/launchweek/8/stars.svg"alt="starts background"@@ -176,6 +181,10 @@ export default function TicketHome({ users, meetups }: Props) {<LW8Meetups meetups={meetups} /></SectionContainer>+ <div className="relative !w-full max-w-[100vw] !px-4 sm:max-w-xl md:max-w-4xl lg:max-w-7xl z-20 flex flex-col justify-around items-center pt-16 gap-2 md:gap-4 !mx-auto">+ <LW8Releases />+ </div>+<div className="relative !w-full max-w-[100vw] min-h-[400px] !px-4 sm:max-w-xl md:max-w-4xl lg:max-w-7xl z-20 flex flex-col justify-around items-center !py-4 md:!py-8 lg:!pb-0 gap-2 md:gap-4 !mx-auto">{supabase && (<div className="w-full max-w-[100vw] px-4 flex justify-center py-8 md:py-20">@@ -203,10 +212,15 @@ export const getServerSideProps: GetServerSideProps = async () => {// fetch users for the TicketBrickWallconst { data: users } = await supabaseAdmin!.from('lw8_tickets_golden')+<<<<<<< HEAD.select('username, golden').limit(1000)const { data: meetups } = await supabaseAdmin!.from('lw8_meetups').select('*')+=======+ .select('username, golden', { count: 'exact' })+ .limit(17)+>>>>>>> 26b990905 (lw8: pre release page setup)return {props: {diff --git a/apps/www/pages/partners/experts/index.tsx b/apps/www/pages/partners/experts/index.tsxindex d1f152a074b..eef756d787e 100644--- a/apps/www/pages/partners/experts/index.tsx+++ b/apps/www/pages/partners/experts/index.tsx@@ -78,11 +78,11 @@ function ExpertPartnersPage(props: Props) {fill="none"viewBox="0 0 24 24"stroke="currentColor"- stroke-width="1"+ strokeWidth="1"><path- stroke-linecap="round"- stroke-linejoin="round"+ strokeLinecap="round"+ strokeLinejoin="round"d="M11 4a2 2 0 114 0v1a1 1 0 001 1h3a1 1 0 011 1v3a1 1 0 01-1 1h-1a2 2 0 100 4h1a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-1a2 2 0 10-4 0v1a1 1 0 01-1 1H7a1 1 0 01-1-1v-3a1 1 0 00-1-1H4a2 2 0 110-4h1a1 1 0 001-1V7a1 1 0 011-1h3a1 1 0 001-1V4z"/></svg>@@ -100,11 +100,11 @@ function ExpertPartnersPage(props: Props) {fill="none"viewBox="0 0 24 24"stroke="currentColor"- stroke-width="1"+ strokeWidth="1"><path- stroke-linecap="round"- stroke-linejoin="round"+ strokeLinecap="round"+ strokeLinejoin="round"d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"/></svg>diff --git a/package-lock.json b/package-lock.jsonindex 5a328304632..b370d57c4c8 100644--- a/package-lock.json+++ b/package-lock.json@@ -353,7 +353,7 @@"shared-data": "*","swiper": "^6.5.0","swr": "^0.5.4",- "three": "^0.154.0",+ "three": "^0.136.0","typescript": "^5.0.4","ui": "*","use-debounce": "^7.0.1",@@ -399,6 +399,11 @@"react": ">=16"}},+ "apps/www/node_modules/three": {+ "version": "0.136.0",+ "resolved": "https://registry.npmjs.org/three/-/three-0.136.0.tgz",+ "integrity": "sha512-+fEMX7nYLz2ZesVP/dyifli5Jf8gR3XPAnFJveQ80aMhibFduzrADnjMbARXh8+W9qLK7rshJCjAIL/6cDxC+A=="+ },"apps/www/node_modules/typescript": {"version": "5.0.4","license": "Apache-2.0",@@ -37512,7 +37517,8 @@"node_modules/three": {"version": "0.154.0","resolved": "https://registry.npmjs.org/three/-/three-0.154.0.tgz",- "integrity": "sha512-Uzz8C/5GesJzv8i+Y2prEMYUwodwZySPcNhuJUdsVMH2Yn4Nm8qlbQe6qRN5fOhg55XB0WiLfTPBxVHxpE60ug=="+ "integrity": "sha512-Uzz8C/5GesJzv8i+Y2prEMYUwodwZySPcNhuJUdsVMH2Yn4Nm8qlbQe6qRN5fOhg55XB0WiLfTPBxVHxpE60ug==",+ "peer": true},"node_modules/throat": {"version": "6.0.2",diff --git a/packages/ui/src/components/CountdownWidget/CountdownStep.tsx b/packages/ui/src/components/CountdownWidget/CountdownStep.tsxindex b1521b5ff24..35af4febab2 100644--- a/packages/ui/src/components/CountdownWidget/CountdownStep.tsx+++ b/packages/ui/src/components/CountdownWidget/CountdownStep.tsx@@ -1,12 +1,25 @@interface CountdownStepProps {value: string | numberunit: string+ showCard?: boolean}-function CountdownStep({ value, unit }: CountdownStepProps) {+function CountdownStep({ value, unit, showCard = true }: CountdownStepProps) {return (- <div className="rounded-md p-[1px] overflow-hidden bg-gradient-to-b from-[#514b6130] to-[#514b6100]">- <div className="py-1 px-2 rounded-md w-11 leading-4 flex items-center justify-center bg-gradient-to-b from-[#51269c40] to-[#DBB8BF10] backdrop-blur-md">+ <div+ className={[+ showCard+ ? 'rounded-md p-[1px] overflow-hidden bg-gradient-to-b from-[#514b6130] to-[#514b6100]'+ : '',+ ].join(' ')}+ >+ <div+ className={[+ showCard+ ? 'py-1 px-2 rounded-md w-11 leading-4 flex items-center justify-center bg-gradient-to-b from-[#51269c40] to-[#DBB8BF10] backdrop-blur-md'+ : 'flex items-center justify-center w-9 py-1 px-1',+ ].join(' ')}+ ><span className="m-0">{value}</span><span>{unit}</span></div>diff --git a/packages/ui/src/components/CountdownWidget/CountdownWidget.tsx b/packages/ui/src/components/CountdownWidget/CountdownWidget.tsxindex ed61492064b..9019c7dc6ed 100644--- a/packages/ui/src/components/CountdownWidget/CountdownWidget.tsx+++ b/packages/ui/src/components/CountdownWidget/CountdownWidget.tsx@@ -5,28 +5,29 @@ interface CountdownWidgetProps {hours?: stringminutes?: stringseconds?: string+ showCard?: boolean}-function CountdownWidget({ days, hours, minutes, seconds }: CountdownWidgetProps) {+function CountdownWidget({ days, hours, minutes, seconds, showCard = true }: CountdownWidgetProps) {return (<div className="flex gap-1 items-center">{days !== undefined && (<>- <CountdownStep value={days} unit="d" /> :+ <CountdownStep value={days} unit="d" showCard={showCard} /> :</>)}{hours !== undefined && (<>- <CountdownStep value={hours} unit="h" /> :+ <CountdownStep value={hours} unit="h" showCard={showCard} /> :</>)}{minutes !== undefined && (<>- <CountdownStep value={minutes} unit="m" />+ <CountdownStep value={minutes} unit="m" showCard={showCard} />{seconds !== undefined && ' :'}</>)}- {seconds !== undefined && <CountdownStep value={seconds} unit="s" />}+ {seconds !== undefined && <CountdownStep value={seconds} unit="s" showCard={showCard} />}</div>)}