Skip to content

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

update hero announcement to be more minimal

Francesco Sansalvadore5c2440a2d2d5
diff --git a/apps/www/components/Announcement/Badge.tsx b/apps/www/components/Announcement/Badge.tsx
new file mode 100644
index 00000000000..b09f14b3874
--- /dev/null
+++ b/apps/www/components/Announcement/Badge.tsx
@@ -0,0 +1,45 @@
+import React from 'react'
+import Link from 'next/link'
+import { Badge } from 'ui'
+import { ArrowNarrowRightIcon } from '@heroicons/react/outline'
+
+const AnnouncementBadge = () => (
+ <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">
+ <a
+ 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"
+ >
+ <Badge color="brand" size="large" className="py-1">
+ Explore
+ </Badge>
+ <span className="text-foreground">Launch Week 8 announcements</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
+ from-background-surface-100
+ to-background-surface-300
+ backdrop-blur-md
+ "
+ />
+ </a>
+ </Link>
+ </div>
+)
+
+export default AnnouncementBadge
diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsx
index eea545db128..693d587ed94 100644
--- a/apps/www/components/Hero/Hero.tsx
+++ b/apps/www/components/Hero/Hero.tsx
@@ -8,7 +8,7 @@ import SectionContainer from '~/components/Layouts/SectionContainer'
import HeroFrameworks from './HeroFrameworks'
import styles from './hero.module.css'
import Image from 'next/image'
-import LWAnnouncement from '../LaunchWeek/8/Releases/LWAnnouncement'
+import AnnouncementBadge from '../Announcement/Badge'
const Hero = () => {
const router = useRouter()
@@ -30,8 +30,8 @@ const Hero = () => {
].join(' ')}
>
<div className="flex flex-col items-center">
- <div className="z-40 w-full flex justify-center mb-8 lg:mb-12">
- <LWAnnouncement />
+ <div className="z-40 w-full flex justify-center mb-8 lg:mb-8">
+ <AnnouncementBadge />
</div>
<h1 className="text-scale-1200 text-4xl sm:text-5xl sm:leading-none lg:text-7xl">
<span className="block text-[#F4FFFA00] bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1200 dark:to-scale-1100">
@@ -75,7 +75,7 @@ const Hero = () => {
</div>
</div>
<div className="absolute -top-2 md:top-0 -left-10 -right-10 md:left-0 md:right-0 h-[500px] lg:h-[550px] z-0 flex items-center justify-center">
- <div className="relative w-full aspect-[1.65/1] mb-14 max-w-sm md:max-w-md opacity-0 !animate-[fadeIn_0.5s_cubic-bezier(0.25,0.25,0,1)_0.5s_both]">
+ {/* <div className="relative w-full aspect-[1.65/1] mb-14 max-w-sm md:max-w-md opacity-0 !animate-[fadeIn_0.5s_cubic-bezier(0.25,0.25,0,1)_0.5s_both]">
<Image
src="/images/launchweek/8/lw8-visual.png"
alt="launch week 8 shape"
@@ -84,7 +84,7 @@ const Hero = () => {
quality={100}
draggable={false}
/>
- </div>
+ </div> */}
<div className="absolute inset-0">
<Image
src="/images/launchweek/8/stars.svg"
diff --git a/packages/ui/src/lib/theme/defaultTheme.ts b/packages/ui/src/lib/theme/defaultTheme.ts
index 832713fae83..52376c4be5c 100644
--- a/packages/ui/src/lib/theme/defaultTheme.ts
+++ b/packages/ui/src/lib/theme/defaultTheme.ts
@@ -216,7 +216,8 @@ export default {
},
dot: '-ml-0.5 mr-1.5 h-2 w-2 rounded-full',
color: {
- brand: 'bg-brand-500 text-brand-600 border border-brand-400',
+ brand: 'bg-brand bg-opacity-100 text-background border border-brand-400',
+ alt: 'bg-brand-500 text-brand-600 border border-brand-400',
scale: 'bg-scale-200 text-scale-1100 border border-scale-700',
tomato: `bg-tomato-200 text-tomato-1100 border border-tomato-700`,
red: `bg-red-200 text-red-1100 border border-red-700`,