Skip to content

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

icon updates

Jonathan Summers-Muircadd04963923
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
index 9ab3effffbe..9495b87495a 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
@@ -74,19 +74,19 @@ const SideNav = () => {
[
{
label: 'Home',
- icon: 'home',
- href: '',
+ icon: '/img/icons/menu/home',
+ href: '/',
level: 'home',
},
{
label: 'Getting started',
- icon: 'getting-started',
+ icon: '/img/icons/menu/getting-started',
href: '/getting-started',
level: 'gettingstarted',
},
{
label: 'Tutorials',
- icon: 'tutorials',
+ icon: '/img/icons/menu/tutorials',
href: '/guides/tutorials',
level: 'tutorials',
},
@@ -94,101 +94,95 @@ const SideNav = () => {
[
{
label: 'Database',
- icon: 'database',
+ icon: '/img/icons/menu/database',
href: '/guides/database',
level: 'database',
},
{
label: 'Auth',
- icon: 'auth',
+ icon: '/img/icons/menu/auth',
href: '/guides/auth',
level: 'auth',
},
{
label: 'Storage',
- icon: 'storage',
+ icon: '/img/icons/menu/storage',
href: '/guides/storage',
level: 'storage',
},
{
label: 'Realtime',
- icon: 'realtime',
+ icon: '/img/icons/menu/realtime',
href: '/guides/realtime',
level: 'realtime',
},
{
label: 'Edge Functions',
- icon: 'functions',
+ icon: '/img/icons/menu/functions',
href: '/guides/functions',
level: 'functions',
},
],
[
+ // {
+ // label: 'API Reference',
+ // icon: '/img/icons/menu/reference',
+ // href: '/reference',
+ // level: 'reference',
+ // },
{
- label: 'API Reference',
- icon: 'reference',
- href: '/reference',
- level: 'reference',
+ label: 'Platform',
+ icon: '/img/icons/menu/platform',
+ href: '/guides/hosting/platform',
+ level: 'platform',
},
{
label: 'Integrations',
- icon: 'integrations',
+ icon: '/img/icons/menu/integrations',
href: '/guides/integrations',
level: 'integrations',
},
- {
- label: 'Platform',
- icon: 'platform',
- href: '/guides/hosting/platform',
- level: 'platform',
- },
],
[
{
- label: 'Javascript Client',
- icon: 'api.svg',
- href: '/new/reference/javascript/start',
- level: 'reference_javascript',
+ label: 'Client Libraries Reference',
},
{
- label: 'supabase-py',
- icon: 'api.svg',
+ label: 'JavaScript Client',
+ icon: '/img/icons/javascript-icon',
href: '/new/reference/javascript/start',
level: 'reference_javascript',
},
{
- label: 'supabase-dart',
- icon: 'api.svg',
+ label: 'Python Client Library',
+ icon: '/img/icons/python-icon',
href: '/new/reference/javascript/start',
level: 'reference_javascript',
},
{
- label: 'Mangement API',
- icon: 'api.svg',
+ label: 'Dart Client Library',
+ icon: '/img/icons/dart-icon',
href: '/new/reference/javascript/start',
level: 'reference_javascript',
},
{
- label: 'CLI',
- icon: 'api.svg',
- href: '/new/reference/cli/start',
- level: 'reference_javascript',
+ label: 'Tools Reference',
},
{
- label: 'Auth server',
- icon: 'api.svg',
+ label: 'Mangement API',
+ icon: '/img/icons/api-icon',
href: '/new/reference/javascript/start',
level: 'reference_javascript',
},
{
- label: 'Storage server',
- icon: 'api.svg',
- href: '/new/reference/javascript/start',
+ label: 'CLI',
+ icon: '/img/icons/cli-icon',
+ href: '/new/reference/cli/start',
level: 'reference_javascript',
},
{
- label: 'Realtime server',
- icon: 'api.svg',
+ label: 'Self hosting server',
+ icon: '/img/icons/menu/platform',
href: '/new/reference/javascript/start',
level: 'reference_javascript',
},
@@ -217,26 +211,38 @@ const SideNav = () => {
)}
<div className="flex flex-col gap-3" key={`section-${sectionIndex}`}>
{section.map((link) => {
- return (
- <Link href={link.href} passHref>
- <a key={link.label}>
- <li
- className={[
- 'group flex items-center gap-3',
- 'text-base transition-all duration-150 text-scale-1200 hover:text-brand-900 hover:cursor-pointer ',
- ].join(' ')}
- >
- <img
- src={`${router.basePath}/img/icons/menu/${
- isDarkMode ? link.icon : `${link.icon}-light`
- }.svg`}
- className="opacity-75 w-4.5 group-hover:scale-110 group-hover:opacity-100 ease-out transition-all"
- />
- {link.label}
- </li>
- </a>
- </Link>
- )
+ if (!link.href) {
+ return (
+ <span className="font-mono uppercase text-xs text-scale-900">
+ {link.label}
+ </span>
+ )
+ } else {
+ return (
+ <Link href={link.href} passHref>
+ <a key={link.label}>
+ <li
+ className={[
+ 'group flex items-center gap-3',
+ 'text-base transition-all duration-150 text-scale-1200 hover:text-brand-900 hover:cursor-pointer ',
+ ].join(' ')}
+ >
+ <img
+ src={`${router.basePath}${
+ !link.icon.includes('png')
+ ? link.icon
+ : isDarkMode
+ ? link.icon
+ : `${link.icon}-light`
+ }${!link.icon.includes('png') ? '.svg' : ''}`}
+ className="opacity-75 w-4 h-4 group-hover:scale-110 group-hover:opacity-100 ease-out transition-all"
+ />
+ {link.label}
+ </li>
+ </a>
+ </Link>
+ )
+ }
})}
</div>
</>
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
index 976bef2305e..61fbfc1fd8a 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
@@ -84,11 +84,11 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
>
<div className={'w-full flex flex-col gap-0 sticky top-8'}>
{/* {process.env.NEXT_PUBLIC_EXPERIMENTAL_REF !== 'true' && ( */}
- <Link href={`${menu.parent ?? '/'}`} passHref>
+ <Link href="/" passHref>
<a
className={[
'flex items-center gap-1 text-xs group mb-3',
- 'text-base transition-all duration-200 text-brand-900 hover:text-brand-1200 hover:cursor-pointer ',
+ 'text-base transition-all duration-200 text-scale-1100 hover:text-brand-1200 hover:cursor-pointer ',
].join(' ')}
>
<div className="relative w-2">
@@ -96,25 +96,25 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
<IconChevronLeft size={10} strokeWidth={3} />
</div>
</div>
- <span>Back to reference</span>
+ <span>Back to Main Menu</span>
</a>
</Link>
{/* )} */}
- {process.env.NEXT_PUBLIC_EXPERIMENTAL_REF !== 'true' && (
- <div className="flex items-center gap-3 my-3">
- <img
- src={`${router.basePath}` + menu.icon ?? `/img/icons/menu/${id}.svg`}
- className="w-5 rounded"
- />
- <h2
- className={['font-mono text-sm text-brand-1200 ', !menu.title && 'capitalize'].join(
- ' '
- )}
- >
- supabase-js
- </h2>
- </div>
- )}
+ {/* {process.env.NEXT_PUBLIC_EXPERIMENTAL_REF !== 'true' && ( */}
+ <div className="flex items-center gap-3 my-3">
+ <img
+ src={`${router.basePath}` + menu.icon ?? `/img/icons/menu/${id}.svg`}
+ className="w-5 rounded"
+ />
+ <h2
+ className={['font-mono text-sm text-brand-1200 ', !menu.title && 'capitalize'].join(
+ ' '
+ )}
+ >
+ supabase-js
+ </h2>
+ </div>
+ {/* )} */}
<ul className="">
<Divider />
<SideMenuTitle title="Database" />
diff --git a/apps/docs/layouts/SiteRefLayout.tsx b/apps/docs/layouts/SiteRefLayout.tsx
index 738ba659b7c..67bc1e0ae6a 100644
--- a/apps/docs/layouts/SiteRefLayout.tsx
+++ b/apps/docs/layouts/SiteRefLayout.tsx
@@ -41,7 +41,7 @@ const SiteRefLayout = ({ children }) => {
<span className="font-mono text-sm font-medium text-brand-900">DOCS</span>
</a>
</Link>
- {router.asPath.includes('/new/reference/') && <RefSwitcher />}
+ {/* {router.asPath.includes('/new/reference/') && <RefSwitcher />} */}
</div>
<div className="h-4 bg-scale-200 w-full"></div>
<div className="bg-gradient-to-b from-scale-200 to-transparent h-4 w-full"></div>
@@ -57,7 +57,7 @@ const SiteRefLayout = ({ children }) => {
<div className="sticky top-0 z-10">
<TopNavBarRef />
</div>
- <div className="grow px-5 max-w-7xl mx-auto">
+ <div className="grow px-5 max-w-7xl mx-auto py-16">
{children}
<hr className="border-scale-400 mt-32"></hr>
<div className="flex flex-row gap-3 mt-6">
diff --git a/apps/docs/layouts/guides/current.tsx b/apps/docs/layouts/guides/current.tsx
index bfd50b6f739..174b571aec8 100644
--- a/apps/docs/layouts/guides/current.tsx
+++ b/apps/docs/layouts/guides/current.tsx
@@ -82,7 +82,7 @@ const Layout: FC<Props> = (props) => {
}}
/>
- <div className={['grid gap-12 grid-cols-12 relative'].join(' ')}>
+ <div className={['grid grid-cols-12 relative'].join(' ')}>
<div
className={[
'relative',
@@ -97,7 +97,7 @@ const Layout: FC<Props> = (props) => {
ref={articleRef}
className={`${
props.meta?.hide_table_of_contents || !hasTableOfContents ? '' : ''
- } prose dark:prose-dark mt-8 `}
+ } prose dark:prose-dark max-w-none`}
>
<h1>{props.meta.title}</h1>
<div className="max-w-xs w-32 h-[1px] bg-gradient-to-r from-brand-800 to-brand-900 my-16"></div>
diff --git a/apps/docs/layouts/ref/RefSubLayout.tsx b/apps/docs/layouts/ref/RefSubLayout.tsx
index d6d2bddad01..1b094ae59ee 100644
--- a/apps/docs/layouts/ref/RefSubLayout.tsx
+++ b/apps/docs/layouts/ref/RefSubLayout.tsx
@@ -26,14 +26,7 @@ const RefSubLayout: FC<RefSubLayoutType> & RefSubLayoutSubComponents = (props) =
return (
<div className="flex my-16">
<div className="w-full">
- <div
- className={[
- 'flex flex-col mx-auto',
- process.env.NEXT_PUBLIC_EXPERIMENTAL_REF === 'true' ? 'max-w-7xl' : 'max-w-5xl',
- ].join(' ')}
- >
- {props.children}
- </div>
+ <div className={['flex flex-col mx-auto', 'max-w-7xl'].join(' ')}>{props.children}</div>
</div>
</div>
)