Skip to content

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

adjust Pricing page announcement badge

Francesco Sansalvadore40e96436bea3
diff --git a/apps/www/components/Announcement/Badge.tsx b/apps/www/components/Announcement/Badge.tsx
index adbc7accd87..e2a379c8747 100644
--- a/apps/www/components/Announcement/Badge.tsx
+++ b/apps/www/components/Announcement/Badge.tsx
@@ -3,10 +3,17 @@ import Link from 'next/link'
import { Badge } from 'ui'
import { ArrowNarrowRightIcon } from '@heroicons/react/outline'
-const AnnouncementBadge = () => (
+interface Props {
+ url: string
+ announcement: string
+ badge?: string
+ target?: '_self' | '_blank'
+}
+const AnnouncementBadge = ({ url, announcement, badge, target = '_self' }: Props) => (
<div className="w-full max-w-xl flex justify-center opacity-0 !animate-[fadeIn_0.5s_cubic-bezier(0.25,0.25,0,1)_0.5s_both]">
- <Link href="/launch-week">
+ <Link href={url}>
<a
+ target={target}
className="
group
relative
@@ -26,10 +33,12 @@ const AnnouncementBadge = () => (
focus:outline-none focus:ring-brand-600 focus:ring-2 focus:rounded-full
"
>
- <Badge color="brand" size="large" className="py-1">
- Explore
- </Badge>
- <span className="text-foreground">Launch Week 8 announcements</span>
+ {badge && (
+ <Badge color="brand" size="large" className="py-1">
+ {badge}
+ </Badge>
+ )}
+ <span className="text-foreground">{announcement}</span>
<ArrowNarrowRightIcon className="h-4 ml-2 -translate-x-1 transition-transform group-hover:translate-x-0" />
<div
className="absolute inset-0 -z-10 bg-gradient-to-br
diff --git a/apps/www/pages/pricing/index.tsx b/apps/www/pages/pricing/index.tsx
index f780a7b4f91..ed5dc2d0277 100644
--- a/apps/www/pages/pricing/index.tsx
+++ b/apps/www/pages/pricing/index.tsx
@@ -14,6 +14,7 @@ import { useTheme } from 'common/Providers'
import ComputePricingModal from '~/components/Pricing/ComputePricingModal'
import { plans } from 'shared-data/plans'
import { ArrowNarrowRightIcon } from '@heroicons/react/outline'
+import AnnouncementBadge from '../../components/Announcement/Badge'
export default function IndexPage() {
const router = useRouter()
@@ -151,7 +152,7 @@ export default function IndexPage() {
/>
<div>
- <div className="relative z-10 py-16 lg:py-28">
+ <div className="relative z-10 py-16 lg:py-20">
<div className="mx-auto max-w-7xl px-4 text-center sm:px-6 lg:px-8">
<div className="mx-auto max-w-3xl space-y-2 lg:max-w-none">
<h1 className="text-brand text-base">Pricing</h1>
@@ -159,45 +160,13 @@ export default function IndexPage() {
<p className="p text-lg">
Start building for free, collaborate with a team, then scale to millions of users.
</p>
- <div className="w-full flex justify-center items-center opacity-0 !animate-[fadeIn_0.5s_cubic-bezier(0.25,0.25,0,1)_0.5s_both]">
- <Link href="/blog/organization-based-billing" passHref>
- <a
- target="_blank"
- className="
- group
- relative
- flex flex-row
- items-center
- pr-3 p-1
- text-sm
- w-auto
- gap-2
- text-left
- rounded-full
- bg-opacity-20
- border
- border-background-surface-100
- hover:border-background-surface-300
- overflow-hidden
- focus:outline-none focus:ring-brand-600 focus:ring-2 focus:rounded-full
- "
- >
- <Badge color="brand" size="large" className="py-1">
- Update
- </Badge>
- <span className="text-foreground">Changes to how we bill</span>
- <ArrowNarrowRightIcon className="h-4 ml-2 -translate-x-1 transition-transform group-hover:translate-x-0" />
- <div
- className="absolute inset-0 -z-10 bg-gradient-to-br
- opacity-70
- overflow-hidden rounded-full
- from-background-surface-100
- to-background-surface-300
- backdrop-blur-md
- "
- />
- </a>
- </Link>
+ <div className="w-full inline-flex justify-center items-center pt-3 pb-6">
+ <AnnouncementBadge
+ url="/blog/organization-based-billing"
+ badge="Update"
+ announcement="Changes to how we bill"
+ target="_blank"
+ />
</div>
</div>
</div>