Skip to content

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

feat(web): hero banner to promote upcoming webinar. (#38532)

Alan Daniel1c1248a20205
diff --git a/apps/www/components/Announcement/Badge.tsx b/apps/www/components/Announcement/Badge.tsx
index d4d67accbf7..19e1539bca3 100644
--- a/apps/www/components/Announcement/Badge.tsx
+++ b/apps/www/components/Announcement/Badge.tsx
@@ -1,7 +1,7 @@
import React, { ReactNode } from 'react'
import Link from 'next/link'
import { Badge, cn } from 'ui'
-import { ArrowNarrowRightIcon } from '@heroicons/react/outline'
+import { ChevronRightIcon } from 'lucide-react'
interface Props {
url: string
@@ -33,7 +33,7 @@ const AnnouncementBadge = ({
relative
flex flex-row
items-center
- p-1 pr-3
+ p-1 pr-0.5
text-sm
w-auto
gap-2
@@ -48,7 +48,7 @@ const AnnouncementBadge = ({
overflow-hidden
focus-visible:outline-none focus-visible:ring-brand-600 focus-visible:ring-2 focus-visible:rounded-full
`,
- !badge && 'px-4'
+ !badge && 'pl-4'
)}
>
{badge && (
@@ -58,7 +58,7 @@ const AnnouncementBadge = ({
)}
<span className="text-foreground announcement-text">{announcement}</span>
{hasArrow && (
- <ArrowNarrowRightIcon className="announcement-icon h-4 ml-2 -translate-x-1 text-foreground transition-transform group-hover/announcement:translate-x-0" />
+ <ChevronRightIcon className="announcement-icon h-4 ml-2 -translate-x-1 text-foreground transition-transform group-hover/announcement:translate-x-0" />
)}
<div
className="announcement-overlay absolute inset-0 -z-10 bg-gradient-to-br
diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsx
index 94d27bf0582..8a342a8f546 100644
--- a/apps/www/components/Hero/Hero.tsx
+++ b/apps/www/components/Hero/Hero.tsx
@@ -1,8 +1,9 @@
import Link from 'next/link'
-import { Button } from 'ui'
+import { Badge, Button } from 'ui'
import SectionContainer from '~/components/Layouts/SectionContainer'
import { useSendTelemetryEvent } from '~/lib/telemetry'
+import AnnouncementBadge from '../Announcement/Badge'
const Hero = () => {
const sendTelemetryEvent = useSendTelemetryEvent()
@@ -14,6 +15,11 @@ 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="/events/migrating-from-firebase-mobbin"
+ announcement="Looking to migrate to Supabase? Sign up for our webinar and learn how"
+ />
+
<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>