Skip to content

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

fix(docs): unify docs card hover and retire IconPanel (#48379)

Danny White3b06c6c7cc0b
diff --git a/apps/docs/app/page.tsx b/apps/docs/app/page.tsx
index 76a6fb6b16a..f3b5ea7822a 100644
--- a/apps/docs/app/page.tsx
+++ b/apps/docs/app/page.tsx
@@ -396,18 +396,16 @@ const HomePage = () => (
</div>
</div>
- <div className="col-span-8 grid grid-cols-12 not-prose">
- <IconLinkList
- labelledBy="self-hosting"
- className="col-span-full lg:col-span-8"
- itemClassName="col-span-6"
- items={selfHostingOptions.map((option) => ({
- title: option.title,
- href: option.href,
- icon: <IconLinkMenuIcon icon={option.icon} />,
- }))}
- />
- </div>
+ <IconLinkList
+ labelledBy="self-hosting"
+ className="col-span-8 not-prose"
+ itemClassName="col-span-6"
+ items={selfHostingOptions.map((option) => ({
+ title: option.title,
+ href: option.href,
+ icon: <IconLinkMenuIcon icon={option.icon} />,
+ }))}
+ />
</div>
)}
</div>
diff --git a/apps/docs/components/AuthProviders.tsx b/apps/docs/components/AuthProviders.tsx
index c9b1ae80263..15d6888b66c 100644
--- a/apps/docs/components/AuthProviders.tsx
+++ b/apps/docs/components/AuthProviders.tsx
@@ -1,24 +1,30 @@
-import { IconPanel } from 'ui-patterns/IconPanel'
import providers from '../data/authProviders'
-import Link from 'next/link'
+import { IconLinkImage, IconLinkList } from '@/features/ui/IconLink'
-export default function AuthProviders({ type }: { type: string }) {
- const filterProviders = providers.filter((item) => item.authType === type)
+export default function AuthProviders({
+ type,
+ labelledBy,
+ label,
+}: {
+ type: string
+ labelledBy?: string
+ label?: string
+}) {
+ const items = providers
+ .filter((item) => item.authType === type)
+ .map((provider) => ({
+ title: provider.name,
+ href: provider.href,
+ icon: <IconLinkImage path={provider.logo} hasLightIcon={provider.hasLightIcon} />,
+ }))
return (
- <>
- <div className="grid grid-cols-12 xs:gap-x-10 gap-y-10 not-prose py-8">
- {filterProviders.map((x) => (
- <Link
- href={`${x.href}`}
- key={x.name}
- passHref
- className="col-span-12 xs:col-span-6 lg:col-span-4 xl:col-span-3"
- >
- <IconPanel title={x.name} icon={x.logo} hasLightIcon={x.hasLightIcon} />
- </Link>
- ))}
- </div>
- </>
+ <IconLinkList
+ labelledBy={labelledBy}
+ label={label}
+ className="not-prose py-8"
+ itemClassName="col-span-12 xs:col-span-6 lg:col-span-4 xl:col-span-3"
+ items={items}
+ />
)
}
diff --git a/apps/docs/components/AuthSmsProviderConfig/AuthSmsProviderConfig.tsx b/apps/docs/components/AuthSmsProviderConfig/AuthSmsProviderConfig.tsx
index 1bba14fa98a..0ab67c6c37a 100644
--- a/apps/docs/components/AuthSmsProviderConfig/AuthSmsProviderConfig.tsx
+++ b/apps/docs/components/AuthSmsProviderConfig/AuthSmsProviderConfig.tsx
@@ -1,15 +1,15 @@
'use client'
import { safeHistoryReplaceState } from '~/lib/historyUtils'
-import { useEffect, useReducer, useRef } from 'react'
+import { useEffect, useId, useReducer, useRef } from 'react'
import { Dialog, DialogContent, DialogHeader, DialogSection, Heading } from 'ui'
-import { IconPanel } from 'ui-patterns/IconPanel'
import { PhoneLoginsItems } from '../Navigation/NavigationMenu/NavigationMenu.constants'
import MessageBird from './MessageBirdConfig.mdx'
import TextLocal from './TextLocalConfig.mdx'
import Twilio from './TwilioConfig.mdx'
import Vonage from './VonageConfig.mdx'
+import { IconLinkButton, IconLinkImage } from '@/features/ui/IconLink'
const reducer = (_, action: (typeof PhoneLoginsItems)[number] | undefined) => {
const url = new URL(document.location.href)
@@ -24,6 +24,8 @@ const reducer = (_, action: (typeof PhoneLoginsItems)[number] | undefined) => {
const AuthSmsProviderConfig = () => {
const [selectedProvider, setSelectedProvider] = useReducer(reducer, undefined)
+ const dialogId = useId()
+ const dialogTitleId = useId()
useEffect(() => {
const providerName = new URLSearchParams(document.location.search ?? '').get('showSmsProvider')
@@ -41,22 +43,20 @@ const AuthSmsProviderConfig = () => {
<h3 className="sr-only" id="sms-provider-configuration">
Configuring SMS Providers
</h3>
- <div className="grid grid-cols-6 gap-10 not-prose py-8">
+ <ul className="grid grid-cols-12 gap-6 not-prose py-8">
{PhoneLoginsItems.map((provider) => (
- <button
- tabIndex={0}
- key={provider.name}
- className="col-span-6 xl:col-span-3"
- onClick={() => setSelectedProvider(provider)}
- >
- <IconPanel
+ <li key={provider.name} className="col-span-12 sm:col-span-6 xl:col-span-3">
+ <IconLinkButton
title={provider.name}
- icon={provider.icon}
- hasLightIcon={provider.hasLightIcon}
+ icon={<IconLinkImage path={provider.icon} hasLightIcon={provider.hasLightIcon} />}
+ aria-haspopup="dialog"
+ aria-expanded={selectedProvider?.name === provider.name}
+ aria-controls={selectedProvider?.name === provider.name ? dialogId : undefined}
+ onClick={() => setSelectedProvider(provider)}
/>
- </button>
+ </li>
))}
- </div>
+ </ul>
</section>
<Dialog
open={!!selectedProvider}
@@ -64,14 +64,16 @@ const AuthSmsProviderConfig = () => {
>
{selectedProvider && (
<DialogContent
+ id={dialogId}
className="w-[min(90vw,80ch)]! max-w-[min(90vw,80ch)]! max-h-[90dvh]! prose overflow-auto"
+ aria-labelledby={dialogTitleId}
onOpenAutoFocus={(evt) => {
evt.preventDefault()
headingRef.current?.focus()
}}
>
<DialogHeader className="pb-0 [&>h3]:m-0! [&>h3>a]:hidden! [&>h3:focus-visible]:outline-hidden">
- <Heading tag="h3" ref={headingRef} tabIndex={-1}>
+ <Heading tag="h3" id={dialogTitleId} ref={headingRef} tabIndex={-1}>
{selectedProvider.name}
</Heading>
</DialogHeader>
diff --git a/apps/docs/components/ContentListings/ContentListings.client.tsx b/apps/docs/components/ContentListings/ContentListings.client.tsx
index 7e7ff213c85..f71fd0236b1 100644
--- a/apps/docs/components/ContentListings/ContentListings.client.tsx
+++ b/apps/docs/components/ContentListings/ContentListings.client.tsx
@@ -16,9 +16,10 @@ import { Heading } from 'ui/src/components/CustomHTMLElements'
import { resolveContentListingIcon } from './iconChip'
const GRID_ITEM_CLASS = {
+ // Stay 2-up until xl (~1280px) so cards aren't cramped beside the docs sidebar.
2: 'col-span-12 md:col-span-6',
- 3: 'col-span-12 md:col-span-4',
- 4: 'col-span-12 md:col-span-3',
+ 3: 'col-span-12 md:col-span-6 xl:col-span-4',
+ 4: 'col-span-12 md:col-span-6 xl:col-span-3',
} as const
function useContentListingClickHandler(group: ContentListingGroup) {
@@ -88,9 +89,7 @@ function ContentListingsGroup({ group }: { group: ContentListingGroup }) {
}
>
{item.badge && item.badgePosition === 'below' && (
- // Pull the badge up close to the title (GlassPanel's icon-row gap is
- // large by default), then push extra space before the description below.
- <Badge variant="success" className="-mt-4 mb-6 block w-fit">
+ <Badge variant="success" className="mb-3 block w-fit">
{item.badge}
</Badge>
)}
diff --git a/apps/docs/components/Extensions/Extensions.tsx b/apps/docs/components/Extensions/Extensions.tsx
index ce266aa4411..27d8dae1f0e 100644
--- a/apps/docs/components/Extensions/Extensions.tsx
+++ b/apps/docs/components/Extensions/Extensions.tsx
@@ -109,11 +109,12 @@ export default function Extensions() {
)
.map((extension) => (
<Link
+ key={extension.name}
href={extension.link}
target={getLinkTarget(extension.link)}
className="no-underline"
>
- <GlassPanel title={extension.name} background={false} key={extension.name}>
+ <GlassPanel title={extension.name}>
<p className="mt-4">
{extension.comment.charAt(0).toUpperCase() + extension.comment.slice(1)}
</p>
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
index 96e6899ff95..70effd01a41 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
@@ -1,8 +1,6 @@
// End of third-party imports
import { isFeatureEnabled } from 'common/enabled-features'
-import type { ComponentProps } from 'react'
-import type { IconPanel } from 'ui-patterns/IconPanel'
import type { GlobalMenuItems, NavMenuConstant, NavMenuSection } from '../Navigation.types'
@@ -2527,7 +2525,9 @@ export const contributing: NavMenuConstant = {
items: [{ name: 'Overview', url: '/contributing' }],
}
-export const MIGRATION_PAGES: Partial<NavMenuSection & ComponentProps<typeof IconPanel>>[] = [
+export const MIGRATION_PAGES: Partial<
+ NavMenuSection & { icon?: string; hasLightIcon?: boolean }
+>[] = [
{
name: 'Auth0',
icon: '/docs/img/icons/auth0-icon',
diff --git a/apps/docs/content/_partials/providers.mdx b/apps/docs/content/_partials/providers.mdx
index 0c65a75ab1a..94f42414eb4 100644
--- a/apps/docs/content/_partials/providers.mdx
+++ b/apps/docs/content/_partials/providers.mdx
@@ -4,7 +4,7 @@ Supabase Auth works with many popular Auth methods, including Social and Phone A
### Social Auth
-<AuthProviders type="social" />
+<AuthProviders type="social" labelledBy="social-auth" />
<Admonition type="note">
@@ -14,4 +14,4 @@ You can also add any OAuth2 or OIDC-compatible identity provider using [Custom O
### Phone Auth
-<AuthProviders type="phone" />
+<AuthProviders type="phone" labelledBy="phone-auth" />
diff --git a/apps/docs/content/guides/ai.mdx b/apps/docs/content/guides/ai.mdx
index 5226d8849aa..263f0a17ae4 100644
--- a/apps/docs/content/guides/ai.mdx
+++ b/apps/docs/content/guides/ai.mdx
@@ -31,7 +31,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
{/* <!-- vale off --> */}
<div className="grid md:grid-cols-12 gap-4 not-prose">
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/ai/examples/headless-vector-search" passHref>
<GlassPanel
icon={'/docs/img/icons/github-icon'}
@@ -42,7 +42,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/ai/examples/image-search-openai-clip" passHref>
<GlassPanel
icon={'/docs/img/icons/github-icon'}
@@ -53,7 +53,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/ai/examples/huggingface-image-captioning" passHref>
<GlassPanel
icon={'/docs/img/icons/github-icon'}
@@ -64,7 +64,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/ai/examples/openai" passHref>
<GlassPanel
icon={'/docs/img/icons/github-icon'}
@@ -75,7 +75,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/ai/examples/building-chatgpt-plugins" passHref>
<GlassPanel
icon={'/docs/img/icons/github-icon'}
@@ -86,7 +86,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/ai/examples/nextjs-vector-search" passHref>
<GlassPanel
icon={'/docs/img/icons/github-icon'}
@@ -106,7 +106,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
{/* <!-- vale off --> */}
<div className="grid md:grid-cols-12 gap-4 not-prose">
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/ai/examples/building-chatgpt-plugins" passHref>
<GlassPanel title="OpenAI">
OpenAI is an AI research and deployment company. Supabase provides a way to use OpenAI in
@@ -114,7 +114,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/ai/integrations/amazon-bedrock" passHref>
<GlassPanel title="Amazon Bedrock">
A fully managed service that offers a choice of high-performing foundation models from
@@ -122,7 +122,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/ai/hugging-face" passHref>
<GlassPanel title="Hugging Face">
Hugging Face is an open-source provider of NLP technologies. Supabase provides a way to use
@@ -130,7 +130,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/ai/langchain" passHref>
<GlassPanel title="LangChain">
LangChain is a language-agnostic, open-source, and self-hosted API for text translation,
@@ -138,7 +138,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/ai/integrations/llamaindex" passHref>
<GlassPanel title="LlamaIndex">
LlamaIndex is a data framework for your LLM applications.
@@ -154,7 +154,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
{/* <!-- vale off --> */}
<div className="grid md:grid-cols-12 gap-4 not-prose">
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="https://supabase.com/customers/berriai" passHref>
<GlassPanel title="Berri AI Boosts Productivity by Migrating from AWS RDS to Supabase with pgvector">
Learn how Berri AI overcame challenges with self-hosting their vector database on AWS RDS
@@ -162,7 +162,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="https://supabase.com/customers/firecrawl" passHref>
<GlassPanel title="Firecrawl switches from Pinecone to Supabase for Postgres vector embeddings">
How Firecrawl boosts efficiency and accuracy of chat powered search for documentation using
@@ -170,7 +170,7 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="https://supabase.com/customers/markprompt" passHref>
<GlassPanel title="Markprompt: GDPR-Compliant AI Chatbots for Docs and Websites">
AI-powered chatbot platform, Markprompt, empowers developers to deliver efficient and
diff --git a/apps/docs/content/guides/auth/auth-hooks.mdx b/apps/docs/content/guides/auth/auth-hooks.mdx
index b1259bc1d5a..327d87456d1 100644
--- a/apps/docs/content/guides/auth/auth-hooks.mdx
+++ b/apps/docs/content/guides/auth/auth-hooks.mdx
@@ -372,35 +372,35 @@ Outside of runtime errors, both HTTP Hooks and Postgres Hooks return timeout err
Each Hook description contains an example JSON Schema which you can use in conjunction with [JSON Schema Faker](https://json-schema-faker.js.org/) in order to generate a mock payload. For HTTP Hooks, you can also use [the Standard Webhooks Testing Tool](https://www.standardwebhooks.com/simulate) to simulate a request.
<div className="grid md:grid-cols-12 gap-4 not-prose">
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/auth/auth-hooks/custom-access-token-hook" passHref>
<GlassPanel title="Custom Access Token">
Customize the access token issued by Supabase Auth
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/auth/auth-hooks/send-sms-hook" passHref>
<GlassPanel title="Send SMS">
Use a custom SMS provider to send authentication messages
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/auth/auth-hooks/send-email-hook" passHref>
<GlassPanel title="Send Email">
Use a custom email provider to send authentication messages
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/auth/auth-hooks/mfa-verification-hook" passHref>
<GlassPanel title="MFA Verification">
Add additional checks to the MFA verification flow
</GlassPanel>
</Link>
</div>
- <div className="col-span-4">
+ <div className="col-span-12 md:col-span-6 xl:col-span-4">
<Link href="/guides/auth/auth-hooks/password-verification-hook" passHref>
<GlassPanel title="Password verification">
Add additional checks to the password verification flow
diff --git a/apps/docs/content/guides/auth/server-side.mdx b/apps/docs/content/guides/auth/server-side.mdx
index 5a22ca7bbbf..9e93a926bb3 100644
--- a/apps/docs/content/guides/auth/server-side.mdx
+++ b/apps/docs/content/guides/auth/server-side.mdx
@@ -20,14 +20,20 @@ We have developed an [`@supabase/ssr`](https://www.npmjs.com/package/@supabase/s
## Framework quickstarts
<div className="grid grid-cols-[repeat(auto-fit,minmax(300px,1fr))] gap-6 mb-6 not-prose">
- <Link href="/guides/auth/server-side/nextjs" passHref>
- <GlassPanel title="Next.js" background={false} icon="/docs/img/icons/nextjs-icon">
+ <Link
+ href="/guides/auth/server-side/creating-a-client?queryGroups=framework&framework=nextjs"
+ passHref
+ >
+ <GlassPanel title="Next.js" icon="/docs/img/icons/nextjs-icon">
Automatically configure Supabase in Next.js to use cookies, making your user and their session
available on the client and server.
</GlassPanel>
</Link>
- <Link href="/guides/auth/server-side/sveltekit" passHref>
- <GlassPanel title="SvelteKit" background={false} icon="/docs/img/icons/svelte-icon">
+ <Link
+ href="/guides/auth/server-side/creating-a-client?queryGroups=framework&framework=sveltekit"
+ passHref
+ >
+ <GlassPanel title="SvelteKit" icon="/docs/img/icons/svelte-icon">
Automatically configure Supabase in SvelteKit to use cookies, making your user and their
session available on the client and server.
</GlassPanel>
diff --git a/apps/docs/content/guides/auth/social-login.mdx b/apps/docs/content/guides/auth/social-login.mdx
index 5f7cfe3ab7b..6433597e583 100644
--- a/apps/docs/content/guides/auth/social-login.mdx
+++ b/apps/docs/content/guides/auth/social-login.mdx
@@ -20,30 +20,7 @@ There are several reasons why you might want to add social login to your applica
Supabase supports a suite of social providers. Follow these guides to configure a social provider for your platform.
-<div className="grid grid-cols-12 xs:gap-x-10 gap-y-10 not-prose py-8">
- <NavData data="socialLoginItems">
- {(data) =>
- data.map((item) => (
- <Link
- href={`${item.url}`}
- key={item.name}
- passHref
- className="col-span-12 xs:col-span-6 lg:col-span-4 xl:col-span-3"
- >
- <IconPanel
- title={item.name}
- span="col-span-6"
- icon={item.icon}
- isDarkMode={item.isDarkMode}
- hasLightIcon={item.hasLightIcon}
- >
- {item.description}
- </IconPanel>
- </Link>
- ))
- }
- </NavData>
-</div>
+<AuthProviders type="social" label="Social providers" />
<Admonition type="note">
diff --git a/apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx b/apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx
index 88d0c416271..192b4ef7d8b 100644
--- a/apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx
+++ b/apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx
@@ -21,20 +21,20 @@ Choose one of these Vercel Deploy Templates which use our [Vercel Deploy Integra
<div className="grid grid-cols-12 gap-6 not-prose">
<Link
href="https://supabase.link/nextjs-with-supabase-starter"
- className="col-span-12 md:col-span-4"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <GlassPanel title="supabase-js" hasLightIcon={true} background={false} showIconBg={true}>
+ <GlassPanel title="supabase-js" hasLightIcon={true} showIconBg={true}>
A Next.js App Router template configured with cookie-based auth using Supabase, TypeScript
and Tailwind CSS.
</GlassPanel>
</Link>
<Link
href="https://supabase.link/nextjs-supabase-kysely"
- className="col-span-12 md:col-span-4"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <GlassPanel title="Kysely" hasLightIcon={true} background={false} showIconBg={true}>
+ <GlassPanel title="Kysely" hasLightIcon={true} showIconBg={true}>
Basic Next.js template that uses Supabase as the database and Kysely as the query builder.
</GlassPanel>
</Link>
diff --git a/apps/docs/content/guides/getting-started.mdx b/apps/docs/content/guides/getting-started.mdx
index 163c49283da..317ce47a169 100644
--- a/apps/docs/content/guides/getting-started.mdx
+++ b/apps/docs/content/guides/getting-started.mdx
@@ -10,23 +10,26 @@ hideToc: true
<div>
<div className="grid grid-cols-12 gap-6 not-prose">
- <Link href="/guides/ai-tools" className="col-span-12 md:col-span-4" passHref>
- <GlassPanel
- title="Build with AI tools"
- hasLightIcon={true}
- background={false}
- showIconBg={true}
- >
+ <Link href="/guides/ai-tools" className="col-span-12 md:col-span-6 xl:col-span-4" passHref>
+ <GlassPanel title="Build with AI tools" hasLightIcon={true} showIconBg={true}>
Develop with Supabase AI-first using plugins, MCP, and skills.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/api-keys" className="col-span-12 md:col-span-4" passHref>
- <GlassPanel title="API Keys" hasLightIcon={true} background={false} showIconBg={true}>
+ <Link
+ href="/guides/getting-started/api-keys"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ passHref
+ >
+ <GlassPanel title="API Keys" hasLightIcon={true} showIconBg={true}>
Learn about the different API keys in Supabase and how to use them.
</GlassPanel>
</Link>
- <Link href="/guides/local-development" className="col-span-12 md:col-span-4" passHref>
- <GlassPanel title="Local Development" hasLightIcon={true} background={false} showIconBg={true}>
+ <Link
+ href="/guides/local-development"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ passHref
+ >
+ <GlassPanel title="Local Development" hasLightIcon={true} showIconBg={true}>
Use the Supabase CLI to develop locally and collaborate between teams.
</GlassPanel>
</Link>
@@ -39,11 +42,9 @@ hideToc: true
### Use cases
<div className="grid lg:grid-cols-12 gap-6 not-prose">
- <Link href="/guides/ai#examples" passHref className="col-span-4">
+ <Link href="/guides/ai#examples" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="AI, Vectors, and embeddings"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/openai_logo"
hasLightIcon={true}
>
@@ -53,28 +54,18 @@ hideToc: true
<Link
href="https://github.com/vercel/nextjs-subscription-payments#nextjs-subscription-payments-starter"
passHref
- className="col-span-4"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
>
- <GlassPanel
- title="Subscription Payments (SaaS)"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/nextjs-icon"
- >
+ <GlassPanel title="Subscription Payments (SaaS)" icon="/docs/img/icons/nextjs-icon">
Clone, deploy, and fully customize a SaaS subscription application with Next.js.
</GlassPanel>
</Link>
<Link
href="https://github.com/supabase-community/partner-gallery-example#supabase-partner-gallery-example"
passHref
- className="col-span-4"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
>
- <GlassPanel
- title="Partner Gallery"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/nextjs-icon"
- >
+ <GlassPanel title="Partner Gallery" icon="/docs/img/icons/nextjs-icon">
Postgres full-text search, image storage, and more.
</GlassPanel>
</Link>
@@ -85,138 +76,138 @@ hideToc: true
<$Show if="docs:framework_quickstarts">
<div className="grid lg:grid-cols-12 gap-6 not-prose">
- <Link href="/guides/getting-started/quickstarts/reactjs" passHref className="col-span-4">
- <GlassPanel
- title="React"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/react-icon"
- >
+ <Link
+ href="/guides/getting-started/quickstarts/reactjs"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="React" icon="/docs/img/icons/react-icon">
Learn how to create a Supabase project, add some sample data to your database, and query the
data from a React app.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/quickstarts/nextjs" passHref className="col-span-4">
- <GlassPanel
- title="Next.js"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/nextjs-icon"
- hasLightIcon={true}
- >
+ <Link
+ href="/guides/getting-started/quickstarts/nextjs"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="Next.js" icon="/docs/img/icons/nextjs-icon" hasLightIcon={true}>
Learn how to create a Supabase project, add some sample data to your database, and query the
data from a Next.js app.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/quickstarts/nuxtjs" passHref className="col-span-4">
- <GlassPanel title="Nuxt" span="col-span-6" background={false} icon="/docs/img/icons/nuxt-icon">
+ <Link
+ href="/guides/getting-started/quickstarts/nuxtjs"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="Nuxt" icon="/docs/img/icons/nuxt-icon">
Learn how to create a Supabase project, add some sample data to your database, and query the
data from a Nuxt app.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/quickstarts/hono" passHref className="col-span-4">
- <GlassPanel title="Hono" span="col-span-6" background={false} icon="/docs/img/icons/hono-icon">
+ <Link
+ href="/guides/getting-started/quickstarts/hono"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="Hono" icon="/docs/img/icons/hono-icon">
Learn how to create a Supabase project, add some sample data to your database, secure it with
auth, and query the data from a Hono app.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/quickstarts/redwoodjs" passHref className="col-span-4">
- <GlassPanel
- title="RedwoodJS"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/redwood-icon"
- >
+ <Link
+ href="/guides/getting-started/quickstarts/redwoodjs"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="RedwoodJS" icon="/docs/img/icons/redwood-icon">
Learn how to create a Supabase project, add some sample data to your database using Prisma
migration and seeds, and query the data from a RedwoodJS app.
</GlassPanel>
</Link>
<$Show if="sdk:dart">
- <Link href="/guides/getting-started/quickstarts/flutter" passHref className="col-span-4">
- <GlassPanel
- title="Flutter"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/flutter-icon"
- >
+ <Link
+ href="/guides/getting-started/quickstarts/flutter"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="Flutter" icon="/docs/img/icons/flutter-icon">
Learn how to create a Supabase project, add some sample data to your database, and query the
data from a Flutter app.
</GlassPanel>
</Link>
</$Show>
<$Show if="sdk:swift">
- <Link href="/guides/getting-started/quickstarts/ios-swiftui" passHref className="col-span-4">
- <GlassPanel
- title="iOS SwiftUI"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/swift-icon"
- >
+ <Link
+ href="/guides/getting-started/quickstarts/ios-swiftui"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="iOS SwiftUI" icon="/docs/img/icons/swift-icon">
Learn how to create a Supabase project, add some sample data to your database, and query the
data from an iOS app.
</GlassPanel>
</Link>
</$Show>
<$Show if="sdk:kotlin">
- <Link href="/guides/getting-started/quickstarts/kotlin" passHref className="col-span-4">
- <GlassPanel
- title="Android Kotlin"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/kotlin-icon"
- >
+ <Link
+ href="/guides/getting-started/quickstarts/kotlin"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="Android Kotlin" icon="/docs/img/icons/kotlin-icon">
Learn how to create a Supabase project, add some sample data to your database, and query the
data from an Android Kotlin app.
</GlassPanel>
</Link>
</$Show>
- <Link href="/guides/getting-started/quickstarts/sveltekit" passHref className="col-span-4">
- <GlassPanel
- title="SvelteKit"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/svelte-icon"
- >
+ <Link
+ href="/guides/getting-started/quickstarts/sveltekit"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="SvelteKit" icon="/docs/img/icons/svelte-icon">
Learn how to create a Supabase project, add some sample data to your database, and query the
data from a SvelteKit app.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/quickstarts/solidjs" passHref className="col-span-4">
- <GlassPanel
- title="SolidJS"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/solidjs-icon"
- >
+ <Link
+ href="/guides/getting-started/quickstarts/solidjs"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="SolidJS" icon="/docs/img/icons/solidjs-icon">
Learn how to create a Supabase project, add some sample data to your database, and query the
data from a SolidJS app.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/quickstarts/vue" passHref className="col-span-4">
- <GlassPanel title="Vue" span="col-span-6" background={false} icon="/docs/img/icons/vuejs-icon">
+ <Link
+ href="/guides/getting-started/quickstarts/vue"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="Vue" icon="/docs/img/icons/vuejs-icon">
Learn how to create a Supabase project, add some sample data to your database, and query the
data from a Vue app.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/quickstarts/tanstack" passHref className="col-span-4">
- <GlassPanel
- title="TanStack Start"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/tanstack-icon"
- hasLightIcon={true}
- >
+ <Link
+ href="/guides/getting-started/quickstarts/tanstack"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="TanStack Start" icon="/docs/img/icons/tanstack-icon" hasLightIcon={true}>
Learn how to create a Supabase project, add some sample data to your database, and query the
data from a TanStack Start app.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/quickstarts/refine" passHref className="col-span-4">
- <GlassPanel
- title="Refine"
- span="col-span-6"
- background={false}
- icon="/docs/img/icons/refine-icon"
- >
+ <Link
+ href="/guides/getting-started/quickstarts/refine"
+ passHref
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ >
+ <GlassPanel title="Refine" icon="/docs/img/icons/refine-icon">
Learn how to create a Supabase project, add some sample data to your database, and query the
data from a Refine app.
</GlassPanel>
@@ -236,92 +227,74 @@ hideToc: true
### Web app demos
<div className="grid lg:grid-cols-12 gap-6 not-prose">
- <Link href="/guides/getting-started/tutorials/with-nextjs" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-nextjs" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="Next.js"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/nextjs-icon"
hasLightIcon={true}
>
Learn how to build a user management app with Next.js and Supabase Database, Auth, and Storage functionality.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/tutorials/with-react" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-react" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="React"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/react-icon"
>
Learn how to build a user management app with React and Supabase Database, Auth, and Storage functionality.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/tutorials/with-vue-3" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-vue-3" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="Vue 3"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/vuejs-icon"
>
Learn how to build a user management app with Vue 3 and Supabase Database, Auth, and Storage functionality.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/tutorials/with-nuxt-3" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-nuxt-3" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="Nuxt 3"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/nuxt-icon"
>
Learn how to build a user management app with Nuxt 3 and Supabase Database, Auth, and Storage functionality.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/tutorials/with-angular" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-angular" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="Angular"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/angular-icon"
>
Learn how to build a user management app with Angular and Supabase Database, Auth, and Storage functionality.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/tutorials/with-redwoodjs" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-redwoodjs" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="RedwoodJS"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/redwood-icon"
>
Learn how to build a user management app with RedwoodJS and Supabase Database, Auth, and Storage functionality.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/tutorials/with-svelte" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-svelte" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="Svelte"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/svelte-icon"
>
Learn how to build a user management app with Svelte and Supabase Database, Auth, and Storage functionality.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/tutorials/with-sveltekit" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-sveltekit" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="SvelteKit"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/svelte-icon"
>
Learn how to build a user management app with SvelteKit and Supabase Database, Auth, and Storage functionality.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/tutorials/with-refine" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-refine" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="Refine"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/refine-icon"
>
Learn how to build a user management app with Refine and Supabase Database, Auth, and Storage functionality.
@@ -336,11 +309,9 @@ hideToc: true
<div className="grid lg:grid-cols-12 gap-6 not-prose">
<$Show if="sdk:dart">
- <Link href="/guides/getting-started/tutorials/with-flutter" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-flutter" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="Flutter"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/flutter-icon"
>
Learn how to build a user management app with Flutter and Supabase Database, Auth, and Storage functionality.
@@ -350,12 +321,10 @@ hideToc: true
<Link
href="/guides/getting-started/tutorials/with-expo-react-native"
passHref
- className="col-span-4"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
>
<GlassPanel
title="Expo React Native"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/expo-icon"
hasLightIcon={true}
>
@@ -365,12 +334,10 @@ hideToc: true
<Link
href="/guides/auth/quickstarts/with-expo-react-native-social-auth"
passHref
- className="col-span-4"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
>
<GlassPanel
title="Expo React Native Social Auth"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/expo-icon"
hasLightIcon={true}
>
@@ -378,11 +345,9 @@ hideToc: true
</GlassPanel>
</Link>
<$Show if="sdk:kotlin">
- <Link href="/guides/getting-started/tutorials/with-kotlin" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-kotlin" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="Android Kotlin"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/kotlin-icon"
>
Learn how to build a product management app with Android and Supabase Database, Auth, and Storage functionality.
@@ -390,32 +355,26 @@ hideToc: true
</Link>
</$Show>
<$Show if="sdk:swift">
- <Link href="/guides/getting-started/tutorials/with-swift" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-swift" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="iOS Swift"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/swift-icon"
>
Learn how to build a user management app with iOS and Supabase Database, Auth, and Storage functionality.
</GlassPanel>
</Link>
</$Show>
- <Link href="/guides/getting-started/tutorials/with-ionic-react" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-ionic-react" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="Ionic React"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/ionic-icon"
>
Learn how to build a user management app with Ionic React and Supabase Database, Auth, and Storage functionality.
</GlassPanel>
</Link>
- <Link href="/guides/getting-started/tutorials/with-ionic-vue" passHref className="col-span-4">
+ <Link href="/guides/getting-started/tutorials/with-ionic-vue" passHref className="col-span-12 md:col-span-6 xl:col-span-4">
<GlassPanel
title="Ionic Vue"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/ionic-icon"
>
Learn how to build a user management app with Ionic Vue and Supabase Database, Auth, and Storage functionality.
@@ -424,12 +383,10 @@ hideToc: true
<Link
href="/guides/getting-started/tutorials/with-ionic-angular"
passHref
- className="col-span-4"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
>
<GlassPanel
title="Ionic Angular"
- span="col-span-6"
- background={false}
icon="/docs/img/icons/ionic-icon"
>
Learn how to build a user management app with Ionic Angular and Supabase Database, Auth, and Storage functionality.
diff --git a/apps/docs/content/guides/platform/migrating-to-supabase.mdx b/apps/docs/content/guides/platform/migrating-to-supabase.mdx
index f4715f672cf..aa9bab411f3 100644
--- a/apps/docs/content/guides/platform/migrating-to-supabase.mdx
+++ b/apps/docs/content/guides/platform/migrating-to-supabase.mdx
@@ -15,7 +15,6 @@ Learn how to migrate to Supabase from another database service.
icon={page.icon}
title={page.name}
hasLightIcon={page.hasLightIcon}
- background={false}
className="[&>div]:p-4"
/>
</Link>
diff --git a/apps/docs/content/guides/resources.mdx b/apps/docs/content/guides/resources.mdx
index 3ebd7d7c6f8..6e29ac25665 100644
--- a/apps/docs/content/guides/resources.mdx
+++ b/apps/docs/content/guides/resources.mdx
@@ -11,13 +11,17 @@ hideToc: true
<div>
<div className="grid grid-cols-12 gap-6 not-prose">
- <Link href="/guides/resources/examples" className="col-span-12 md:col-span-4" passHref>
- <GlassPanel title="Examples" hasLightIcon={true} background={false} showIconBg={true}>
+ <Link href="/guides/getting-started" className="col-span-12 md:col-span-6 xl:col-span-4" passHref>
+ <GlassPanel title="Examples" hasLightIcon={true} showIconBg={true}>
Official GitHub examples, curated content from the community, and more.
</GlassPanel>
</Link>
- <Link href="/guides/resources/glossary" className="col-span-12 md:col-span-4" passHref>
- <GlassPanel title="Glossary" hasLightIcon={true} background={false} showIconBg={true}>
+ <Link
+ href="/guides/resources/glossary"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ passHref
+ >
+ <GlassPanel title="Glossary" hasLightIcon={true} showIconBg={true}>
Definitions for terminology and acronyms used in the Supabase documentation.
</GlassPanel>
</Link>
@@ -34,155 +38,94 @@ hideToc: true
<div className="grid grid-cols-12 gap-6 not-prose">
<Link
- href="/guides/resources/migrating-to-supabase/auth0"
- className="col-span-6 md:col-span-3"
+ href="/guides/platform/migrating-to-supabase/auth0"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <IconPanel
- title="Auth0"
- icon="/docs/img/icons/auth0-icon"
- hasLightIcon={true}
- background={true}
- showIconBg={true}
- showLink={true}
- >
+ <GlassPanel title="Auth0" icon="/docs/img/icons/auth0-icon" hasLightIcon={true}>
Move your auth users from Auth0 to a Supabase project.
- </IconPanel>
+ </GlassPanel>
</Link>
<Link
- href="/guides/resources/migrating-to-supabase/firebase-auth"
- className="col-span-6 md:col-span-3"
+ href="/guides/platform/migrating-to-supabase/firebase-auth"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <IconPanel
- title="Firebase Auth"
- icon="/docs/img/icons/firebase-icon"
- background={true}
- showIconBg={true}
- showLink={true}
- >
+ <GlassPanel title="Firebase Auth" icon="/docs/img/icons/firebase-icon">
Move your auth users from a Firebase project to a Supabase project.
- </IconPanel>
+ </GlassPanel>
</Link>
<Link
- href="/guides/resources/migrating-to-supabase/firestore-data"
- className="col-span-6 md:col-span-3"
+ href="/guides/platform/migrating-to-supabase/firestore-data"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <IconPanel
- title="Firestore Data"
- icon="/docs/img/icons/firebase-icon"
- background={true}
- showIconBg={true}
- showLink={true}
- >
+ <GlassPanel title="Firestore Data" icon="/docs/img/icons/firebase-icon">
Migrate the contents of a Firestore collection to a single Postgres table.
- </IconPanel>
+ </GlassPanel>
</Link>
<Link
- href="/guides/resources/migrating-to-supabase/firebase-storage"
- className="col-span-6 md:col-span-3"
+ href="/guides/platform/migrating-to-supabase/firebase-storage"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <IconPanel
- title="Firebase Storage"
- icon="/docs/img/icons/firebase-icon"
- background={true}
- showIconBg={true}
- showLink={true}
- >
+ <GlassPanel title="Firebase Storage" icon="/docs/img/icons/firebase-icon">
Convert your Firebase Storage files to Supabase Storage.
- </IconPanel>
+ </GlassPanel>
</Link>
<Link
- href="/guides/resources/migrating-to-supabase/heroku"
- className="col-span-6 md:col-span-3"
+ href="/guides/platform/migrating-to-supabase/heroku"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <IconPanel
- title="Heroku"
- icon="/docs/img/icons/heroku-icon"
- background={true}
- showIconBg={true}
- showLink={true}
- >
+ <GlassPanel title="Heroku" icon="/docs/img/icons/heroku-icon">
Migrate your Heroku Postgres database to Supabase.
- </IconPanel>
+ </GlassPanel>
</Link>
<Link
- href="/guides/resources/migrating-to-supabase/render"
- className="col-span-6 md:col-span-3"
+ href="/guides/platform/migrating-to-supabase/render"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <IconPanel
- title="Render"
- icon="/docs/img/icons/render-icon"
- background={true}
- showIconBg={true}
- showLink={true}
- >
+ <GlassPanel title="Render" icon="/docs/img/icons/render-icon">
Migrate your Render Postgres database to Supabase.
- </IconPanel>
+ </GlassPanel>
</Link>
<Link
- href="/guides/resources/migrating-to-supabase/amazon-rds"
- className="col-span-6 md:col-span-3"
+ href="/guides/platform/migrating-to-supabase/amazon-rds"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <IconPanel
- title="Amazon RDS"
- icon="/docs/img/icons/aws-rds-icon"
- background={true}
- showIconBg={true}
- showLink={true}
- >
+ <GlassPanel title="Amazon RDS" icon="/docs/img/icons/aws-rds-icon">
Migrate your Amazon RDS database to Supabase.
- </IconPanel>
+ </GlassPanel>
</Link>
<Link
- href="/guides/resources/migrating-to-supabase/postgres"
- className="col-span-6 md:col-span-3"
+ href="/guides/platform/migrating-to-supabase/postgres"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <IconPanel
- title="Postgres"
- icon="/docs/img/icons/postgres-icon"
- background={true}
- showIconBg={true}
- showLink={true}
- >
+ <GlassPanel title="Postgres" icon="/docs/img/icons/postgres-icon">
Migrate your Postgres database to Supabase.
- </IconPanel>
+ </GlassPanel>
</Link>
<Link
- href="/guides/resources/migrating-to-supabase/mysql"
- className="col-span-6 md:col-span-3"
+ href="/guides/platform/migrating-to-supabase/mysql"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <IconPanel
- title="MySQL"
- icon="/docs/img/icons/mysql-icon"
- background={true}
- showIconBg={true}
- showLink={true}
- >
+ <GlassPanel title="MySQL" icon="/docs/img/icons/mysql-icon">
Migrate your MySQL database to Supabase.
- </IconPanel>
+ </GlassPanel>
</Link>
<Link
- href="/guides/resources/migrating-to-supabase/mssql"
- className="col-span-6 md:col-span-3"
+ href="/guides/platform/migrating-to-supabase/mssql"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <IconPanel
- title="Microsoft SQL Server"
- icon="/docs/img/icons/mssql-icon"
- background={true}
- showIconBg={true}
- showLink={true}
- >
+ <GlassPanel title="Microsoft SQL Server" icon="/docs/img/icons/mssql-icon">
Migrate your Microsoft SQL Server database to Supabase.
- </IconPanel>
+ </GlassPanel>
</Link>
</div>
@@ -196,59 +139,48 @@ hideToc: true
</div>
<div className="grid grid-cols-12 gap-6 not-prose">
- <Link href="/guides/database/postgres/indexes" className="col-span-12 md:col-span-4" passHref>
- <GlassPanel title="Managing Indexes" hasLightIcon={true} background={false} showIconBg={true}>
+ <Link
+ href="/guides/database/postgres/indexes"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
+ passHref
+ >
+ <GlassPanel title="Managing Indexes" hasLightIcon={true} showIconBg={true}>
Improve query performance using various index types in Postgres.
</GlassPanel>
</Link>
<Link
href="/guides/database/postgres/cascade-deletes"
- className="col-span-12 md:col-span-4"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <GlassPanel title="Cascade Deletes" hasLightIcon={true} background={false} showIconBg={true}>
+ <GlassPanel title="Cascade Deletes" hasLightIcon={true} showIconBg={true}>
Understand the types of foreign key constraint deletes.
</GlassPanel>
</Link>
<Link
href="/guides/database/postgres/dropping-all-tables-in-schema"
- className="col-span-12 md:col-span-4"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <GlassPanel
- title="Drop all tables in schema"
- hasLightIcon={true}
- background={false}
- showIconBg={true}
- >
+ <GlassPanel title="Drop all tables in schema" hasLightIcon={true} showIconBg={true}>
Delete all tables in a given schema.
</GlassPanel>
</Link>
<Link
href="/guides/database/postgres/first-row-in-group"
- className="col-span-12 md:col-span-4"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <GlassPanel
- title="Select first row per group"
- hasLightIcon={true}
- background={false}
- showIconBg={true}
- >
+ <GlassPanel title="Select first row per group" hasLightIcon={true} showIconBg={true}>
Retrieve the first row in each distinct group.
</GlassPanel>
</Link>
<Link
href="/guides/database/postgres/which-version-of-postgres"
- className="col-span-12 md:col-span-4"
+ className="col-span-12 md:col-span-6 xl:col-span-4"
passHref
>
- <GlassPanel
- title="Print Postgres version"
- hasLightIcon={true}
- background={false}
- showIconBg={true}
- >
+ <GlassPanel title="Print Postgres version" hasLightIcon={true} showIconBg={true}>
Find out which version of Postgres you are running.
</GlassPanel>
</Link>
diff --git a/apps/docs/features/docs/MdxBase.shared.tsx b/apps/docs/features/docs/MdxBase.shared.tsx
index 7c9dc4372c7..78d5347b573 100644
--- a/apps/docs/features/docs/MdxBase.shared.tsx
+++ b/apps/docs/features/docs/MdxBase.shared.tsx
@@ -36,7 +36,6 @@ import { type ComponentPropsWithoutRef } from 'react'
import { Badge, Button } from 'ui'
import { Admonition, type AdmonitionProps } from 'ui-patterns/Admonition'
import { GlassPanel } from 'ui-patterns/GlassPanel'
-import { IconPanel } from 'ui-patterns/IconPanel'
import SqlToRest from 'ui-patterns/SqlToRest'
import { Heading } from 'ui/src/components/CustomHTMLElements'
@@ -91,7 +90,6 @@ const components = {
GlassPanel,
IconArrowDown: ArrowDown,
IconCheck: Check,
- IconPanel,
IconX: X,
Image: (props: ImageProps) => <Image className="rounded-md w-full" {...props} />,
Link,
diff --git a/apps/docs/features/ui/IconLink.tsx b/apps/docs/features/ui/IconLink.tsx
index 4d6420d49b2..cde78973fd6 100644
--- a/apps/docs/features/ui/IconLink.tsx
+++ b/apps/docs/features/ui/IconLink.tsx
@@ -1,6 +1,6 @@
import MenuIconPicker from '~/components/Navigation/NavigationMenu/MenuIconPicker'
import Link from 'next/link'
-import { type ReactNode } from 'react'
+import { type ButtonHTMLAttributes, type ReactNode } from 'react'
import { cn } from 'ui'
const sizeStyles = {
@@ -23,55 +23,103 @@ export type IconLinkItem = {
className?: string
}
-export function IconLink({
- href,
+const iconLinkClassName =
+ 'group relative -m-3 flex items-center gap-3 rounded-xl p-3 no-underline transition-colors hover:bg-accent focus-ring focus-visible:bg-accent'
+
+function IconLinkContent({
title,
icon,
size = 'sm',
- className,
}: {
- href: string
title: string
icon: ReactNode
size?: IconLinkSize
- className?: string
}) {
return (
- <Link
- href={href}
- className={cn(
- 'group relative -m-3 flex items-center gap-3 rounded-xl p-3 no-underline transition-colors hover:bg-accent',
- className
- )}
- >
+ <>
<div
className={cn(
- 'flex shrink-0 items-center justify-center overflow-hidden rounded-lg border bg-surface-100 transition-colors group-hover:border-strong',
+ 'flex shrink-0 items-center justify-center overflow-hidden rounded-lg border bg-surface-100 transition-colors group-hover:border-strong group-focus-visible:border-strong',
sizeStyles[size].tile
)}
>
{icon}
</div>
<span className="text-base text-foreground">{title}</span>
+ </>
+ )
+}
+
+export function IconLink({
+ href,
+ title,
+ icon,
+ size = 'sm',
+ className,
+}: {
+ href: string
+ title: string
+ icon: ReactNode
+ size?: IconLinkSize
+ className?: string
+}) {
+ return (
+ <Link href={href} className={cn(iconLinkClassName, className)}>
+ <IconLinkContent title={title} icon={icon} size={size} />
</Link>
)
}
+export function IconLinkButton({
+ title,
+ icon,
+ size = 'sm',
+ className,
+ disabled,
+ tabIndex,
+ ...props
+}: {
+ title: string
+ icon: ReactNode
+ size?: IconLinkSize
+ className?: string
+} & ButtonHTMLAttributes<HTMLButtonElement>) {
+ return (
+ <button
+ type="button"
+ disabled={disabled}
+ tabIndex={tabIndex ?? (disabled ? -1 : 0)}
+ className={cn(iconLinkClassName, 'w-full text-left', className)}
+ {...props}
+ >
+ <IconLinkContent title={title} icon={icon} size={size} />
+ </button>
+ )
+}
+
export function IconLinkList({
items,
labelledBy,
+ label,
className,
itemClassName = 'col-span-6 md:col-span-4',
size = 'sm',
}: {
items: IconLinkItem[]
+ /** Prefer when a visible heading is the list’s name. */
labelledBy?: string
+ /** Prefer when the nearby heading is section/setup copy, not a list title. */
+ label?: string
className?: string
itemClassName?: string
size?: IconLinkSize
}) {
return (
- <ul className={cn('grid grid-cols-12 gap-6', className)} aria-labelledby={labelledBy}>
+ <ul
+ className={cn('grid grid-cols-12 gap-6', className)}
+ aria-labelledby={labelledBy}
+ aria-label={label}
+ >
{items.map((item) => (
<li key={item.href} className={cn(itemClassName, item.className)}>
<IconLink href={item.href} title={item.title} icon={item.icon} size={size} />
diff --git a/apps/docs/internals/generate-guides-markdown.ts b/apps/docs/internals/generate-guides-markdown.ts
index 662b5c4bf4a..c7d94bce7f0 100644
--- a/apps/docs/internals/generate-guides-markdown.ts
+++ b/apps/docs/internals/generate-guides-markdown.ts
@@ -199,7 +199,6 @@ const SCHEMA: ComponentSchema = {
Price,
...PromptPanel,
GlassPanel: Panel,
- IconPanel: Panel,
RealtimeLimitsEstimator,
RegionsList,
SmartRegionsList,
diff --git a/apps/www/pages/customers.tsx b/apps/www/pages/customers.tsx
index 96b4933890d..3cb92c9dcb1 100644
--- a/apps/www/pages/customers.tsx
+++ b/apps/www/pages/customers.tsx
@@ -159,13 +159,7 @@ function CustomerStoriesPage(props: any) {
},
}}
>
- <GlassPanel
- {...caseStudy}
- background={true}
- showIconBg={true}
- showLink={true}
- hasLightIcon
- >
+ <GlassPanel {...caseStudy} showIconBg={true} showLink={true} hasLightIcon>
{caseStudy.description}
</GlassPanel>
</motion.a>
diff --git a/packages/ui-patterns/package.json b/packages/ui-patterns/package.json
index 1955a7f3195..acae169ac44 100644
--- a/packages/ui-patterns/package.json
+++ b/packages/ui-patterns/package.json
@@ -394,10 +394,6 @@
"import": "./src/GlassPanel/index.tsx",
"types": "./src/GlassPanel/index.tsx"
},
- "./IconPanel": {
- "import": "./src/IconPanel/index.tsx",
- "types": "./src/IconPanel/index.tsx"
- },
"./Image/Image": {
"import": "./src/Image/Image.tsx",
"types": "./src/Image/Image.tsx"
diff --git a/packages/ui-patterns/src/GlassPanel/index.tsx b/packages/ui-patterns/src/GlassPanel/index.tsx
index 9fcf7d7586f..430a8d48bb4 100644
--- a/packages/ui-patterns/src/GlassPanel/index.tsx
+++ b/packages/ui-patterns/src/GlassPanel/index.tsx
@@ -7,10 +7,11 @@ import { cn } from 'ui'
interface Props {
title: string
+ /** Brand/company name for logo alt text when the logo is the only place that name appears. */
+ name?: string
icon?: string | React.ReactNode
children?: React.ReactNode
header?: string
- background?: boolean
className?: string
logo?: string
logoInverse?: string
@@ -41,18 +42,18 @@ const LogoComponent = ({
logoImage,
className,
wrapperClassName,
- title,
+ alt,
}: {
- title: string
logoImage: string
className?: string
wrapperClassName?: string
+ alt: string
}) => (
- <div className={cn('relative box-content p-8 pb-0', wrapperClassName)}>
+ <div className={cn('relative box-content p-4 pb-0 md:p-6 md:pb-0', wrapperClassName)}>
<div className="relative h-[33px] w-auto max-w-[145px]">
<Image
src={logoImage}
- alt={title}
+ alt={alt}
fill
sizes="100%"
className={cn('object-contain object-left', className)}
@@ -63,10 +64,10 @@ const LogoComponent = ({
export const GlassPanel = ({
title,
+ name,
icon,
children,
header,
- background = true,
logo,
logoInverse,
hasLightIcon,
@@ -76,36 +77,34 @@ export const GlassPanel = ({
className,
}: Props) => {
const { resolvedTheme } = useTheme()
+ const logoAlt = name ?? ''
return (
<div
className={cn(
'relative',
'h-full',
- 'group',
'cursor-pointer',
'overflow-hidden',
'border rounded-lg',
'text-left',
- background
- ? 'hover:border-strong bg-surface-75'
- : 'border-muted hover:border-default bg-transparent',
+ 'bg-surface-75 hover:border-strong',
'transition',
className
)}
>
{logoInverse && (
<LogoComponent
- title={title}
logoImage={logoInverse}
+ alt={logoAlt}
className="opacity-50"
wrapperClassName="hidden dark:block"
/>
)}
{logo && (
<LogoComponent
- title={title}
logoImage={logo}
+ alt={logoAlt}
className="opacity-75"
wrapperClassName={logoInverse ? 'block dark:hidden' : undefined}
/>
@@ -119,16 +118,12 @@ export const GlassPanel = ({
"
/>
)}
- {/* <div
- className="absolute left-0 top-0 w-[250px] h-[150px] transform scale-100 opacity-50 group-hover:scale-150 group-hover:opacity-100 transition-all duration-700 ease-out"
- style={{ background: `radial-gradient(100% 100% at 0% 0%, #3EACCF18, transparent)` }}
- /> */}
<div
className={cn(
- 'px-8 pb-8 relative',
+ 'relative px-4.5 py-4 md:px-5.5 md:py-5.5',
'flex flex-col h-full',
- icon ? 'gap-6' : 'gap-2',
- !header ? 'pt-8' : ''
+ icon ? 'gap-3' : 'gap-2',
+ header && 'pt-0'
)}
>
<div className="flex items-center gap-3">
@@ -136,7 +131,7 @@ export const GlassPanel = ({
<IconBackground showIconBg={showIconBg}>
<img
className="w-5"
- alt={title}
+ alt=""
src={`${icon}${
hasLightIcon && !resolvedTheme?.includes('dark') ? '-light' : ''
}.svg`}
diff --git a/packages/ui-patterns/src/IconPanel/index.tsx b/packages/ui-patterns/src/IconPanel/index.tsx
deleted file mode 100644
index 05fec9834e6..00000000000
--- a/packages/ui-patterns/src/IconPanel/index.tsx
+++ /dev/null
@@ -1,115 +0,0 @@
-'use client'
-
-import { ChevronRight } from 'lucide-react'
-import { useTheme } from 'next-themes'
-import * as React from 'react'
-import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
-
-interface Props {
- title?: string
- tooltip?: string
-
- icon?: string | React.ReactNode
- iconSize?: 'sm' | 'lg'
- children?: React.ReactNode
-
- background?: boolean
-
- hasLightIcon?: boolean
-
- showLink?: boolean
-}
-
-export const IconPanel = ({
- title,
- tooltip,
- icon,
- iconSize = 'sm',
- children,
- background = true,
- hasLightIcon,
- showLink = false,
-}: Props) => {
- const { theme } = useTheme()
-
- const IconContainer: React.FC<React.PropsWithChildren> = (props) => {
- return (
- <div
- className={[
- 'relative',
- 'flex items-center justify-center shrink-0',
- iconSize === 'lg' ? 'h-16 w-16 rounded-lg' : 'h-10 w-10 rounded-lg',
- 'group',
- 'cursor-pointer',
- 'overflow-hidden',
- 'border rounded-full',
- background
- ? 'hover:border-strong bg-surface-100'
- : 'border-muted hover:border-default bg-transparent',
- 'transition',
- ].join(' ')}
- >
- {props.children}
- </div>
- )
- }
-
- return (
- <Tooltip>
- <TooltipTrigger asChild>
- <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' : 'items-center',
- (title || showLink) && 'gap-3',
- ].join(' ')}
- >
- {typeof icon === 'string' ? (
- <IconContainer>
- <img
- className={iconSize === 'lg' ? 'w-8' : 'w-5'}
- src={`${icon}${hasLightIcon && theme !== 'dark' ? '-light' : ''}.svg`}
- alt={
- title !== undefined
- ? `${title} Icon`
- : tooltip !== undefined
- ? `${tooltip} Icon`
- : 'Icon'
- }
- />
- </IconContainer>
- ) : (
- <IconContainer>{icon}</IconContainer>
- )}
- <div className="flex flex-col gap-1">
- <div className="flex items-center gap-3">
- {title && <h5 className="text-base text-foreground m-0">{title}</h5>}
- </div>
- {children && (
- <span className="text-sm text-foreground-light not-prose">{children}</span>
- )}
- {showLink && (
- <span className="text-brand-link justify-end text-sm">Learn more</span>
- )}
- </div>
- </div>
- </div>
- <div
- className="
- absolute transition-all ease-in
- -z-10 -inset-3 rounded-2xl
- bg-surface-100 opacity-0 peer-hover:opacity-100"
- ></div>
- </div>
- </TooltipTrigger>
-
- {tooltip && (
- <TooltipContent side="top" className="">
- {tooltip}
- </TooltipContent>
- )}
- </Tooltip>
- )
-}