Skip to content

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

fix(www): plate State of Startups Sign in over the aurora (#51163)

Danny White5cc04509503e
diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsx
index 8b08d18c78d..ba37f71424c 100644
--- a/apps/www/components/Nav/index.tsx
+++ b/apps/www/components/Nav/index.tsx
@@ -12,6 +12,7 @@ import {
Button,
buttonVariants,
cn,
+ FloatingPlate,
NavigationMenu,
NavigationMenuContent,
NavigationMenuItem,
@@ -215,26 +216,52 @@ const Nav = ({ hideNavbar, stickyNavbar = true }: Props) => {
<GitHubButton />
{isLoggedIn ? (
<>
- <Button className="hidden lg:inline-flex" asChild>
- <a href="/dashboard/projects">Dashboard</a>
- </Button>
+ {isStateOfStartupsPage ? (
+ <FloatingPlate rounded="md" className="hidden lg:inline-flex">
+ <Button asChild>
+ <a href="/dashboard/projects">Dashboard</a>
+ </Button>
+ </FloatingPlate>
+ ) : (
+ <Button className="hidden lg:inline-flex" asChild>
+ <a href="/dashboard/projects">Dashboard</a>
+ </Button>
+ )}
<AuthenticatedDropdownMenu menu={userMenu} user={user} site="www" />
</>
) : (
<>
- <Button className="hidden lg:inline-flex" asChild>
- <a
- href="https://supabase.com/dashboard"
- onClick={() =>
- sendTelemetryEvent({
- action: 'sign_in_button_clicked',
- properties: { buttonLocation: 'Header Nav' },
- })
- }
- >
- Sign in
- </a>
- </Button>
+ {isStateOfStartupsPage ? (
+ <FloatingPlate rounded="md" className="hidden lg:inline-flex">
+ <Button asChild>
+ <a
+ href="https://supabase.com/dashboard"
+ onClick={() =>
+ sendTelemetryEvent({
+ action: 'sign_in_button_clicked',
+ properties: { buttonLocation: 'Header Nav' },
+ })
+ }
+ >
+ Sign in
+ </a>
+ </Button>
+ </FloatingPlate>
+ ) : (
+ <Button className="hidden lg:inline-flex" asChild>
+ <a
+ href="https://supabase.com/dashboard"
+ onClick={() =>
+ sendTelemetryEvent({
+ action: 'sign_in_button_clicked',
+ properties: { buttonLocation: 'Header Nav' },
+ })
+ }
+ >
+ Sign in
+ </a>
+ </Button>
+ )}
<Button variant="primary" className="hidden lg:inline-flex" asChild>
<a
href="https://supabase.com/dashboard/sign-up"