Skip to content

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

More menu nudges

Terry Sutton2d3d338805f6
diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx
index 5298b6a31a8..4861e86199b 100644
--- a/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx
@@ -4,7 +4,7 @@ import Link from 'next/link'
import { useRouter } from 'next/router'
import { Fragment } from 'react'
import { Badge } from '~/../../packages/ui'
-
+import { cn } from 'ui/src/utils/cn'
import { HOMEPAGE_MENU_ITEMS } from './NavigationMenu.constants'
import HomeMenuIconPicker from './HomeMenuIconPicker'
@@ -16,7 +16,7 @@ const NavigationMenuHome = ({ active }) => {
active ? 'opacity-100 ml-0 delay-150' : 'opacity-0 -ml-8 invisible absolute',
].join(' ')}
>
- <ul className="relative w-full flex flex-col gap-4">
+ <ul className="relative w-full flex flex-col gap-6">
{HOMEPAGE_MENU_ITEMS.map((section, sectionIndex) => {
return (
<Fragment key={`section-container-${sectionIndex}-border`}>
@@ -27,16 +27,19 @@ const NavigationMenuHome = ({ active }) => {
></div>
)}
<div key={`section-${sectionIndex}`}>
- <div className="flex flex-col gap-3">
- {section.map((link) => {
+ <div className="flex flex-col gap-4">
+ {section.map((link, i) => {
if (!link.href) {
return (
- <span
+ <div
key={link.label}
- className="font-mono uppercase text-xs text-scale-900"
+ className={cn(
+ 'font-mono uppercase text-xs text-scale-900 ',
+ i !== 0 && 'mt-4'
+ )}
>
{link.label}
- </span>
+ </div>
)
} else {
return (
@@ -44,8 +47,8 @@ const NavigationMenuHome = ({ active }) => {
<a>
<li
className={[
- 'group flex items-center gap-3',
- 'text-base transition-all duration-150 text-scale-1200 hover:text-brand-900 hover:cursor-pointer ',
+ 'group flex items-center gap-2',
+ 'text-sm transition-all duration-150 text-scale-1200 hover:text-scale-1000 dark:hover:text-scale-1100 hover:cursor-pointer ',
].join(' ')}
>
{link?.icon && <HomeMenuIconPicker icon={link.icon} />}
diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsx
index a32390d87d9..07ad9d7f9c0 100644
--- a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsx
@@ -19,6 +19,7 @@ import {
IconMenuServerlessApis,
IconMenuStorage,
IconMenuSwift,
+ IconMenuStatus,
} from './HomeMenuIcons'
function getMenuIcon(menuKey: string, width: number = 16, height: number = 16) {
@@ -61,6 +62,8 @@ function getMenuIcon(menuKey: string, width: number = 16, height: number = 16) {
return <IconMenuApi width={width} height={height} />
case 'reference-cli':
return <IconMenuCli width={width} height={height} />
+ case 'status':
+ return <IconMenuStatus width={width} height={height} />
default:
return <IconMenuPlatform width={width} height={height} />
}
diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx
index d11eb7f954e..73a39c75f59 100644
--- a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx
@@ -381,3 +381,22 @@ export function IconMenuSwift({ width = 16, height = 16 }: HomeMenuIcon) {
</svg>
)
}
+
+export function IconMenuStatus({ width = 16, height = 16 }: HomeMenuIcon) {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 16 16"
+ width={width}
+ height={height}
+ fill="none"
+ >
+ <path
+ stroke="currentColor"
+ strokeLinejoin="bevel"
+ strokeMiterlimit="10"
+ d="M8.99 1.133a7.866 7.866 0 1 0 6.133 2.94l-6.77 6.77-1.956-1.958m2.67-4.688a4.789 4.789 0 1 0 3.98 2.124"
+ />
+ </svg>
+ )
+}
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
index dc511338fb5..0e8b4039757 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
@@ -118,7 +118,7 @@ export const HOMEPAGE_MENU_ITEMS: HomepageMenuItems = [
community: true,
},
{
- label: 'Tools',
+ label: 'Tools reference',
},
{
label: 'Management API',
@@ -133,6 +133,13 @@ export const HOMEPAGE_MENU_ITEMS: HomepageMenuItems = [
level: 'reference_javascript',
},
],
+ [
+ {
+ label: 'Status',
+ icon: 'status',
+ href: 'https://status.supabase.com/',
+ },
+ ],
]
export const REFERENCES: References = {