The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update www banners (#20194)
Francesco Sansalvadored1b4e4659233
diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsxindex a800e70acfe..ca54e4aeea3 100644--- a/apps/www/components/Hero/Hero.tsx+++ b/apps/www/components/Hero/Hero.tsx@@ -7,7 +7,6 @@ import { Button, IconBookOpen, cn } from 'ui'import SectionContainer from '~/components/Layouts/SectionContainer'import HeroFrameworks from './HeroFrameworks'import styles from './hero.module.css'-import AnnouncementBadge from '../Announcement/Badge'const Hero = () => {const router = useRouter()@@ -29,13 +28,13 @@ const Hero = () => {)}><div className="flex flex-col items-center">- <div className="z-40 w-full flex justify-center mb-8 lg:mb-8">+ {/* <div className="z-40 w-full flex justify-center mb-8 lg:mb-8"><AnnouncementBadge- url="/launch-week"- badge="Launch Week X"- announcement="See everything we shipped"+ url=""+ badge=""+ announcement=""/>- </div>+ </div> */}<h1 className="text-foreground text-4xl sm:text-5xl sm:leading-none lg:text-7xl"><span className="block text-[#F4FFFA00] bg-clip-text bg-gradient-to-b from-foreground to-foreground-light">Build in a weekenddiff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsxindex db3a6178d73..f49ed6a9573 100644--- a/apps/www/components/Nav/index.tsx+++ b/apps/www/components/Nav/index.tsx@@ -5,7 +5,7 @@ import { useRouter } from 'next/router'import { useTheme } from 'next-themes'import { useWindowSize } from 'react-use'-import { Announcement, Button, LWXCountdownBanner, cn } from 'ui'+import { Button, cn } from 'ui'import {NavigationMenu,NavigationMenuContent,@@ -72,9 +72,9 @@ const Nav = () => {return (<>- <Announcement>+ {/* <Announcement><LWXCountdownBanner />- </Announcement>+ </Announcement> */}<divclassName={cn('sticky top-0 z-40 transform', isLaunchWeekXPage && 'relative')}style={{ transform: 'translate3d(0,0,999px)' }}diff --git a/packages/ui/src/components/ConsentToast/ConsentToast.tsx b/packages/ui/src/components/ConsentToast/ConsentToast.tsxindex 673abefe9f3..19fc1265e51 100644--- a/packages/ui/src/components/ConsentToast/ConsentToast.tsx+++ b/packages/ui/src/components/ConsentToast/ConsentToast.tsx@@ -1,3 +1,4 @@+import { useBreakpoint } from 'common'import { noop } from 'lodash'import Link from 'next/link'import { Button } from 'ui'@@ -8,21 +9,41 @@ interface ConsentToastProps {}const ConsentToast = ({ onAccept = noop, onOptOut = noop }: ConsentToastProps) => {+ const isMobile = useBreakpoint(639)+return (- <div className="space-y-3 py-1">+ <div className="space-y-3 py-1 flex flex-col w-full"><div><p className="text-foreground">- We only collect analytics essential to ensuring smooth operation of our services.+ We only collect analytics essential to ensuring smooth operation of our services.{' '}+ <Link+ className="inline sm:hidden underline text-light"+ target="_blank"+ rel="noreferrer"+ href="https://supabase.com/privacy"+ >+ Learn more+ </Link></p></div><div className="flex items-center space-x-2">- <Button type="default" onClick={onAccept}>+ <Button+ type="default"+ onClick={onAccept}+ size={isMobile ? 'small' : 'tiny'}+ block={isMobile}+ >Accept</Button>- <Button type="text" onClick={onOptOut}>+ <Button+ type={isMobile ? 'outline' : 'text'}+ onClick={onOptOut}+ size={isMobile ? 'small' : 'tiny'}+ block={isMobile}+ >Opt out</Button>- <Button asChild type="text">+ <Button asChild type="text" className="hidden sm:block text-light hover:text-foreground"><Link target="_blank" rel="noreferrer" href="https://supabase.com/privacy">Learn more</Link>diff --git a/packages/ui/src/layout/PortalToast/PortalToast.tsx b/packages/ui/src/layout/PortalToast/PortalToast.tsxindex 70093dcec78..43958d1e47a 100644--- a/packages/ui/src/layout/PortalToast/PortalToast.tsx+++ b/packages/ui/src/layout/PortalToast/PortalToast.tsx@@ -34,13 +34,13 @@ const PortalToast = () => (return (<>{icon}- <div className="flex items-center">+ <div className="w-full"><divclassName={`toast-message w-full ${t.type === 'loading'? 'max-w-[380px]': isConsentToast- ? 'max-w-[800px]'+ ? 'max-w-none sm:max-w-[800px]': 'max-w-[260px]'}`}>diff --git a/packages/ui/src/lib/Hooks.tsx b/packages/ui/src/lib/Hooks.tsxindex 4791a44a44c..5a03843c85c 100644--- a/packages/ui/src/lib/Hooks.tsx+++ b/packages/ui/src/lib/Hooks.tsx@@ -80,6 +80,8 @@ export const useConsent = () => {id: 'consent-toast',position: 'bottom-right',duration: Infinity,+ className:+ '!w-screen !-m-4 !border-t !rounded-none !max-w-none !bg-overlay !text sm:!m-0 sm:!rounded-lg sm:!w-auto sm:!max-w-[400px] sm:border',})}