Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: remove lw15 banners (#37718)

Francesco Sansalvadore6b172a2ee283
diff --git a/apps/docs/features/app.providers.tsx b/apps/docs/features/app.providers.tsx
index 63b3ace9bab..f6c2f3089b3 100644
--- a/apps/docs/features/app.providers.tsx
+++ b/apps/docs/features/app.providers.tsx
@@ -11,7 +11,6 @@ import { QueryClientProvider } from './data/queryClient.client'
import { PageTelemetry } from './telemetry/telemetry.client'
import { ScrollRestoration } from './ui/helpers.scroll.client'
import { ThemeSandbox } from './ui/theme.client'
-import { PromoToast } from 'ui-patterns'
/**
* Global providers that wrap the entire app
@@ -28,7 +27,6 @@ function GlobalProviders({ children }: PropsWithChildren) {
<CommandProvider>
<div className="flex flex-col">
<SiteLayout>
- <PromoToast />
{children}
<DocsCommandMenu />
</SiteLayout>
diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsx
index 072185fd206..7146986b559 100644
--- a/apps/www/components/Hero/Hero.tsx
+++ b/apps/www/components/Hero/Hero.tsx
@@ -16,13 +16,6 @@ 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="relative z-10 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">
- <AnnouncementBadge
- url="/launch-week"
- badge="LW15"
- announcement={announcement.launch}
- className="lg:-mt-8 mb-4 lg:mb-0"
- hasArrow
- />
<div className="flex flex-col items-center">
<h1 className="text-foreground text-4xl sm:text-5xl sm:leading-none lg:text-7xl">
<span className="block text-foreground">Build in a weekend</span>
diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsx
index 5900e708122..3313dd542be 100644
--- a/apps/www/components/Nav/index.tsx
+++ b/apps/www/components/Nav/index.tsx
@@ -1,4 +1,3 @@
-import { useTheme } from 'next-themes'
import Link from 'next/link'
import { useRouter } from 'next/router'
import React, { useState } from 'react'
@@ -14,17 +13,18 @@ import {
NavigationMenuList,
NavigationMenuTrigger,
} from 'ui/src/components/shadcn/ui/navigation-menu'
+import { AuthenticatedDropdownMenu } from 'ui-patterns'
-import ScrollProgress from '~/components/ScrollProgress'
-import { getMenu } from '~/data/nav'
+import ScrollProgress from 'components/ScrollProgress'
import GitHubButton from './GitHubButton'
import HamburgerButton from './HamburgerMenu'
import MenuItem from './MenuItem'
import MobileMenu from './MobileMenu'
import RightClickBrandLogo from './RightClickBrandLogo'
-import { useSendTelemetryEvent } from '~/lib/telemetry'
+import { useSendTelemetryEvent } from 'lib/telemetry'
import useDropdownMenu from './useDropdownMenu'
-import { AnnouncementBanner, AuthenticatedDropdownMenu } from 'ui-patterns'
+
+import { getMenu } from 'data/nav'
interface Props {
hideNavbar: boolean
@@ -32,7 +32,6 @@ interface Props {
}
const Nav = ({ hideNavbar, stickyNavbar = true }: Props) => {
- const { resolvedTheme } = useTheme()
const router = useRouter()
const { width } = useWindowSize()
const [open, setOpen] = useState(false)
@@ -42,7 +41,6 @@ const Nav = ({ hideNavbar, stickyNavbar = true }: Props) => {
const user = useUser()
const userMenu = useDropdownMenu(user)
- const isHomePage = router.pathname === '/'
const isLaunchWeekPage = router.pathname.includes('/launch-week')
const isLaunchWeekXPage = router.pathname === '/launch-week/x'
const isGAWeekSection = router.pathname.startsWith('/ga-week')
@@ -67,11 +65,8 @@ const Nav = ({ hideNavbar, stickyNavbar = true }: Props) => {
return null
}
- // const showDarkLogo = isLaunchWeekPage || resolvedTheme?.includes('dark')! || isHomePage
-
return (
<>
- <AnnouncementBanner />
<div
className={cn('sticky top-0 z-40 transform', disableStickyNav && 'relative')}
style={{ transform: 'translate3d(0,0,999px)' }}
diff --git a/packages/ui-patterns/src/Banners/data.json b/packages/ui-patterns/src/Banners/data.json
index ebbb6e84c60..a7f1e2fee14 100644
--- a/packages/ui-patterns/src/Banners/data.json
+++ b/packages/ui-patterns/src/Banners/data.json
@@ -1,7 +1,7 @@
{
- "text": "Launch Week 15",
- "launch": "View all the announcements",
+ "text": "",
+ "launch": "",
"launchDate": "2025-07-17T08:00:00.000-07:00",
- "link": "/launch-week",
+ "link": "#",
"cta": "Learn more"
}
diff --git a/packages/ui-patterns/src/PromoToast/PromoToast.tsx b/packages/ui-patterns/src/PromoToast/PromoToast.tsx
index c25af133aef..af51c5e3515 100644
--- a/packages/ui-patterns/src/PromoToast/PromoToast.tsx
+++ b/packages/ui-patterns/src/PromoToast/PromoToast.tsx
@@ -47,9 +47,7 @@ const PromoToast = () => {
/>
<div className="relative z-10 text-foreground-lighter uppercase flex flex-col text-sm w-full mb-2">
<span className="mb-1">{announcement.text}</span>
- <p className="relative z-10 text-foreground flex flex-col text-xl w-full leading-7">
- July 14—18
- </p>
+ <p className="relative z-10 text-foreground flex flex-col text-xl w-full leading-7"></p>
</div>
<div className="relative z-10 flex items-center space-x-2">
@@ -62,15 +60,6 @@ const PromoToast = () => {
Dismiss
</Button>
</div>
- {/* <Image
- src={}
- alt=""
- fill
- sizes="100%"
- quality={100}
- aria-hidden
- className="absolute not-sr-only object-cover z-0 inset-0 w-full h-auto"
- /> */}
</div>
)
}