Set database page as landing page

This commit is contained in:
Terry Sutton committed 2022-12-08 16:43:32 -03:30
1 parent 0a52e0a01a
commit 4df51164a2
2 files changed
+1 -94

No files matched your search

+1 -9
View File
@@ -1,6 +1,4 @@
import Layout from '~/layouts/DefaultGuideLayout'
import NewContent from '~/pages/new/database.mdx'
import { useRouter } from 'next/router'
export const meta = {
id: 'database',
@@ -90,12 +88,6 @@ Read about resetting your database password [here](/docs/guides/database/managin
- Read more about [Postgres](https://www.postgresql.org/about/)
- Sign in: [app.supabase.com](https://app.supabase.com)
export const Page = ({ children }) => {
const router = useRouter()
if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true' && !router.asPath.includes('overview')) {
return NewContent()
}
return <Layout meta={meta} children={children} />
}
export const Page = ({ children }) => <Layout meta={meta} children={children} />
export default Page
-85
View File
@@ -1,85 +0,0 @@
import Layout from '~/layouts/DefaultLayout'
import Link from 'next/link'
import { GlassPanel } from 'ui'
export const meta = {
title: 'Database',
}
## Learn how to use Supabase Auth to handle authentication and authorization of your users blah blah i am test text
### 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'}>
<GlassPanel
title="Social Login"
header="/docs/img/cards/sample-card-header-4.svg"
span="col-span-6"
background={false}
>
{item.description}
</GlassPanel>
</a>
</Link>
)})}
</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} />
export default Page