The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Post X (#19828)
Francesco Sansalvadoreacd1c02cf937
diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsxindex c6cc18df10b..a800e70acfe 100644--- a/apps/www/components/Hero/Hero.tsx+++ b/apps/www/components/Hero/Hero.tsx@@ -3,7 +3,7 @@ import { useRouter } from 'next/router'import Telemetry, { TelemetryEvent } from '~/lib/telemetry'import { useTelemetryProps } from 'common/hooks/useTelemetryProps'import gaEvents from '~/lib/gaEvents'-import { Button, IconBookOpen } from 'ui'+import { Button, IconBookOpen, cn } from 'ui'import SectionContainer from '~/components/Layouts/SectionContainer'import HeroFrameworks from './HeroFrameworks'import styles from './hero.module.css'@@ -23,17 +23,17 @@ const Hero = () => {<div className="mx-auto"><div className="mx-auto max-w-2xl lg:col-span-6 lg:flex lg:items-center justify-center text-center"><div- className={[+ className={cn('relative z-10 appear-first lg:h-auto pt-[90px] lg:pt-[90px] lg:min-h-[300px] flex flex-col items-center justify-center sm:mx-auto md:w-3/4 lg:mx-0 lg:w-full gap-4 lg:gap-8',- styles['hero-text'],- ].join(' ')}+ styles['hero-text']+ )}><div className="flex flex-col items-center"><div className="z-40 w-full flex justify-center mb-8 lg:mb-8"><AnnouncementBadge- announcement="Launch Week X — Day 5"- url="/launch-week#day-5"- badge="Live"+ url="/launch-week"+ badge="Launch Week X"+ announcement="See everything 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/8/Releases/LWAnnouncement.tsx b/apps/www/components/LaunchWeek/8/Releases/LWAnnouncement.tsxindex 3c209eaaf21..8e1e54250ae 100644--- a/apps/www/components/LaunchWeek/8/Releases/LWAnnouncement.tsx+++ b/apps/www/components/LaunchWeek/8/Releases/LWAnnouncement.tsx@@ -2,18 +2,8 @@ import React from 'react'import { SmallCard } from './components'import Link from 'next/link'import Image from 'next/image'-// import days from './lw8_data'-// import { ExpandableVideo } from 'ui'--const LWAnnouncement = ({- title,- isLaunchWeekPage,-}: {- title?: string- isLaunchWeekPage?: boolean-}) => {- // const [_pre, _d1, _d2, _d3, _d4, currentDay] = days+const LWAnnouncement = () => {const announcement = (<><div className="relative flex-shrink flex items-center p-2 w-2/3 md:w-auto">@@ -25,14 +15,6 @@ const LWAnnouncement = ({</div></div><div className="relative flex items-center justify-center !aspect-video h-[80px] md:h-[80px] gap-2 z-10 rounded overflow-hidden">- {/* <div className="absolute z-10 w-4 h-4 text-white opacity-70">- <svg viewBox="0 0 81 91" fill="none" xmlns="http://www.w3.org/2000/svg">- <path- d="M76.5621 37.998C82.3369 41.3321 82.3369 49.6673 76.5621 53.0014L13.2198 89.5721C7.44504 92.9062 0.226562 88.7386 0.226562 82.0704L0.226566 8.92901C0.226566 2.26085 7.44506 -1.90673 13.2199 1.42735L76.5621 37.998Z"- fill="currentColor"- />- </svg>- </div> */}<Imagesrc="/images/launchweek/8/lw8-og.jpg"alt="Launch Week 8"@@ -43,38 +25,18 @@ const LWAnnouncement = ({</>)- // const handleClick = () => {- // if (typeof document === 'undefined') return null- // const today = document.getElementById('today')- // if (!today) return- // window.scrollTo({ top: today?.offsetTop + today?.offsetHeight, left: 0, behavior: 'smooth' })- // }-return (<div className="w-full max-w-xl opacity-0 !animate-[fadeIn_0.5s_cubic-bezier(0.25,0.25,0,1)_0.5s_both]"><SmallCardclassName="border hover:border-stronger transition-colors"innerClassName="bg-opacity-70 items-stretch">- {/* {isLaunchWeekPage ? (- <ExpandableVideo- videoId="qzxzLSAJDfE"- onOpenCallback={handleClick}- triggerContainerClassName="w-full"- trigger={- <div className="flex flex-row justify-between items-stretch w-full h-full gap-2 text-left">- {announcement}- </div>- }- />- ) : ( */}<Linkhref="/launch-week"className="flex flex-row justify-between items-center w-full h-full gap-2 text-left">{announcement}</Link>- {/* )} */}</SmallCard></div>)diff --git a/apps/www/components/LaunchWeek/8/Releases/components/index.tsx b/apps/www/components/LaunchWeek/8/Releases/components/index.tsxindex e0832847c2c..cec714c1d52 100644--- a/apps/www/components/LaunchWeek/8/Releases/components/index.tsx+++ b/apps/www/components/LaunchWeek/8/Releases/components/index.tsx@@ -1,7 +1,6 @@import { Badge, ExpandableVideo } from 'ui'import Link from 'next/link'-import CountdownComponent from '../../Countdown'import Image from 'next/image'export const PencilSvg = () => (@@ -238,28 +237,6 @@ export const AccordionHeader = ({</div>)}</div>- {/* {shippable && !shipped && (- <span className="text-sm font-normal text-[#A0A0A0] mt-1 sm:mt-0 flex items-center gap-1 md:gap-4">- <svg- width="17"- height="17"- viewBox="0 0 17 17"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <g opacity="0.5">- <path- fillRule="evenodd"- clipRule="evenodd"- d="M4.32656 7.58047V5.98047C4.32656 3.77133 6.11742 1.98047 8.32656 1.98047C10.5357 1.98047 12.3266 3.77133 12.3266 5.98047V7.58047C13.2102 7.58047 13.9266 8.29681 13.9266 9.18047V13.1805C13.9266 14.0641 13.2102 14.7805 12.3266 14.7805H4.32656C3.44291 14.7805 2.72656 14.0641 2.72656 13.1805V9.18047C2.72656 8.29681 3.44291 7.58047 4.32656 7.58047ZM10.7266 5.98047V7.58047H5.92656V5.98047C5.92656 4.65499 7.00108 3.58047 8.32656 3.58047C9.65205 3.58047 10.7266 4.65499 10.7266 5.98047Z"- fill="#A0A0A0"- />- </g>- </svg>-- {day === 5 && <CountdownComponent date={publishedAt} showCard={false} />}- </span>- )} */}</div></div>)diff --git a/apps/www/components/LaunchWeek/X/AddToCalendar.tsx b/apps/www/components/LaunchWeek/X/AddToCalendar.tsxdeleted file mode 100644index 6300a9388d6..00000000000--- a/apps/www/components/LaunchWeek/X/AddToCalendar.tsx+++ /dev/null@@ -1,22 +0,0 @@-import Link from 'next/link'-import React from 'react'-import { Button } from 'ui'-import { LWX_LAUNCH_DATE } from '../../../lib/constants'--const AddToCalendar = () => {- const eventTitle = 'Supabase Launch Week X'- const timestampDate = ''- const link = encodeURI(- `https://calendar.google.com/calendar/render?action=TEMPLATE&dates=${timestampDate}%${timestampDate}&text=${eventTitle}`- )-- return (- <Button size="tiny" type="outline" className="mt-1 py-1 px-2 leading-none" asChild>- <Link href={link} target="_blank">- Add to calendar- </Link>- </Button>- )-}--export default AddToCalendardiff --git a/apps/www/components/LaunchWeek/X/LWArchive.tsx b/apps/www/components/LaunchWeek/X/LWArchive.tsxdeleted file mode 100644index 7d710dead6e..00000000000--- a/apps/www/components/LaunchWeek/X/LWArchive.tsx+++ /dev/null@@ -1,53 +0,0 @@-import React from 'react'-import { StyledArticleBadge } from './Releases/components'-import Image from 'next/image'--const LWArchive = () => {- return (- <div className="w-full text-white flex flex-col lg:flex-row gap-8 lg:gap-16">- <div className="lg:basis-1/3 flex flex-col items-start gap-4">- <StyledArticleBadge>Throwback</StyledArticleBadge>- <h2 className="text-4xl">Previous Launch Weeks</h2>- <p className="text-[#9296AA]">- Explore our past Launch Weeks, and check the progress we've made on our journey.- </p>- </div>- <div className="lg:basis-2/3 relative grid grid-cols-1 xl:grid-cols-2 gap-4">- <a- href="/launch-week/6"- className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111618] hover:border-brand-800 overflow-hidden"- >- <span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-foreground to-foreground-lighter text-7xl drop-shadow-lg">- 6- </span>- <div className="absolute inset-0 grayscale group-hover:grayscale-0">- <Image- src="/images/launchweek/archive/lw6.jpg"- alt="Launch Week 6"- layout="fill"- objectFit="cover"- />- </div>- </a>- <a- href="/launch-week/7"- className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111718] hover:border-brand-1200 overflow-hidden"- >- <span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-foreground to-foreground-lighter text-7xl drop-shadow-lg">- 7- </span>- <div className="absolute inset-0 grayscale group-hover:grayscale-0">- <Image- src="/images/launchweek/archive/lw7.jpg"- alt="Launch Week 7"- layout="fill"- objectFit="cover"- />- </div>- </a>- </div>- </div>- )-}--export default LWArchivediff --git a/apps/www/components/LaunchWeek/X/LWXCalloutsSection.tsx b/apps/www/components/LaunchWeek/X/LWXCalloutsSection.tsxdeleted file mode 100644index b61b2089105..00000000000--- a/apps/www/components/LaunchWeek/X/LWXCalloutsSection.tsx+++ /dev/null@@ -1,61 +0,0 @@-import React from 'react'-import SectionContainer from '../../Layouts/SectionContainer'-import { SmallCard } from '../8/Releases/components'-import Link from 'next/link'-import Image from 'next/image'--const LWXCalloutsSection = () => {- 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="hover:from-foreground-muted hover:to-foreground-muted">- <Link- href="https://twitter.com/supabase/status/1688544202643111936"- target="_blank"- className="flex flex-row justify-between items-center w-full h-full gap-2"- >- <div className="relative flex-shrink flex items-center p-2 w-2/3 lg:w-1/2 md:w-auto">- <div className="flex flex-col gap-1 sm:pl-4">- <span className="text-white">Twitter Spaces</span>- <span className="">Replay recordings</span>- </div>- </div>- <div className="relative flex !aspect-video h-[80px] md:h-[100px] gap-2 z-10 rounded overflow-hidden">- <Image- src="/images/launchweek/8/twitter-spaces-thumb.svg"- alt="twitter spaces thumbnail"- layout="fill"- objectFit="cover"- />- </div>- </Link>- </SmallCard>- <SmallCard className="hover:from-foreground-muted hover:to-foreground-muted">- <Link- href="/blog/supabase-lw8-hackathon"- className="flex flex-row justify-between items-center w-full h-full gap-2"- >- <div className="relative flex-shrink flex items-center p-2 w-2/3 lg:w-1/2 md:w-auto">- <div className="flex flex-col gap-1 sm:pl-4">- <div className="flex items-center gap-3">- <span className="text-white">LW8 Hackathon Aug 4 – Aug 13</span>- </div>- <span className="">Finished</span>- </div>- </div>- <div className="relative flex !aspect-video h-[80px] md:h-[100px] gap-2 z-10 rounded overflow-hidden">- <Image- src="/images/launchweek/8/lw8-hackathon-thumb.svg"- alt="hackathon thumbnail"- layout="fill"- objectFit="cover"- />- </div>- </Link>- </SmallCard>- </div>- </SectionContainer>- )-}--export default LWXCalloutsSectiondiff --git a/apps/www/components/LaunchWeek/X/LWXSummary.tsx b/apps/www/components/LaunchWeek/X/LWXSummary.tsxindex 7835daec0de..30ebf0f4fce 100644--- a/apps/www/components/LaunchWeek/X/LWXSummary.tsx+++ b/apps/www/components/LaunchWeek/X/LWXSummary.tsx@@ -1,7 +1,7 @@-import Image from 'next/image'import React from 'react'-import { buildDays, mainDays } from './Releases/data'+import Image from 'next/image'import Link from 'next/link'+import { buildDays, mainDays } from './Releases/data'const LWXSummary = () => {return (@@ -19,7 +19,6 @@ const LWXSummary = () => {height={16}className="w-3 h-3"/>- {/* <span className="font-mono uppercase tracking-wide">Main Stage</span> */}</Link><div className="font-mono uppercase tracking-wide text-xs">11-15 Dec</div></div>@@ -64,9 +63,6 @@ const LWXSummary = () => {</span>{day.title}</span>- {/* <span className="relative block opacity-0 group-hover:opacity-100 transition-all -translate-x-2 group-hover:translate-x-0">- <IconArrowRight />- </span> */}</Link></ol>)diff --git a/apps/www/components/LaunchWeek/X/Releases/BuildStage.tsx b/apps/www/components/LaunchWeek/X/Releases/BuildStage.tsxindex a204afe77af..48f6e57ca53 100644--- a/apps/www/components/LaunchWeek/X/Releases/BuildStage.tsx+++ b/apps/www/components/LaunchWeek/X/Releases/BuildStage.tsx@@ -4,7 +4,7 @@ import { buildDays as days } from '~/components/LaunchWeek/X/Releases/data'import SectionContainer from '~/components/Layouts/SectionContainer'import AdventCard from './components/AdventCard'import { motion, useInView } from 'framer-motion'-import { IconLock, cn } from 'ui'+import { cn } from 'ui'const BuildStage: FC = () => {const ref = React.useRef(null)@@ -32,7 +32,7 @@ const BuildStage: FC = () => {ref={ref}variants={variants}animate={isInView ? 'reveal' : 'initial'}- className="w-full grid gap-2 sm:gap-3 xl:gap-4 grid-cols-1 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4"+ className="w-full grid gap-2 sm:gap-3 xl:gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">{days.map((day, i) => (<lidiff --git a/apps/www/components/LaunchWeek/X/Releases/LWXStickyNav.tsx b/apps/www/components/LaunchWeek/X/Releases/LWXStickyNav.tsxindex 003eb5219aa..02e54e5d707 100644--- a/apps/www/components/LaunchWeek/X/Releases/LWXStickyNav.tsx+++ b/apps/www/components/LaunchWeek/X/Releases/LWXStickyNav.tsx@@ -71,10 +71,7 @@ const LWXStickyNav: FC = () => {<li key={day.id}><Linkhref={`#${day.id}`}- className={cn(- 'p-1 transition-colors hover:text-foreground flex items-center',- day.shipped && 'text-foreground-light'- )}+ className={cn('p-1 transition-colors hover:text-foreground flex items-center')}>{day.dd}{' '}{day.isToday && (diff --git a/apps/www/components/LaunchWeek/X/Releases/MainStage.tsx b/apps/www/components/LaunchWeek/X/Releases/MainStage.tsxindex 5ec76fe37df..237baf8e915 100644--- a/apps/www/components/LaunchWeek/X/Releases/MainStage.tsx+++ b/apps/www/components/LaunchWeek/X/Releases/MainStage.tsx@@ -4,8 +4,6 @@ import { mainDays as days } from './data'import SectionContainer from '~/components/Layouts/SectionContainer'import DaySection from './components/DaySection'import { TextLink } from 'ui'-import CountdownComponent from '../Countdown'-import { endOfLWXHackathon } from './data/lwx_data'const MainStage: FC = () => (<SectionContainer className="relative !max-w-none !py-0 lg:!container" id="main-stage">@@ -14,7 +12,7 @@ const MainStage: FC = () => (</h3><div className="font-mono uppercase tracking-[1px] py-8 border-t border-[#111718] text-[#575E61] scroll-mt-16 flex flex-col md:flex-row justify-between gap-2"><div className="!text-foreground [&_*]:text-foreground text-sm flex flex-col sm:flex-row sm:items-center sm:gap-3">- Hackathon ends in <CountdownComponent date={endOfLWXHackathon} showCard={false} />+ Hackathon concluded</div><div className="!m-0 flex items-center"><TextLinkdiff --git a/apps/www/components/LaunchWeek/X/Releases/components/AdventCard.tsx b/apps/www/components/LaunchWeek/X/Releases/components/AdventCard.tsxindex f7e409b0432..6dd7d456cd1 100644--- a/apps/www/components/LaunchWeek/X/Releases/components/AdventCard.tsx+++ b/apps/www/components/LaunchWeek/X/Releases/components/AdventCard.tsx@@ -88,26 +88,24 @@ const AdventCard = ({ day, index }: { day: AdventDay; index: number }) => {}}><p className="text-[#575E61] text-sm">{day.description}</p>- {!isClientLibsCard && (- <div className="flex gap-1 mt-3 flex-wrap">- {day.links?.map((link: AdventLink) => (- <Link- key={link.url}- href={link.url}- target={link.target ?? '_self'}- className="px-2 py-1 pointer-events-auto border border-muted transition-colors text-foreground-light bg-[#191D1E] hover:bg-[#22272A] rounded text-xs"- >- {link.label}- </Link>- ))}- </div>- )}+ <div className="flex gap-1 mt-3 flex-wrap">+ {day.links?.map((link: AdventLink) => (+ <Link+ key={link.url}+ href={link.url}+ target={link.target ?? '_self'}+ className="px-2 py-1 pointer-events-auto border border-muted transition-colors text-foreground-light bg-[#191D1E] hover:bg-[#22272A] rounded text-xs"+ >+ {link.label}+ </Link>+ ))}+ </div></div></div></div>{isClientLibsCard && (- <div className="flex xl:h-full items-end justify-start xl:justify-end xl:w-2/3 gap-4 xl:gap-6 xl:pb-4 mt-4 flex-wrap">- {day.links?.map((link: AdventLink) => (+ <div className="flex xl:h-full order-first xl:order-last items-end justify-start xl:justify-end xl:w-2/3 gap-4 xl:gap-6 pb-4 mb-4 xl:pb-0 flex-wrap">+ {day.icons?.map((link: AdventLink) => (<Linkkey={link.url}href={link.url}diff --git a/apps/www/components/LaunchWeek/X/Releases/components/DaySection.tsx b/apps/www/components/LaunchWeek/X/Releases/components/DaySection.tsxindex 484f4596bdb..d9fa03a86b3 100644--- a/apps/www/components/LaunchWeek/X/Releases/components/DaySection.tsx+++ b/apps/www/components/LaunchWeek/X/Releases/components/DaySection.tsx@@ -4,9 +4,10 @@ import Image from 'next/image'import { ArrowRightIcon } from '@heroicons/react/outline'import { IconEdit2, cn } from 'ui'import { useBreakpoint } from 'common'++import { WeekDayProps } from '../data'import CountdownComponent from '../../Countdown'import { DayLink } from '.'-import { WeekDayProps } from '../data'const DaySection = ({ day }: { day: WeekDayProps }) => {const isMobile = useBreakpoint(639)diff --git a/apps/www/components/LaunchWeek/X/Releases/components/index.tsx b/apps/www/components/LaunchWeek/X/Releases/components/index.tsxindex fef7d40e3d0..f5a88b0fbbc 100644--- a/apps/www/components/LaunchWeek/X/Releases/components/index.tsx+++ b/apps/www/components/LaunchWeek/X/Releases/components/index.tsx@@ -1,3 +1,4 @@+import { useEffect, useState } from 'react'import {ExpandableVideo,IconDocumentation,@@ -8,65 +9,7 @@ import {} from 'ui'import Link from 'next/link'-import Image from 'next/image'import { StepLink } from '../data/lwx_data'-import { useEffect, useState } from 'react'-import { ArrowRightIcon } from '@heroicons/react/outline'--export const CheckCircleSolidIcon = () => (- <svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">- <path- fill-rule="evenodd"- clip-rule="evenodd"- d="M8.00156 14.7805C11.5362 14.7805 14.4016 11.9151 14.4016 8.38047C14.4016 4.84585 11.5362 1.98047 8.00156 1.98047C4.46694 1.98047 1.60156 4.84585 1.60156 8.38047C1.60156 11.9151 4.46694 14.7805 8.00156 14.7805ZM10.9672 7.34615C11.2797 7.03373 11.2797 6.5272 10.9672 6.21478C10.6548 5.90236 10.1483 5.90236 9.83588 6.21478L7.20156 8.8491L6.16725 7.81478C5.85483 7.50236 5.3483 7.50236 5.03588 7.81478C4.72346 8.1272 4.72346 8.63373 5.03588 8.94615L6.63588 10.5462C6.9483 10.8586 7.45483 10.8586 7.76725 10.5462L10.9672 7.34615Z"- fill="currentColor"- />- </svg>-)--export const SmallCard = ({- className,- innerClassName,- children,-}: {- className?: string- innerClassName?: string- children: any-}) => (- <div- className={cn(- 'group relative p-[1px] bg-gradient-to-b from-[#11171890] to-[#1C1C1C60] rounded-2xl overflow-hidden shadow-lg',- className- )}- >- <div- className={cn(- 'rounded-2xl text-sm text-[#9296AA] p-2 flex flex-row justify-between items-center backdrop-blur-md h-full',- 'bg-[#030A0C]',- innerClassName- )}- >- {children}- </div>- </div>-)--export const StyledArticleBadge = ({- className,- children,-}: {- className?: string- children: any-}) => (- <div className={cn('relative bg-transparent border border-[#F4FFFA90] rounded-full', className)}>- <div className="!bg-transparent rounded-full !py-1 !px-4 w-full inset-[1px] text-sm border-none from-foreground to-[#6453C5]">- <span className="text-sm text-[#F4FFFA80] bg-clip-text bg-gradient-to-r from-[#F4FFFA] to-[#7E7AAD]">- {children}- </span>- <div className="absolute inset-0 w-full h-full bg-[#1C1C1C] rounded-full blur-2xl" />- </div>- </div>-)interface DayLink extends StepLink {className?: string@@ -137,75 +80,6 @@ export const DayLink = ({ type, icon, text, href = '', className }: DayLink) =>return <Asd href={href} target={isTargetBlank() ? '_blank' : '_self'} component={Component} />}-export const VideoPreviewTrigger = ({- title,- thumbnail,-}: {- title?: string- thumbnail: string-}) => (- <div className="flex items-center h-full gap-3 text-xs group/vid text-foreground-light hover:text-foreground transition-colors">- <div className="relative h-10 !aspect-video flex items-center justify-center rounded overflow-hidden border border-foreground-lighter opacity-80 group-hover/vid:opacity-100 transition-colors">- <div className="absolute z-10 w-2.5 h-2.5 text-white opacity-100">- <svg viewBox="0 0 81 91" fill="none" xmlns="http://www.w3.org/2000/svg">- <path- d="M76.5621 37.998C82.3369 41.3321 82.3369 49.6673 76.5621 53.0014L13.2198 89.5721C7.44504 92.9062 0.226562 88.7386 0.226562 82.0704L0.226566 8.92901C0.226566 2.26085 7.44506 -1.90673 13.2199 1.42735L76.5621 37.998Z"- fill="currentColor"- />- </svg>- </div>- <Image src={thumbnail} alt="Video thumbnail" layout="fill" objectFit="cover" />- </div>- {title && <span>{title}</span>}- </div>-)--export const ChipLink = ({- href,- uiOnly,- className,- target,- children,-}: {- href?: string- className?: string- uiOnly?: boolean- target?: '_blank' | '_self' | '_parent' | '_top' | 'framename'- children: any-}) =>- uiOnly ? (- <span- className={cn(- 'flex flex-auto justify-center sm:justify-between w-full text-center sm:text-left min-h-[43px] sm:w-auto items-center border border-[#232323] bg-gradient-to-r text-white from-[#46444460] to-[#19191980] hover:from-[#4e4e4e90] hover:to-[#19191990] hover:border-stronger backdrop-blur-xl rounded-full text-sm py-2 px-3 sm:pr-2',- className- )}- >- {children}- </span>- ) : !!href ? (- <Link- href={href}- target={target ?? '_self'}- rel="noopener"- className={cn(- 'flex flex-auto justify-center sm:justify-between w-full text-center sm:text-left min-h-[43px] sm:w-auto items-center border border-[#232323] bg-gradient-to-r text-white from-[#46444460] to-[#19191980] hover:from-[#4e4e4e90] hover:to-[#19191990] hover:border-stronger backdrop-blur-xl rounded-full text-sm py-2 px-3 sm:pr-2',- className- )}- >- {children}- </Link>- ) : null--export const CartTitle = ({ children, className }: { children: any; className?: string }) => (- <span className={cn('z-0 relative text-[#F4FFFA90] tracking-[-.5px] text-xl', className)}>- {children}- </span>-)-export default {DayLink,- CartTitle,- ChipLink,- SmallCard,- StyledArticleBadge,}diff --git a/apps/www/components/LaunchWeek/X/Releases/data/lwx_advent_days.tsx b/apps/www/components/LaunchWeek/X/Releases/data/lwx_advent_days.tsxindex 08ef0b66739..2ef13e808ff 100644--- a/apps/www/components/LaunchWeek/X/Releases/data/lwx_advent_days.tsx+++ b/apps/www/components/LaunchWeek/X/Releases/data/lwx_advent_days.tsx@@ -8,6 +8,7 @@ export interface AdventDay {is_shipped: booleanimage: stringlinks: AdventLink[]+ icons?: AdventLink[]}export interface AdventLink {@@ -298,9 +299,14 @@ export const days: AdventDay[] = [className: 'xl:col-span-2 xl:aspect-auto xl:col-span-3 xl:aspect-auto xl:h-full',id: 'supabase-libraries-v2',links: [+ {+ url: '/blog/client-libraries-v2',+ label: 'Read blog post',+ },+ ],+ icons: [{url: '/blog/client-libraries-v2#supabase-python-v2',- // target: '_blank',label: 'Python',icon: (<svg@@ -327,7 +333,6 @@ export const days: AdventDay[] = [},{url: '/blog/client-libraries-v2#supabase-swift-v2',- // target: '_blank',label: 'Swift',icon: (<svg@@ -348,7 +353,6 @@ export const days: AdventDay[] = [},{url: '/blog/client-libraries-v2#supabase-kotlin-v2',- // target: '_blank',label: 'Kotlin',icon: (<svg@@ -367,7 +371,6 @@ export const days: AdventDay[] = [},{url: '/blog/client-libraries-v2#typescript-v2-updates',- // target: '_blank',label: 'Typescript',icon: (<svg@@ -388,7 +391,6 @@ export const days: AdventDay[] = [},{url: '/blog/client-libraries-v2#flutter-v2-updates',- // target: '_blank',label: 'Flutter',icon: (<svg@@ -463,53 +465,7 @@ export const days: AdventDay[] = [{title: '',type: '',- is_shipped: false,- className: '',- icon: '',- id: '',- links: [- {- url: '',- label: '',- },- ],- image: '',- },- {- title: '',- type: '',- is_shipped: false,- className: '',- icon: '',- id: '',- links: [- {- url: '',- label: '',- },- ],- image: '',- },- {- title: '',- type: '',- is_shipped: false,- className: 'md:aspect-[2/1] md:col-span-2 h-full',- icon: '',- id: '',- links: [- {- url: '',- label: '',- },- ],- image: '',- },- {- title: '',- type: '',- className:- 'md:col-span-2 md:aspect-[2/1] md:col-span-1 md:aspect-auto xl:col-span-2 xl:aspect-[2/1] h-full',+ className: 'sm:aspect-[2/1] sm:col-span-1 sm:col-span-2 sm:aspect-[2/1] h-full',is_shipped: false,icon: '',id: '',diff --git a/apps/www/components/LaunchWeek/X/Releases/data/lwx_data.tsx b/apps/www/components/LaunchWeek/X/Releases/data/lwx_data.tsxindex cd6e4776da5..93875b8b616 100644--- a/apps/www/components/LaunchWeek/X/Releases/data/lwx_data.tsx+++ b/apps/www/components/LaunchWeek/X/Releases/data/lwx_data.tsx@@ -237,7 +237,6 @@ const days: WeekDayProps[] = [dd: 'Fri',title: '',shipped: true,- isToday: true,hasCountdown: false,blog: '/blog/introducing-read-replicas',date: '15 Dec',diff --git a/apps/www/components/LaunchWeek/X/TicketBrickWall.tsx b/apps/www/components/LaunchWeek/X/TicketBrickWall.tsxdeleted file mode 100644index 1df8ef8964d..00000000000--- a/apps/www/components/LaunchWeek/X/TicketBrickWall.tsx+++ /dev/null@@ -1,50 +0,0 @@-import Link from 'next/link'-import React, { useEffect, useRef, useState } from 'react'-import { Button } from 'ui'-import { useBreakpoint } from 'common/hooks/useBreakpoint'-import { UserData } from '~/components/LaunchWeek/hooks/use-conf-data'-import { TicketBrickWallSlider } from './TicketBrickWallSlider'--type user = UserData--interface Props {- users: user[]-}--export default function TicketBrickWall({ users }: Props) {- const isMobile = useBreakpoint(768)-- return (- <div className="relative pb-16 pt-16 md:pt-28">- <div className="mx-auto">- <div className="max-w-[38rem] mb-8 mx-auto">- <h2 className="text-center radial-gradient-text-500">Tickets from the community</h2>- </div>- <div- className="grid py-4 relative- before:content-[' '] before:absolute before:inset-0 before:right-auto before:w-1/4 before:bg-gradient-to-r before:from-[#020405] before:to-[#02040500] before:z-10 before:pointer-events-none- after:content-[' '] after:absolute after:inset-0 after:left-auto after:w-1/4 after:bg-gradient-to-l after:from-[#020405] after:to-[#02040500] after:z-10 after:pointer-events-none- "- >- <TicketBrickWallSlider users={users.slice(0, isMobile ? 5 : 7)} />- <TicketBrickWallSlider- users={users.slice(isMobile ? 5 : 7, isMobile ? 11 : 14)}- reverse- />- {isMobile && <TicketBrickWallSlider users={users.slice(11, 17)} speed={6000} />}- </div>- <div className="flex justify-center w-full mx-auto mt-2 lg:mt-4">- <Button- asChild- type="outline"- size="medium"- onClick={() => window.scrollTo(0, 0)}- className="text-white"- >- <Link href="/launch-week/8/tickets">View all tickets</Link>- </Button>- </div>- </div>- </div>- )-}diff --git a/apps/www/components/LaunchWeek/X/TicketBrickWallSlider.tsx b/apps/www/components/LaunchWeek/X/TicketBrickWallSlider.tsxdeleted file mode 100644index 589a06da539..00000000000--- a/apps/www/components/LaunchWeek/X/TicketBrickWallSlider.tsx+++ /dev/null@@ -1,83 +0,0 @@-import Image from 'next/image'-import Link from 'next/link'-import { UserData } from '~/components/LaunchWeek/hooks/use-conf-data'--import { Swiper, SwiperSlide } from 'swiper/react'--import 'swiper/swiper.min.css'--interface Props {- users: UserData[]- reverse?: boolean- speed?: number- animate?: boolean-}--export function TicketBrickWallSlider({ users, reverse, speed = 50000, animate }: Props) {- const STORAGE_URL = 'https://obuldanrptloktxcffvn.supabase.co/storage/v1/object/public/images/lw8'- const BUCKET_FOLDER_VERSION = 'v1'- const getOgUrl = (username: string, isGold: boolean) =>- `${STORAGE_URL}/tickets/${- isGold ? 'golden' : 'regular'- }/${BUCKET_FOLDER_VERSION}/${username}.png`-- return (- <div className="relative h-auto w-full m-0 overflow-hidden mb-2.5">- <div- className={[- 'flex swiper-transition-linear ticket-brick-swiper',- reverse && '-translate-x-20 w-[calc(100vw+400px)]',- ].join(' ')}- >- <Swiper- centeredSlides={true}- spaceBetween={10}- slidesPerView={5}- loop={true}- watchOverflow- threshold={2}- updateOnWindowResize- breakpoints={{- 320: {- slidesPerView: reverse ? 4.5 : 2.5,- },- 720: {- slidesPerView: reverse ? 5.5 : 3.5,- },- 1440: {- slidesPerView: reverse ? 6.5 : 5,- },- }}- >- {users.map((user, i) => (- <SwiperSlide key={user.username}>- <Link- href={`/launch-week/8/tickets/${user.username}`}- key={user.username}- className="relative !w-[230px] md:w-[450px] !h-[200px] rounded-md md:rounded-lg transition-transform"- >- <div className="relative w-full pt-[50%] transform rounded-md md:rounded-lg overflow-hidden bg-gradient-to-b from-[#22282a] to-[#030A0C]">- <div className="absolute inset-[1px] w-[calc(100%-2px)] h-[calc(100%-2px)] rounded-md md:rounded-lg overflow-hidden p-[1px]">- <Image- src={- getOgUrl(user.username!, !!user.golden) ??- '/images/launchweek/8/lw8-ticket-empty.jpg'- }- alt={user.username ?? ''}- layout="fill"- objectFit="cover"- objectPosition="center"- placeholder="blur"- blurDataURL="/images/launchweek/8/lw8-ticket-empty.jpg"- className="absolute inset-[1px] rounded-md md:rounded-lg"- />- </div>- </div>- </Link>- </SwiperSlide>- ))}- </Swiper>- </div>- </div>- )-}diff --git a/apps/www/components/LaunchWeek/X/ticket-brick-wall-slider.module.css b/apps/www/components/LaunchWeek/X/ticket-brick-wall-slider.module.cssdeleted file mode 100644index 164e683b3a2..00000000000--- a/apps/www/components/LaunchWeek/X/ticket-brick-wall-slider.module.css+++ /dev/null@@ -1,3 +0,0 @@-.swiper-wrapper .swiper-slide {- width: 300px !important;-}diff --git a/packages/ui/src/components/PromoToast/PromoToast.tsx b/packages/ui/src/components/PromoToast/PromoToast.tsxindex ad85d72b2d7..05fdd9263aa 100644--- a/packages/ui/src/components/PromoToast/PromoToast.tsx+++ b/packages/ui/src/components/PromoToast/PromoToast.tsx@@ -42,13 +42,13 @@ const PromoToast = () => {<p>Launch Week</p><Image src={LWXLogo} alt="Supabase Launch Week X Logo" width={14} height={14} /></div>- <span className="text-sm leading-4 mt-2">Day 5: introducing Read Replicas</span>+ <span className="text-sm leading-4 mt-2">11-15 Dec</span></div><div className="relative z-10 flex items-center space-x-2"><Button asChild type="secondary">- <Link target="_blank" rel="noreferrer" href="https://supabase.com/launch-week#day-5">- Go to Launch Week+ <Link target="_blank" rel="noreferrer" href="https://supabase.com/launch-week">+ View announcements</Link></Button><Button type="default" onClick={handleHide}>diff --git a/packages/ui/src/layout/banners/LWXCountdownBanner/LWXCountdownBanner.tsx b/packages/ui/src/layout/banners/LWXCountdownBanner/LWXCountdownBanner.tsxindex fa4f14383e6..8da57e90f6e 100644--- a/packages/ui/src/layout/banners/LWXCountdownBanner/LWXCountdownBanner.tsx+++ b/packages/ui/src/layout/banners/LWXCountdownBanner/LWXCountdownBanner.tsx@@ -1,8 +1,6 @@import { useRouter } from 'next/router'import Image from 'next/image'-import { Button } from 'ui'--// import VideoPreview from './VideoPreview'+import { Button, cn } from 'ui'export function LWXCountdownBanner() {const { pathname } = useRouter()@@ -18,10 +16,10 @@ export function LWXCountdownBanner() {<div className="relative w-full h-14 p-2 flex items-center group justify-center text-foreground bg-alternative hover:bg-surface-200 dark:bg-[#020405] hover:dark:bg-[#05080a] transition-colors overflow-hidden"><div className="relative z-10 flex items-center justify-center"><div- className={[+ className={cn('w-full flex gap-5 md:gap-10 items-center md:justify-center text-sm',- isLaunchWeekSection && '!justify-center',- ].join(' ')}+ isLaunchWeekSection && '!justify-center'+ )}><div className="flex gap-1.5 items-center"><p>Launch Week</p>@@ -33,14 +31,14 @@ export function LWXCountdownBanner() {className="filter contrast-0 dark:contrast-100"/></div>- <div className="hidden sm:block">Day 5: introducing Read Replicas</div>+ <div className="hidden sm:block">11-15 Dec</div><ButtononClick={() => null}size="tiny"type="secondary"className="px-2 py-1 !leading-none text-xs">- Go to Launch Week+ View announcements</Button></div></div>diff --git a/packages/ui/src/layout/banners/data/Announcement.json b/packages/ui/src/layout/banners/data/Announcement.jsonindex 65964475660..7dc4b6baf6d 100644--- a/packages/ui/src/layout/banners/data/Announcement.json+++ b/packages/ui/src/layout/banners/data/Announcement.json@@ -2,6 +2,6 @@"show": true,"text": "Supabase Launch Week X","launchDate": "2023-12-11T08:00:00.000-08:00",- "link": "https://supabase.com/launch-week#day-4",- "badge": "Go to Launch Week"+ "link": "https://supabase.com/launch-week",+ "badge": "View announcements"}