+ )
}
const EducationSection: FC = ({ icon, hideTitle = false, ...props }) => {
diff --git a/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx b/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx
index 2a7814999e3..1d07fb9db94 100644
--- a/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx
@@ -34,7 +34,10 @@ Pass `supabaseClient` from `@supabase/supabase-js` as a prop to the component.
import { createClient } from '@supabase/supabase-js'
import { Auth } from '@supabase/auth-ui-react'
-const supabase = createClient('', '')
+const supabase = createClient(
+ '',
+ ''
+)
const App = () =>
```
@@ -43,13 +46,18 @@ This renders the Auth component without any styling.
We recommend using one of the predefined themes to style the UI.
Import the theme you want to use and pass it to the `appearence.theme` prop.
-```js lines=4,11 title=/src/index.js
+```js lines=4,16 title=/src/index.js
import {
Auth,
// Import predefined theme
ThemeSupa,
} from '@supabase/auth-ui-react'
+const supabase = createClient(
+ '',
+ ''
+)
+
const App = () => (
(
)
```
+### Social Providers
+
+The Auth component also supports login with [offical social providers](../../auth#providers).
+
+```js lines=13 title=/src/index.js
+import { createClient } from '@supabase/supabase-js'
+import { Auth, ThemeSupa } from '@supabase/auth-ui-react'
+
+const supabase = createClient(
+ '',
+ ''
+)
+
+const App = () => (
+
+)
+```
+
## Customization
There are several ways to customize Auth UI:
@@ -74,11 +104,14 @@ There are several ways to customize Auth UI:
Auth UI comes with several themes to customize the appearance. Each predefined theme comes with at least two variations, a `default` variation, and a `dark` variation. You can switch between these themes using the `theme` prop. Import the theme you want to use and pass it to the `appearence.theme` prop.
-```js lines=2,10 title=/src/index.js
+```js lines=2,13 title=/src/index.js
import { createClient } from '@supabase/supabase-js'
import { Auth, ThemeSupa } from '@supabase/auth-ui-react'
-const supabase = createClient('', '')
+const supabase = createClient(
+ '',
+ ''
+)
const App = () => (
', '')
+const supabase = createClient(
+ '',
+ ''
+)
const App = () => (
', '')
+const supabase = createClient(
+ '',
+ ''
+)
const App = () => (
', '')
+const supabase = createClient(
+ '',
+ ''
+)
const App = () => (
', '')
+const supabase = createClient(
+ '',
+ ''
+)
const App = () => (
', '')
+const supabase = createClient(
+ '',
+ ''
+)
const App = () => (
+ Supabase is an open source Firebase alternative providing all the backend features you need to
+ build a product. [Learn more](/docs/architecture) about Supabase, start with the
+ [tutorials](/docs/guides/getting-started#tutorials), or dive straight into the different products
+ and APIs.
+
-Supabase is an open source Firebase alternative providing all the backend features you need to build a product.
-You can use it completely, or just the features you need.
+{/* start container */}
-[Start a project](https://app.supabase.com) with the hosted platform or learn how to [host Supabase](/docs/guides/hosting/overview) yourself.
+
-## Learn about features
+
+
+
+
+
+
Getting Started
+
+ Discover how to set up a database to an app making queries in just a few minutes.
+
+
+
+export const products = [
+ {
+ title: 'Database',
+ icon: '/docs/img/icons/menu/database',
+ hasLightIcon: true,
+ href: '/guides/database',
+ description:
+ 'Supabase provides a full Postgres database for every project with Realtime functionality, database backups, extensions, and more.',
+ span: 'col-span-12 md:col-span-6',
+ },
+ {
+ title: 'Auth',
+ icon: '/docs/img/icons/menu/auth',
+ hasLightIcon: true,
+ href: '/guides/auth/overview',
+ description:
+ 'Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs.',
+ span: 'col-span-12 md:col-span-6',
+ },
+ {
+ title: 'Storage',
+ icon: '/docs/img/icons/menu/storage',
+ hasLightIcon: true,
+ href: '/guides/storage',
+ description:
+ 'Store, organize, transform, and serve large files—fully integrated with your Postgres database with Row Level Security access policies.',
+ },
+ {
+ title: 'Realtime',
+ icon: '/docs/img/icons/menu/realtime',
+ hasLightIcon: true,
+ href: '/guides/realtime',
+ description:
+ 'Listen to database changes, store and sync user states across clients, broadcast data to clients subscribed to a channel, and more.',
+ },
+ {
+ title: 'Edge Functions',
+ icon: '/docs/img/icons/menu/functions',
+ hasLightIcon: true,
+ href: '/guides/functions',
+ description:
+ 'Globally distributed, server-side functions to execute your code closest to your users for the lowest latency.',
+ },
+]
+
+export const apis = [
+ {
+ title: 'JavaScript Client Library',
+ icon: '/docs/img/icons/menu/reference-javascript',
+ hasLightIcon: true,
+ href: 'reference/javascript/introduction',
+ description: 'Official client libraries for JavaScript and TypeScript.',
+ },
+ {
+ title: 'Flutter Client Library',
+ icon: '/docs/img/icons/menu/reference-dart',
+ hasLightIcon: true,
+ href: 'reference/dart/introduction',
+ description: 'Official client libraries for Flutter and Dart.',
+ },
+ {
+ title: 'Management API',
+ icon: '/docs/img/icons/menu/reference-api',
+ hasLightIcon: true,
+ href: 'reference/api/introduction',
+ description: 'Manage your Supabase projects and organizations programmatically.',
+ },
+ {
+ title: 'Supabase CLI',
+ icon: '/docs/img/icons/menu/reference-api',
+ hasLightIcon: true,
+ href: 'reference/cli/introduction',
+ description:
+ 'Use the CLI to develop your project locally, manage database migrations, and deploy to the Supabase Platform or self-host.',
+ },
+ {
+ title: 'Self-Hosting Auth',
+ icon: '/docs/img/icons/menu/reference-auth',
+ hasLightIcon: true,
+ href: 'reference/self-hosting-auth/introduction',
+ description: 'Self-host your own Auth server.',
+ },
+ {
+ title: 'Self-Hosting Storage',
+ icon: '/docs/img/icons/menu/reference-storage',
+ hasLightIcon: true,
+ href: 'reference/self-hosting-storage/introduction',
+ description: 'Self-host your own Storage server.',
+ },
+ {
+ title: 'Self-Hosting Realtime',
+ icon: '/docs/img/icons/menu/reference-realtime',
+ hasLightIcon: true,
+ href: 'reference/self-hosting-realtime/introduction',
+ description: 'Self-host your own Realtime server.',
+ },
+]
+
+export const platform = [
+ {
+ // header: '/docs/img/cards/sample-card-header-3.svg',
+ title: 'Platform Guides',
+ icon: '/docs/img/icons/menu/platform',
+ hasLightIcon: true,
+ href: 'guides/platform',
+ description:
+ 'Learn more about the tools and services powering the Supabase Platform, available add-ons, and how to customize the platform for your needs.',
+ },
+ {
+ // header: '/docs/img/cards/sample-card-header-2.svg',
+ title: 'Resources',
+ icon: '/docs/img/icons/menu/resources',
+ hasLightIcon: true,
+ href: 'guides/resources',
+ description: 'View examples, curated content from the community, migration guides, and more.',
+ },
+ {
+ // header: '/docs/img/cards/sample-card-header-2.svg',
+ title: 'Integrations',
+ icon: '/docs/img/icons/menu/integrations',
+ hasLightIcon: true,
+ href: 'guides/integrations',
+ description: 'Explore a variety of integrations from Supabase partners.',
+ },
+]
+
+export const Page = ({ children }) =>
export default Page
diff --git a/apps/docs/pages/new/index.mdx b/apps/docs/pages/new/index.mdx
deleted file mode 100644
index b9762af04b1..00000000000
--- a/apps/docs/pages/new/index.mdx
+++ /dev/null
@@ -1,323 +0,0 @@
-import Layout from '~/layouts/DefaultLayout'
-import Link from 'next/link'
-import { GlassPanel, IconPanel, Button, IconChevronRight } from 'ui'
-
-export const meta = {
- title: 'Supabase Docs',
- description:
- 'Supabase is an open source Firebase alternative providing all the backend features you need to build a product.',
- subtitle: 'Supabase Developer Documentation and API Reference',
-}
-
-
- Supabase is an open source Firebase alternative providing all the backend features you need to
- build a product.
-
- [Learn more](/docs/architecture) about Supabase, start with the
- [tutorials](/docs/guides/getting-started#tutorials), or dive straight into the different products and APIs.
-
-
-{/* start container */}
-
-
-
-
-
-
-
-
-
Getting Started
-
- Discover how to set up a database to an app making queries in just a few minutes.
-
-