Skip to content

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

cleaned up AuthProviders

Ollie Halliday13cb89c185c2
diff --git a/apps/docs/components/AuthProviders.tsx b/apps/docs/components/AuthProviders.tsx
index 9d0404f1ef6..78a0e1206e8 100644
--- a/apps/docs/components/AuthProviders.tsx
+++ b/apps/docs/components/AuthProviders.tsx
@@ -1,78 +1,16 @@
-import Image from 'next/image'
import providers from '../data/authProviders'
-import ButtonCard from './ButtonCard'
+import { IconPanel } from 'ui'
+import Link from 'next/link'
export default function AuthProviders() {
- const IconContainer: React.FC = (props) => {
- return (
- <div
- className={[
- 'relative',
- 'flex items-center justify-center shrink-0',
- 'h-10 w-10 rounded-lg',
- 'group',
- 'cursor-pointer',
- 'overflow-hidden',
- 'border-scale-500 hover:border-scale-700 bg-white dark:bg-scale-300',
- 'border rounded-full',
- 'transition',
- ].join(' ')}
- >
- {props.children}
- </div>
- )
- }
-
return (
- <div className="grid md:grid-cols-12 gap-4">
+ <div className="grid grid-cols-12 gap-10 not-prose py-8">
{providers.map((x) => (
- <div key={x.name} className="col-span-6">
- <ButtonCard to={x.href} title={x.name}>
- <div className="px-6 py-4">
- <div className="flex justify-between">
- <div className="flex gap-3">
- <IconContainer>
- <Image width={20} height={20} src={`${x.logo}.svg`} alt={x.name} />
- </IconContainer>
- <p className="mt-0">{x.name}</p>
- </div>
- <p className="mt-0">
- {x.official ? (
- <span className={`badge badge--official`}>Official</span>
- ) : (
- <span className={`badge badge--unofficial`}>Unofficial</span>
- )}
- </p>
- </div>
- <div style={{ display: 'flex', flexDirection: 'column', gap: 5 }}>
- <div
- className="code-block"
- style={{
- width: '100%',
- display: 'flex',
- justifyContent: 'space-between',
- fontSize: '0.7rem',
- }}
- >
- <span>Platform:</span>
- <span>{x.platform.toString()}</span>
- </div>
- <div
- className="code-block"
- style={{
- width: '100%',
- display: 'flex',
- justifyContent: 'space-between',
- fontSize: '0.7rem',
- }}
- >
- <span>Self-Hosted:</span>
- <span>{x.selfHosted.toString()}</span>
- </div>
- </div>
- </div>
- </ButtonCard>
- </div>
+ <Link href={`${x.href}`} key={x.name} passHref>
+ <a className="col-span-6 lg:col-span-4 xl:col-span-3">
+ <IconPanel title={x.name} icon={x.logo} />
+ </a>
+ </Link>
))}
</div>
)