The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
integrations page set up. fixed some issues on docs homepage
Jonathan Summers-Muir92e056a139ef
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex 1f4f49dd47f..fc502585e7a 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -393,7 +393,11 @@ export const integrations = {name: 'Auth',url: undefined,items: [- { name: 'Auth0', url: '/guides/integrations/auth0', items: [] },+ {+ name: 'Auth0',+ url: '/guides/integrations/auth0',+ items: [],+ },{ name: 'Authsignal', url: '/guides/integrations/authsignal', items: [] },{ name: 'Clerk', url: '/guides/integrations/clerk', items: [] },{ name: 'keyri', url: '/guides/integrations/keyri', items: [] },diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsxindex 1f773d645e1..ebc412e7175 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx@@ -35,7 +35,7 @@ const SideNav = () => {case url.includes(`/docs/guides/realtime`) && url:setLevel('realtime')break- case url.includes(`/docs/guides/edge-functions`) && url:+ case url.includes(`/docs/guides/functions`) && url:setLevel('functions')breakcase url.includes(`/docs/reference`) && url:diff --git a/apps/docs/pages/guides/integrations.mdx b/apps/docs/pages/guides/integrations.mdxindex 7077327474d..73663333d26 100644--- a/apps/docs/pages/guides/integrations.mdx+++ b/apps/docs/pages/guides/integrations.mdx@@ -2,6 +2,8 @@ import Layout from '~/layouts/DefaultLayout'import Link from 'next/link'import { GlassPanel } from 'ui'+import { integrations } from '~/components/Navigation/NavigationMenu/NavigationMenu.constants'+export const meta = {title: 'Integrations',}@@ -10,75 +12,32 @@ export const meta = {### Popular Guides-<div className="grid grid-cols-12 gap-6 not-prose">- {topArticles.map((item) => {- return (- <Link- href={`/new/${item.href}`}- key={item.title}- passHref- >- <a className={item.span ?? 'col-span-4'}>+<div>+{integrations.items.map((item) => (++<div>+ <h2>{item.name}</h2>+ <div className="grid grid-cols-12 gap-6 not-prose">+ {item.items.map((integration) => (+ <Link href={`/new/${integration.href}`} key={integration.title} passHref>+ <a className={integration.span ?? 'col-span-4'}><GlassPanel- title="Social Login"- header="/docs/img/cards/sample-card-header-4.svg"+ title={integration.name}span="col-span-6"- background={false}+ background={true}+ icon={<img className="w-10 h-10 rounded" src={`${process.env.NEXT_PUBLIC_ASSETS_URL}/images/integrations/logos/${integration.name.toLowerCase()}_logo.png`}/>}>- {item.description}+ {integration.description}+</GlassPanel></a></Link>- )})}+ ))}+ </div>+</div>+))}</div>--export const topArticles = [- {- title: 'Database',- header: '/docs/img/cards/sample-card-header-4.svg',- href: '/auth/auth-login',- description: 'Social Login allows the user to sign into a third party website instead of.',- span: 'col-span-6',- },- {- title: 'Auth',- header: '/docs/img/cards/sample-card-header-4.svg',- icon: 'auth',- href: '/auth/auth-login',- description: `-Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website.- `,- span: 'col-span-6',- },- {- title: 'Storage',- header: '/docs/img/cards/sample-card-header-4.svg',- icon: 'storage',- href: '/auth/auth-login',- description: `-Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website.- `,- },- {- title: 'Realtime',- header: '/docs/img/cards/sample-card-header-4.svg',- icon: 'realtime',- href: '/auth/auth-login',- description: `-Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website.- `,- },- {- title: 'Edge Functions',- header: '/docs/img/cards/sample-card-header-4.svg',- icon: 'functions',- href: '/auth/auth-login',- description: `-Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website.- `,- },-]export const Page = ({ children }) => <Layout meta={meta} children={children} />diff --git a/apps/docs/pages/new/index.mdx b/apps/docs/pages/new/index.mdxindex 0d27d3ff960..fdd81811c6f 100644--- a/apps/docs/pages/new/index.mdx+++ b/apps/docs/pages/new/index.mdx@@ -30,7 +30,7 @@ hello world{products.map((product) => {return (<Link- href={`/new/${product.href}`}+ href={`${product.href}`}key={product.title}passHref>@@ -52,7 +52,7 @@ hello world{apis.map((product) => {return (<Link- href={`/new/${product.href}`}+ href={`/${product.href}`}key={product.title}passHref>@@ -74,7 +74,7 @@ hello world{platform.map((product) => {return (<Link- href={`/new/${product.href}`}+ href={`/${product.href}`}key={product.title}passHref>@@ -94,14 +94,14 @@ export const products = [{title: 'Database',icon: 'database',- href: 'database',+ href: '/guides/database',description: 'Social Login allows the user to sign into a third party website instead of.',span: 'col-span-6',},{title: 'Auth',icon: 'auth',- href: 'auth',+ href: '/guides/auth',description: `Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website.`,@@ -110,7 +110,7 @@ Social Login allows the user to sign into a third party website instead of creat{title: 'Storage',icon: 'storage',- href: 'storage',+ href: '/guides/storage',description: `Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website.`,@@ -118,7 +118,7 @@ Social Login allows the user to sign into a third party website instead of creat{title: 'Realtime',icon: 'realtime',- href: 'realtime',+ href: '/guides/realtime',description: `Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website.`,@@ -126,7 +126,7 @@ Social Login allows the user to sign into a third party website instead of creat{title: 'Edge Functions',icon: 'functions',- href: 'functions',+ href: '/guides/functions',description: `Social Login allows the user to sign into a third party website instead of creating a new account specifically for that website.`,diff --git a/packages/ui/src/components/GlassPanel/GlassPanel.tsx b/packages/ui/src/components/GlassPanel/GlassPanel.tsxindex 86aedc9fd86..5e55df762e4 100644--- a/packages/ui/src/components/GlassPanel/GlassPanel.tsx+++ b/packages/ui/src/components/GlassPanel/GlassPanel.tsx@@ -4,13 +4,13 @@ import { Item } from '../Accordion/Accordion'interface Props {title: stringspan?: string- icon?: string+ icon?: string | React.ReactNodechildren?: React.ReactNodeheader?: stringbackground?: boolean}-const GlassPanel = ({ title, span, icon, children, header, background = true }: Props) => {+const GlassPanel = ({ title, span, icon, children, header, background = true, img }: Props) => {return (<divclassName={[@@ -47,10 +47,12 @@ const GlassPanel = ({ title, span, icon, children, header, background = true }:)}><div className="flex items-center gap-3">- {icon && (+ {typeof icon === 'string' ? (<div className="bg-green-600 w-8 h-8 flex items-center justify-center rounded"><img className="bg-green-600 w-5" src={`/docs/img/icons/menu/${icon}.svg`} /></div>+ ) : (+ icon)}<h5 className="text-base text-scale-1200">{title}</h5></div>