Skip to content

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

chore: update announcement bar

Jonathan Summers-Muirdd226235e8b0
diff --git a/apps/www/components/Nav/Announcement.tsx b/apps/www/components/Nav/Announcement.tsx
index 252a09750ff..c5e5ed8cc96 100644
--- a/apps/www/components/Nav/Announcement.tsx
+++ b/apps/www/components/Nav/Announcement.tsx
@@ -1,9 +1,19 @@
import React, { useEffect, useState } from 'react'
-import announcement from '~/data/Announcement.json'
+import _announcement from '~/data/Announcement.json'
import { IconChevronRight, IconX } from '@supabase/ui'
import { useRouter } from 'next/router'
+interface AnnouncementProps {
+ show: boolean
+ text: string
+ cta: string
+ link: string
+ badge?: string
+}
+
+const announcement = _announcement as AnnouncementProps
+
const Announcement = () => {
const [hidden, setHidden] = useState(true)
@@ -58,7 +68,14 @@ const Announcement = () => {
lg:px-16 xl:px-20
"
>
- <span className="px-3">{announcement.text}</span>
+ <span className="item-center flex gap-2 px-3">
+ {announcement.badge && (
+ <div className="bg-brand-400 text-brand-900 py-0.25 rounded px-1.5">
+ {announcement.badge}
+ </div>
+ )}
+ <span>{announcement.text}</span>
+ </span>
<span className="hidden items-center space-x-2 px-3 lg:flex">
<span>{announcement.cta}</span>
<IconChevronRight size={14} />
diff --git a/apps/www/data/Announcement.json b/apps/www/data/Announcement.json
index bd1a0f4c4b1..2053867ab7f 100644
--- a/apps/www/data/Announcement.json
+++ b/apps/www/data/Announcement.json
@@ -1,6 +1,7 @@
{
"show": true,
- "text": "Launch Week 5",
- "cta": "Get your ticket now",
- "link": "//launch-week"
+ "text": "Supabase CLI v1 and Admin API Beta",
+ "cta": "Learn more",
+ "link": "/launch-week",
+ "badge": "Day 1"
}