From 10da72a8ec3e8366b612d70ea579f8d906c23e6e Mon Sep 17 00:00:00 2001
From: Danny White <3104761+dnywh@users.noreply.github.com>
Date: Fri, 19 Sep 2025 10:07:16 +1000
Subject: [PATCH 1/2] =?UTF-8?q?feat:=20select=20=E2=80=9825=20banner=20sty?=
=?UTF-8?q?led=20(#38803)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* basic lines
* horizontal lines
* stop at right
* misc touches
* polish
* polish
* fix: dark mode
* clean up markup
* revert LW banner logic and props
These are now unused, so I'm reverting to how they were. That will make the next LW a bit easier.
* fix: type assertion
TypeScript not recognizing CSS custom properties. Now accessing the React.CSSProperties type
* nit: date format
Make more US-friendly
---
.../ui-patterns/src/Banners/LW15Banner.tsx | 6 +-
.../ui-patterns/src/Banners/SelectBanner.tsx | 92 +++++++++++++++----
packages/ui-patterns/src/Banners/data.json | 11 +--
.../ui-patterns/src/PromoToast/PromoToast.tsx | 2 +-
.../ui/src/layout/banners/Announcement.tsx | 6 +-
5 files changed, 87 insertions(+), 30 deletions(-)
diff --git a/packages/ui-patterns/src/Banners/LW15Banner.tsx b/packages/ui-patterns/src/Banners/LW15Banner.tsx
index 84268c24c4449..8e87d463ebb33 100644
--- a/packages/ui-patterns/src/Banners/LW15Banner.tsx
+++ b/packages/ui-patterns/src/Banners/LW15Banner.tsx
@@ -53,11 +53,11 @@ export function LW15Banner() {
- {announcement.title}
+ {announcement.text}
-
{announcement.desc}
+
{announcement.launch}
diff --git a/packages/ui-patterns/src/Banners/SelectBanner.tsx b/packages/ui-patterns/src/Banners/SelectBanner.tsx
index 32afcf91928bf..b3cae094a4bd6 100644
--- a/packages/ui-patterns/src/Banners/SelectBanner.tsx
+++ b/packages/ui-patterns/src/Banners/SelectBanner.tsx
@@ -1,26 +1,84 @@
+import React from 'react'
import Link from 'next/link'
-import { Button } from 'ui/src/components/Button'
-import announcement from './data.json'
export function SelectBanner() {
+ const selectSiteUrl = 'https://select.supabase.com/'
+ const desc = ['Our first user conference', 'Oct 3 2025', 'Guillermo Rauch, Dylan Field, and more']
+ const cta = 'Save your seat'
+
+ const baseStyles = 'flex flex-col justify-center border-l border-muted py-8 '
+ const textBlockStyles =
+ baseStyles +
+ 'pr-8 text-xs font-mono uppercase leading-none tracking-wide text-white/50 [&_p]:mt-[5px]'
+
return (
-