The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add migrate to supabase section in docs homepage
Francesco Sansalvadore9d5afc7d6473
diff --git a/apps/docs/pages/index.mdx b/apps/docs/pages/index.mdxindex 12b6f2236ef..9655079836c 100644--- a/apps/docs/pages/index.mdx+++ b/apps/docs/pages/index.mdx@@ -1,6 +1,6 @@import HomeLayout from '~/layouts/HomeLayout'import Link from 'next/link'-import { GlassPanel, IconPanel, Button, IconChevronRight } from 'ui'+import { GlassPanel, IconPanel, Button, IconChevronRight, TextLink } from 'ui'export const meta = {title: 'Supabase Documentation',@@ -13,9 +13,7 @@ export const meta = {<div><div className="max-w-xl">-- ### Products-+ ## Products</div><div className="grid grid-cols-12 gap-6 not-prose">@@ -33,25 +31,35 @@ export const meta = {</a></Link>)+ })}+ </div>++ <div className="flex flex-col lg:grid grid-cols-12 gap-6 mt-12 py-12 border-b">-})}+ <div className="col-span-4 flex flex-col gap-1 [&_h2]:m-0">+ ## Migrate to Supabase+ <p className="text-scale-1100 text-sm p-0 m-0">+ Bring your existing data, auth and storage to Supabase following our migration guides.+ </p>+ </div>- {platform.map((product) => {- return (- <Link- href={`/${product.href}`}- key={product.title}- passHref- >- <a className={'col-span-12 md:col-span-6'}>- <GlassPanel {...product} background={false} showIconBg={true}>- {product.description}- </GlassPanel>- </a>- </Link>- )--})}+ <div className="grid col-span-8 grid-cols-12 gap-6 not-prose">+ {migrationGuides.map((product) => {+ return (+ <Link+ href={`${product.href}`}+ key={product.title}+ passHref+ >+ <a className={product.span ?? 'col-span-6 md:col-span-4'}>+ <IconPanel {...product} background={true} showIconBg={true} showLink={true} showLink={false}>+ {product.description}+ </IconPanel>+ </a>+ </Link>+ )+ })}+ </div></div>@@ -135,6 +143,45 @@ export const products = [},]+export const migrationGuides = [+ {+ title: 'Firebase Auth',+ icon: '/docs/img/icons/firebase-icon',+ href: '/guides/resources/migrating-to-supabase/firebase-auth',+ // description: 'Move your auth users from a Firebase project to a Supabase project.',+ },+ {+ title: 'Firestore Data',+ icon: '/docs/img/icons/firebase-icon',+ href: '/guides/resources/migrating-to-supabase/firestore-data',+ // description: 'Migrate the contents of a Firestore collection to a single PostgreSQL table.',+ },+ {+ title: 'Firebase Storage',+ icon: '/docs/img/icons/firebase-icon',+ href: '/guides/resources/migrating-to-supabase/firebase-storage',+ // description: 'Convert your Firebase Storage files to Supabase Storage.',+ },+ {+ title: 'Heroku',+ icon: '/docs/img/icons/heroku-icon',+ href: '/guides/resources/migrating-to-supabase/heroku',+ // description: 'Migrate your Heroku Postgres database to Supabase.',+ },+ {+ title: 'Render',+ icon: '/docs/img/icons/render-icon',+ href: '/guides/resources/migrating-to-supabase/render',+ // description: 'Migrate your Render Postgres database to Supabase.',+ },+ {+ title: 'Amazon RDS',+ icon: '/docs/img/icons/aws-rds-icon',+ href: '/guides/resources/migrating-to-supabase/amazon-rds',+ // description: 'Migrate your Amazon RDS database to Supabase.',+ },+]+export const apis = [{title: 'JavaScript Client Library',diff --git a/packages/ui/index.tsx b/packages/ui/index.tsxindex dc2bc89b09f..f40566c4ef1 100644--- a/packages/ui/index.tsx+++ b/packages/ui/index.tsx@@ -30,6 +30,7 @@ export * from './src/components/CodeBlock'// NAVexport * from './src/components/Menu'+export * from './src/components/TextLink'// OVERLAYSdiff --git a/packages/ui/src/components/IconPanel/IconPanel.tsx b/packages/ui/src/components/IconPanel/IconPanel.tsxindex 15815e443b3..2f7ef8abd4a 100644--- a/packages/ui/src/components/IconPanel/IconPanel.tsx+++ b/packages/ui/src/components/IconPanel/IconPanel.tsx@@ -58,7 +58,13 @@ const IconPanel = ({<><div className={['relative', 'group'].join(' ')} data-tip={tooltip}><div className={['peer relative', 'flex flex-col', icon ? 'gap-6' : 'gap-2'].join(' ')}>- <div className={['flex', children ? 'items-start gap-3' : 'items-center'].join(' ')}>+ <div+ className={[+ 'flex',+ children ? 'items-start' : 'items-center',+ (title || !hideArrow || showLink) && 'gap-3',+ ].join(' ')}+ >{typeof icon === 'string' ? (<IconContainer><imgdiff --git a/packages/ui/src/components/TextLink/TextLink.tsx b/packages/ui/src/components/TextLink/TextLink.tsxnew file mode 100644index 00000000000..73d54f6136e--- /dev/null+++ b/packages/ui/src/components/TextLink/TextLink.tsx@@ -0,0 +1,23 @@+import { IconChevronRight } from 'ui'+import Link from 'next/link'++function TextLink({ url = '', label, ...props }: any) {+ return (+ <Link href={url} passHref>+ <a+ className="text-scale-1100 hover:text-scale-1200 mt-3 block cursor-pointer text-sm"+ {...props}+ >+ <div className="group flex items-center gap-1">+ <span className="sr-only">{`${label} about ${url}`}</span>+ <span>{label}</span>+ <div className="transition-all group-hover:ml-0.5">+ <IconChevronRight size={14} strokeWidth={2} />+ </div>+ </div>+ </a>+ </Link>+ )+}++export default TextLinkdiff --git a/packages/ui/src/components/TextLink/index.ts b/packages/ui/src/components/TextLink/index.tsnew file mode 100644index 00000000000..077167d986d--- /dev/null+++ b/packages/ui/src/components/TextLink/index.ts@@ -0,0 +1 @@+export { default as TextLink } from './TextLink'