The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: screen reader accessibility of homepage (#20654)
Charis2ee8fb8c41b7
diff --git a/apps/docs/components/CustomHTMLElements/Heading.tsx b/apps/docs/components/CustomHTMLElements/Heading.tsxindex 7ef568146cd..bb3eed1a3d9 100644--- a/apps/docs/components/CustomHTMLElements/Heading.tsx+++ b/apps/docs/components/CustomHTMLElements/Heading.tsx@@ -46,8 +46,12 @@ const Heading: React.FC<React.PropsWithChildren<Props>> = ({ tag, customAnchor,<HeadingTag id={anchor} ref={ref} className="group scroll-mt-24">{removeAnchor(children)}{anchor && (- <a href={link} className="ml-2 opacity-0 group-hover:opacity-100 transition">- #+ <a+ href={link}+ aria-hidden="true"+ className="ml-2 opacity-0 group-hover:opacity-100 transition"+ >+ <span aria-hidden="true">#</span></a>)}</HeadingTag>diff --git a/apps/docs/components/DocsCoverLogo.tsx b/apps/docs/components/DocsCoverLogo.tsxindex 5332c59c958..0e8965c50b6 100644--- a/apps/docs/components/DocsCoverLogo.tsx+++ b/apps/docs/components/DocsCoverLogo.tsx@@ -1,7 +1,7 @@-import React from 'react'+import React, { type PropsWithChildren } from 'react'import { LazyMotion, domAnimation, m } from 'framer-motion'-const DocsCoverLogo = () => {+const DocsCoverLogo = (props: PropsWithChildren) => {const pathMotionConfig = {initial: { pathLength: 0 },animate: { pathLength: 1 },@@ -22,7 +22,7 @@ const DocsCoverLogo = () => {}return (- <div className="w-[60px] md:w-[150px] [&_svg]">+ <div className="w-[60px] md:w-[150px] [&_svg]" {...props}><LazyMotion features={domAnimation}><m.svgwidth="100%"diff --git a/apps/docs/components/HomePageCover.tsx b/apps/docs/components/HomePageCover.tsxindex c1bc39f7144..d9a603be207 100644--- a/apps/docs/components/HomePageCover.tsx+++ b/apps/docs/components/HomePageCover.tsx@@ -74,9 +74,9 @@ const HomePageCover = (props) => {<div className="md:max-w-xs shrink w-fit xl:max-w-none"><div className="flex items-center gap-3 mb-3"><IconBackground>- <IconPlay className="text-brand w-4" strokeWidth={2} />+ <IconPlay aria-hidden="true" className="text-brand w-4" strokeWidth={2} /></IconBackground>- <h3 className="text-2xl m-0 text-foreground">Getting Started</h3>+ <h2 className="text-2xl m-0 text-foreground">Getting Started</h2></div><p className="text-foreground-light text-sm">Discover how to set up a database to an app making queries in just a few minutes.@@ -102,7 +102,7 @@ const HomePageCover = (props) => {<div className="w-full bg-alternative border-b max-w-none mb-16 md:mb-12 xl:mb-0"><div className="max-w-7xl px-5 mx-auto py-8 sm:pb-16 sm:pt-12 xl:pt-16 flex flex-col xl:flex-row justify-between gap-12 xl:gap-12"><div className="flex flex-col sm:flex-row gap-4 sm:gap-8 items-start sm:items-center w-full max-w-xl xl:max-w-[33rem]">- <DocsCoverLogo />+ <DocsCoverLogo aria-hidden="true" /><div className="flex flex-col"><h1 className="m-0 mb-3 text-2xl sm:text-3xl text-foreground">{props.meta?.title}</h1><p className="m-0 text-foreground-light">diff --git a/apps/docs/components/IPv4DeprecationBanner.tsx b/apps/docs/components/IPv4DeprecationBanner.tsxindex e8df148589b..f44662e2069 100644--- a/apps/docs/components/IPv4DeprecationBanner.tsx+++ b/apps/docs/components/IPv4DeprecationBanner.tsx@@ -5,7 +5,11 @@ import { Button, IconExternalLink, cn } from 'ui'export const IPv4DeprecationBanner = memo(() => {return (- <div className="flex items-center justify-center gap-x-4 bg-surface-100 p-2 transition text-foreground box-border border-b border-default">+ <div+ role="region"+ aria-label="Deprecation notice"+ className="flex items-center justify-center gap-x-4 bg-surface-100 p-2 transition text-foreground box-border border-b border-default"+ ><p className="text-sm">Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024{' '}<Linkdiff --git a/apps/docs/components/Navigation/Footer.tsx b/apps/docs/components/Navigation/Footer.tsxindex 640b28b341c..51c9eca968f 100644--- a/apps/docs/components/Navigation/Footer.tsx+++ b/apps/docs/components/Navigation/Footer.tsx@@ -5,11 +5,98 @@ import { LayoutMainContent } from '~/layouts/DefaultLayout'const Footer = () => (<LayoutMainContent className="pt-0">- <div className="mt-16">- <ul className="flex flex-col gap-2">- {primaryLinks.map(({ url, featherIcon: Icon, icon, text, ctaLabel }) => (- <li key={url} className="flex items-center gap-1 text-xs text-foreground-lighter">- {icon && (+ <footer role="contentinfo" aria-label="footer">+ <div className="mt-16">+ <ul className="flex flex-col gap-2">+ {primaryLinks.map(({ url, featherIcon: Icon, icon, text, ctaLabel }) => (+ <li key={url} className="flex items-center gap-1 text-xs text-foreground-lighter">+ {icon && (+ <svg+ aria-hidden="true"+ width="16"+ height="17"+ viewBox="0 0 16 17"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d={icon}+ stroke="hsl(var(--foreground-muted))"+ strokeWidth={0.7}+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ )}+ {Icon && <Icon aria-hidden="true" width={16} height={16} />}+ <p>{text}</p>+ <Link+ href={url}+ className="text-brand-link hover:underline"+ target="_blank"+ rel="noreferrer noopener"+ >+ {ctaLabel}+ </Link>+ </li>+ ))}+ </ul>+ </div>+ <hr className="border-default my-6"></hr>+ <div className="flex gap-4 items-center justify-between">+ <div className="flex flex-col lg:flex-row gap-3 ">+ <Link href="https://supabase.com/" className="text-xs text-foreground-lighter">+ © Supabase Inc+ </Link>+ <span className="text-xs text-foreground-lighter">—</span>+ {secondaryLinks.map(({ component: Component, ...item }) =>+ item.url ? (+ <Link+ href={item.url}+ key={item.url}+ className="text-xs text-foreground-lighter hover:underline"+ >+ {item.title}+ </Link>+ ) : (+ Component && (+ <Component+ key={item.title}+ className="text-xs text-foreground-lighter hover:underline"+ >+ {item.title}+ </Component>+ )+ )+ )}+ </div>+ <div className="flex items-center gap-2">+ <Button type="text" asChild>+ <a+ href="https://github.com/supabase/supabase"+ target="_blank"+ rel="noreferrer noopener"+ >+ <span className="sr-only">GitHub</span>+ <svg+ width="17"+ height="17"+ viewBox="0 0 17 17"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M8.66832 1.55469C4.98649 1.55469 2.00195 4.54402 2.00195 8.23269C2.00195 11.1827 3.91187 13.686 6.56108 14.5687C6.8944 14.63 7.01573 14.424 7.01573 14.2467C7.01573 14.0887 7.0104 13.668 7.00706 13.1114C5.15248 13.5147 4.76116 12.216 4.76116 12.216C4.45851 11.444 4.0212 11.2387 4.0212 11.2387C3.41589 10.8254 4.06719 10.8334 4.06719 10.8334C4.73583 10.88 5.08782 11.5214 5.08782 11.5214C5.68246 12.5414 6.64841 12.2467 7.02773 12.076C7.08906 11.6447 7.26105 11.3507 7.45171 11.184C5.97178 11.0154 4.41518 10.442 4.41518 7.88335C4.41518 7.15469 4.67517 6.55802 5.10115 6.09135C5.03248 5.92269 4.80383 5.24335 5.16648 4.32469C5.16648 4.32469 5.72645 4.14469 6.99973 5.00869C7.54355 4.86036 8.10464 4.78482 8.66832 4.78402C9.23496 4.78669 9.80494 4.86069 10.3376 5.00869C11.6102 4.14469 12.1688 4.32402 12.1688 4.32402C12.5328 5.24335 12.3035 5.92269 12.2355 6.09135C12.6621 6.55802 12.9208 7.15469 12.9208 7.88335C12.9208 10.4487 11.3615 11.0134 9.87694 11.1787C10.1163 11.3847 10.3289 11.792 10.3289 12.4154C10.3289 13.3074 10.3209 14.028 10.3209 14.2467C10.3209 14.4254 10.4409 14.6334 10.7796 14.568C12.107 14.1228 13.261 13.2716 14.0784 12.1347C14.8958 10.9979 15.3353 9.6329 15.3347 8.23269C15.3347 4.54402 12.3495 1.55469 8.66832 1.55469Z"+ fill="hsl(var(--foreground-muted))"+ />+ </svg>+ </a>+ </Button>+ <Button type="text" asChild>+ <span className="sr-only">YouTube</span>+ <a href="https://youtube.com/c/supabase" target="_blank" rel="noreferrer noopener"><svgwidth="16"height="17"@@ -18,139 +105,63 @@ const Footer = () => (xmlns="http://www.w3.org/2000/svg"><path- d={icon}- stroke="hsl(var(--foreground-muted))"- strokeWidth={0.7}- strokeLinecap="round"- strokeLinejoin="round"+ d="M15.665 4.35595C15.481 3.66308 14.9388 3.11739 14.2505 2.93221C13.0028 2.5957 7.99964 2.5957 7.99964 2.5957C7.99964 2.5957 2.99655 2.5957 1.74883 2.93221C1.06047 3.11742 0.518326 3.66308 0.334321 4.35595C0 5.61181 0 8.23207 0 8.23207C0 8.23207 0 10.8523 0.334321 12.1082C0.518326 12.8011 1.06047 13.324 1.74883 13.5092C2.99655 13.8457 7.99964 13.8457 7.99964 13.8457C7.99964 13.8457 13.0027 13.8457 14.2505 13.5092C14.9388 13.324 15.481 12.8011 15.665 12.1082C15.9993 10.8523 15.9993 8.23207 15.9993 8.23207C15.9993 8.23207 15.9993 5.61181 15.665 4.35595ZM6.36334 10.6111V5.85307L10.545 8.23212L6.36334 10.6111Z"+ fill="hsl(var(--foreground-muted))"/></svg>- )}- {Icon && <Icon width={16} height={16} />}- <p>{text}</p>- <Link- href={url}- className="text-brand-link hover:underline"- target="_blank"- rel="noreferrer noopener"- >- {ctaLabel}- </Link>- </li>- ))}- </ul>- </div>- <hr className="border-default my-6"></hr>- <div className="flex gap-4 items-center justify-between">- <div className="flex flex-col lg:flex-row gap-3 ">- <Link href="https://supabase.com/" className="text-xs text-foreground-lighter">- © Supabase Inc- </Link>- <span className="text-xs text-foreground-lighter">—</span>- {secondaryLinks.map(({ component: Component, ...item }) =>- item.url ? (- <Link- href={item.url}- key={item.url}- className="text-xs text-foreground-lighter hover:underline"- >- {item.title}- </Link>- ) : (- Component && (- <Component- key={item.title}- className="text-xs text-foreground-lighter hover:underline"+ </a>+ </Button>+ <Button type="text" asChild>+ <a href="https://twitter.com/supabase" target="_blank" rel="noreferrer noopener">+ <span className="sr-only">Twitter</span>+ <svg+ width="15"+ height="15"+ viewBox="0 0 24 24"+ fill="none"+ xmlns="http://www.w3.org/2000/svg">- {item.title}- </Component>- )- )- )}- </div>- <div className="flex items-center gap-2">- <Button type="text" asChild>- <a href="https://github.com/supabase/supabase" target="_blank" rel="noreferrer noopener">- <svg- width="17"- height="17"- viewBox="0 0 17 17"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <path- fillRule="evenodd"- clipRule="evenodd"- d="M8.66832 1.55469C4.98649 1.55469 2.00195 4.54402 2.00195 8.23269C2.00195 11.1827 3.91187 13.686 6.56108 14.5687C6.8944 14.63 7.01573 14.424 7.01573 14.2467C7.01573 14.0887 7.0104 13.668 7.00706 13.1114C5.15248 13.5147 4.76116 12.216 4.76116 12.216C4.45851 11.444 4.0212 11.2387 4.0212 11.2387C3.41589 10.8254 4.06719 10.8334 4.06719 10.8334C4.73583 10.88 5.08782 11.5214 5.08782 11.5214C5.68246 12.5414 6.64841 12.2467 7.02773 12.076C7.08906 11.6447 7.26105 11.3507 7.45171 11.184C5.97178 11.0154 4.41518 10.442 4.41518 7.88335C4.41518 7.15469 4.67517 6.55802 5.10115 6.09135C5.03248 5.92269 4.80383 5.24335 5.16648 4.32469C5.16648 4.32469 5.72645 4.14469 6.99973 5.00869C7.54355 4.86036 8.10464 4.78482 8.66832 4.78402C9.23496 4.78669 9.80494 4.86069 10.3376 5.00869C11.6102 4.14469 12.1688 4.32402 12.1688 4.32402C12.5328 5.24335 12.3035 5.92269 12.2355 6.09135C12.6621 6.55802 12.9208 7.15469 12.9208 7.88335C12.9208 10.4487 11.3615 11.0134 9.87694 11.1787C10.1163 11.3847 10.3289 11.792 10.3289 12.4154C10.3289 13.3074 10.3209 14.028 10.3209 14.2467C10.3209 14.4254 10.4409 14.6334 10.7796 14.568C12.107 14.1228 13.261 13.2716 14.0784 12.1347C14.8958 10.9979 15.3353 9.6329 15.3347 8.23269C15.3347 4.54402 12.3495 1.55469 8.66832 1.55469Z"- fill="hsl(var(--foreground-muted))"- />- </svg>- </a>- </Button>- <Button type="text" asChild>- <a href="https://youtube.com/c/supabase" target="_blank" rel="noreferrer noopener">- <svg- width="16"- height="17"- viewBox="0 0 16 17"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <path- d="M15.665 4.35595C15.481 3.66308 14.9388 3.11739 14.2505 2.93221C13.0028 2.5957 7.99964 2.5957 7.99964 2.5957C7.99964 2.5957 2.99655 2.5957 1.74883 2.93221C1.06047 3.11742 0.518326 3.66308 0.334321 4.35595C0 5.61181 0 8.23207 0 8.23207C0 8.23207 0 10.8523 0.334321 12.1082C0.518326 12.8011 1.06047 13.324 1.74883 13.5092C2.99655 13.8457 7.99964 13.8457 7.99964 13.8457C7.99964 13.8457 13.0027 13.8457 14.2505 13.5092C14.9388 13.324 15.481 12.8011 15.665 12.1082C15.9993 10.8523 15.9993 8.23207 15.9993 8.23207C15.9993 8.23207 15.9993 5.61181 15.665 4.35595ZM6.36334 10.6111V5.85307L10.545 8.23212L6.36334 10.6111Z"- fill="hsl(var(--foreground-muted))"- />- </svg>- </a>- </Button>- <Button type="text" asChild>- <a href="https://twitter.com/supabase" target="_blank" rel="noreferrer noopener">- <svg- width="15"- height="15"- viewBox="0 0 24 24"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <path- d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"- fill="hsl(var(--foreground-muted))"- />- </svg>- </a>- </Button>- <Button type="text" asChild>- <a href="https://discord.supabase.com/" target="_blank" rel="noreferrer noopener">- <svg- width="17"- height="17"- viewBox="0 0 17 17"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <g clipPath="url(#clip0_1182_99731)"><path- fillRule="evenodd"- clipRule="evenodd"- d="M13.8781 3.13594C12.8583 2.66802 11.7648 2.32328 10.6215 2.12583C10.6006 2.12202 10.5798 2.13154 10.5691 2.15059C10.4285 2.40073 10.2727 2.72706 10.1636 2.98356C8.93387 2.79945 7.71044 2.79945 6.50592 2.98356C6.39681 2.72136 6.23538 2.40073 6.09411 2.15059C6.08339 2.13218 6.06259 2.12265 6.04176 2.12583C4.89905 2.32265 3.80554 2.66739 2.78517 3.13594C2.77633 3.13975 2.76876 3.14611 2.76374 3.15435C0.689563 6.25326 0.12136 9.276 0.400102 12.2613C0.401363 12.2759 0.409561 12.2898 0.420913 12.2987C1.78939 13.3037 3.115 13.9139 4.41599 14.3183C4.43681 14.3247 4.45887 14.317 4.47212 14.2999C4.77987 13.8796 5.0542 13.4364 5.28941 12.9704C5.3033 12.9431 5.29005 12.9107 5.26167 12.9C4.82654 12.7349 4.4122 12.5336 4.01364 12.3051C3.98212 12.2867 3.97959 12.2416 4.00859 12.22C4.09247 12.1571 4.17636 12.0917 4.25645 12.0257C4.27094 12.0136 4.29113 12.0111 4.30816 12.0187C6.92655 13.2142 9.76126 13.2142 12.3488 12.0187C12.3658 12.0105 12.386 12.013 12.4011 12.0251C12.4812 12.0911 12.5651 12.1571 12.6496 12.22C12.6786 12.2416 12.6767 12.2867 12.6452 12.3051C12.2466 12.5381 11.8323 12.7349 11.3965 12.8993C11.3681 12.9101 11.3555 12.9431 11.3694 12.9704C11.6097 13.4358 11.884 13.879 12.1861 14.2993C12.1987 14.317 12.2214 14.3247 12.2422 14.3183C13.5495 13.9139 14.8751 13.3037 16.2436 12.2987C16.2556 12.2898 16.2631 12.2765 16.2644 12.2619C16.598 8.8106 15.7056 5.81265 13.8989 3.15498C13.8944 3.14611 13.8869 3.13975 13.8781 3.13594ZM5.68043 10.4435C4.89211 10.4435 4.24257 9.71978 4.24257 8.83093C4.24257 7.94207 4.87952 7.21831 5.68043 7.21831C6.48763 7.21831 7.13089 7.94843 7.11827 8.83093C7.11827 9.71978 6.48132 10.4435 5.68043 10.4435ZM10.9967 10.4435C10.2084 10.4435 9.55884 9.71978 9.55884 8.83093C9.55884 7.94207 10.1958 7.21831 10.9967 7.21831C11.8039 7.21831 12.4471 7.94843 12.4345 8.83093C12.4345 9.71978 11.8039 10.4435 10.9967 10.4435Z"+ d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"fill="hsl(var(--foreground-muted))"/>- </g>- <defs>- <clipPath id="clip0_1182_99731">- <rect- width="15.9993"- height="16"- fill="white"- transform="translate(0.333984 0.222656)"+ </svg>+ </a>+ </Button>+ <Button type="text" asChild>+ <a href="https://discord.supabase.com/" target="_blank" rel="noreferrer noopener">+ <span className="sr-only">Discord</span>+ <svg+ width="17"+ height="17"+ viewBox="0 0 17 17"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <g clipPath="url(#clip0_1182_99731)">+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M13.8781 3.13594C12.8583 2.66802 11.7648 2.32328 10.6215 2.12583C10.6006 2.12202 10.5798 2.13154 10.5691 2.15059C10.4285 2.40073 10.2727 2.72706 10.1636 2.98356C8.93387 2.79945 7.71044 2.79945 6.50592 2.98356C6.39681 2.72136 6.23538 2.40073 6.09411 2.15059C6.08339 2.13218 6.06259 2.12265 6.04176 2.12583C4.89905 2.32265 3.80554 2.66739 2.78517 3.13594C2.77633 3.13975 2.76876 3.14611 2.76374 3.15435C0.689563 6.25326 0.12136 9.276 0.400102 12.2613C0.401363 12.2759 0.409561 12.2898 0.420913 12.2987C1.78939 13.3037 3.115 13.9139 4.41599 14.3183C4.43681 14.3247 4.45887 14.317 4.47212 14.2999C4.77987 13.8796 5.0542 13.4364 5.28941 12.9704C5.3033 12.9431 5.29005 12.9107 5.26167 12.9C4.82654 12.7349 4.4122 12.5336 4.01364 12.3051C3.98212 12.2867 3.97959 12.2416 4.00859 12.22C4.09247 12.1571 4.17636 12.0917 4.25645 12.0257C4.27094 12.0136 4.29113 12.0111 4.30816 12.0187C6.92655 13.2142 9.76126 13.2142 12.3488 12.0187C12.3658 12.0105 12.386 12.013 12.4011 12.0251C12.4812 12.0911 12.5651 12.1571 12.6496 12.22C12.6786 12.2416 12.6767 12.2867 12.6452 12.3051C12.2466 12.5381 11.8323 12.7349 11.3965 12.8993C11.3681 12.9101 11.3555 12.9431 11.3694 12.9704C11.6097 13.4358 11.884 13.879 12.1861 14.2993C12.1987 14.317 12.2214 14.3247 12.2422 14.3183C13.5495 13.9139 14.8751 13.3037 16.2436 12.2987C16.2556 12.2898 16.2631 12.2765 16.2644 12.2619C16.598 8.8106 15.7056 5.81265 13.8989 3.15498C13.8944 3.14611 13.8869 3.13975 13.8781 3.13594ZM5.68043 10.4435C4.89211 10.4435 4.24257 9.71978 4.24257 8.83093C4.24257 7.94207 4.87952 7.21831 5.68043 7.21831C6.48763 7.21831 7.13089 7.94843 7.11827 8.83093C7.11827 9.71978 6.48132 10.4435 5.68043 10.4435ZM10.9967 10.4435C10.2084 10.4435 9.55884 9.71978 9.55884 8.83093C9.55884 7.94207 10.1958 7.21831 10.9967 7.21831C11.8039 7.21831 12.4471 7.94843 12.4345 8.83093C12.4345 9.71978 11.8039 10.4435 10.9967 10.4435Z"+ fill="hsl(var(--foreground-muted))"/>- </clipPath>- </defs>- </svg>- </a>- </Button>+ </g>+ <defs>+ <clipPath id="clip0_1182_99731">+ <rect+ width="15.9993"+ height="16"+ fill="white"+ transform="translate(0.333984 0.222656)"+ />+ </clipPath>+ </defs>+ </svg>+ </a>+ </Button>+ </div></div>- </div>+ </footer></LayoutMainContent>)diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsxindex d9de11a73ac..924899c732d 100644--- a/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx@@ -19,7 +19,7 @@ const NavigationMenuHome = () => {{section.map((link, i) => {if (!link.href) {return (- <div+ <h2key={link.label}className={cn('font-mono uppercase text-xs text-foreground-lighter',@@ -27,7 +27,7 @@ const NavigationMenuHome = () => {)}>{link.label}- </div>+ </h2>)} else {return (diff --git a/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx b/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsxindex 20197b92b81..c5727f3b2a6 100644--- a/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx@@ -13,7 +13,10 @@ const TopNavBar: FC = () => {const { resolvedTheme } = useTheme()return (- <nav className="h-[60px] border-b backdrop-blur backdrop-filter bg bg-opacity-75">+ <nav+ aria-label="top bar"+ className="h-[60px] border-b backdrop-blur backdrop-filter bg bg-opacity-75"+ ><div className="px-5 max-w-7xl mx-auto flex gap-3 justify-between items-center h-full"><div className="lg:hidden"><Link href="/" className=" flex items-center gap-2">@@ -55,7 +58,10 @@ const TopNavBar: FC = () => {<p className="hidden md:flex text-sm">Search docs...</p></div><div className="hidden md:flex items-center space-x-1">- <div className="md:flex items-center justify-center h-5 w-10 border rounded bg-surface-300 gap-1">+ <div+ aria-hidden="true"+ className="md:flex items-center justify-center h-5 w-10 border rounded bg-surface-300 gap-1"+ ><IconCommand size={12} strokeWidth={1.5} /><span className="text-[12px]">K</span></div>@@ -78,7 +84,7 @@ const TopNavBar: FC = () => {)}{process.env.NEXT_PUBLIC_DEV_AUTH_PAGE === 'true' && (<Button asChild>- <Link href="/__dev-secret-auth">Dev-only secret signin</Link>+ <Link href="/__dev-secret-auth">Dev-only secret sign-in</Link></Button>)}<Link@@ -87,6 +93,7 @@ const TopNavBar: FC = () => {rel="noreferrer noopener"className="px-2.5 py-1">+ <span className="sr-only">GitHub</span><IconGitHubsize={16}className="text-foreground-light hover:text-foreground transition"diff --git a/apps/docs/layouts/HomeLayout.tsx b/apps/docs/layouts/HomeLayout.tsxindex e535de579e4..30d8627a622 100644--- a/apps/docs/layouts/HomeLayout.tsx+++ b/apps/docs/layouts/HomeLayout.tsx@@ -61,24 +61,26 @@ const HomeLayout: FC<Props> = (props: Props) => {},}}/>- <HomePageCover meta={props.meta} />- <LayoutMainContent>- <div className={['relative transition-all ease-out', 'duration-150 '].join(' ')}>- <article className="prose max-w-none">- <MDXProvider components={components}>{props.children}</MDXProvider>- </article>- </div>- {hasTableOfContents && !props.meta?.hide_table_of_contents && (- <div- className={[- 'border-default bg-background table-of-contents-height border-l',- 'thin-scrollbar overflow-y-auto sticky hidden md:block md:col-span-3 px-2',- ].join(' ')}- >- <TableOfContents toc={props.toc} video={props.meta.video} />+ <article>+ <HomePageCover meta={props.meta} />+ <LayoutMainContent>+ <div className={['relative transition-all ease-out', 'duration-150 '].join(' ')}>+ <div className="prose max-w-none">+ <MDXProvider components={components}>{props.children}</MDXProvider>+ </div></div>- )}- </LayoutMainContent>+ {hasTableOfContents && !props.meta?.hide_table_of_contents && (+ <div+ className={[+ 'border-default bg-background table-of-contents-height border-l',+ 'thin-scrollbar overflow-y-auto sticky hidden md:block md:col-span-3 px-2',+ ].join(' ')}+ >+ <TableOfContents toc={props.toc} video={props.meta.video} />+ </div>+ )}+ </LayoutMainContent>+ </article></>)}diff --git a/apps/docs/layouts/SiteLayout.tsx b/apps/docs/layouts/SiteLayout.tsxindex 12e8d6ce717..0b63909f289 100644--- a/apps/docs/layouts/SiteLayout.tsx+++ b/apps/docs/layouts/SiteLayout.tsx@@ -283,7 +283,8 @@ const NavContainer = memo(function NavContainer() {const mobileMenuOpen = useMenuMobileOpen()return (- <div+ <nav+ aria-labelledby="main-nav-title"className={[// 'hidden','absolute lg:relative',@@ -307,6 +308,9 @@ const NavContainer = memo(function NavContainer() {'flex flex-col',].join(' ')}>+ <h1 id="main-nav-title" className="sr-only">+ Main menu+ </h1><div className="top-0 sticky z-10"><div><div>@@ -338,7 +342,7 @@ const NavContainer = memo(function NavContainer() {<NavigationMenu /></div></div>- </div>+ </nav>)})diff --git a/apps/docs/pages/index.mdx b/apps/docs/pages/index.mdxindex a6517588d42..6a7a8195082 100644--- a/apps/docs/pages/index.mdx+++ b/apps/docs/pages/index.mdx@@ -25,17 +25,19 @@ export const meta = {## Products</div>- <div className="grid grid-cols-12 gap-6 not-prose [&_svg]:text-brand-600">+ <ul className="grid grid-cols-12 gap-6 not-prose [&_svg]:text-brand-600">{products.map((product) => {return (- <Link href={product.href} key={product.title} passHref className={product.span ?? 'col-span-12 md:col-span-4'}>- <GlassPanel {...product} icon={<HomeMenuIconPicker icon={product.icon} width={18} height={18} />} background={true} showIconBg={true} showLink={false}>- {product.description}- </GlassPanel>- </Link>+ <li key={product.title} className={product.span ?? 'col-span-12 md:col-span-4'}>+ <Link href={product.href} passHref>+ <GlassPanel {...product} icon={<HomeMenuIconPicker icon={product.icon} width={18} height={18} />} background={true} showIconBg={true} showLink={false}>+ {product.description}+ </GlassPanel>+ </Link>+ </li>)})}- </div>+ </ul><div className="flex flex-col lg:grid grid-cols-12 gap-6 py-12 border-b">@@ -87,22 +89,23 @@ export const meta = {/></div>- <div className="grid col-span-8 grid-cols-12 gap-6 not-prose">+ <ul className="grid col-span-8 grid-cols-12 gap-6 not-prose">{migrationGuides.map((product) => {return (- <Link- href={product.href}- key={product.title}- className={product.span ?? 'col-span-6 md:col-span-4'}- passHref- >- <IconPanel {...product} background={true} showIconBg={true} showLink={false}>- {product.description}- </IconPanel>- </Link>+ <li className={product.span ?? 'col-span-6 md:col-span-4'}>+ <Link+ href={product.href}+ key={product.title}+ passHref+ >+ <IconPanel {...product} background={true} showIconBg={true} showLink={false}>+ {product.description}+ </IconPanel>+ </Link>+ </li>)})}- </div>+ </ul></div>@@ -116,23 +119,25 @@ export const meta = {</div>- <div className="grid grid-cols-12 gap-6 not-prose">+ <ul className="grid grid-cols-12 gap-6 not-prose">{additionalResources.map((product) => {return (- <Link- href={product.href}- key={product.title}- className={product.span ?? 'col-span-12 md:col-span-6 lg:col-span-3'}- passHref- >- <GlassPanel {...product} icon={<HomeMenuIconPicker icon={product.icon} width={18} height={18} />} background={false}>- {product.description}- </GlassPanel>-- </Link>+ <li className={product.span ?? 'col-span-12 md:col-span-6 lg:col-span-3'}>+ <Link+ href={product.href}+ key={product.title}+ className={product.span ?? 'col-span-12 md:col-span-6 lg:col-span-3'}+ passHref+ >+ <GlassPanel {...product} icon={<HomeMenuIconPicker icon={product.icon} width={18} height={18} />} background={false}>+ {product.description}+ </GlassPanel>++ </Link>+ </li>)})}- </div>+ </ul></div>@@ -158,22 +163,23 @@ export const meta = {</div><div className="grid col-span-8 grid-cols-12 gap-6 not-prose">- <div className="col-span-full lg:col-span-8 grid grid-cols-12 gap-6">+ <ul className="col-span-full lg:col-span-8 grid grid-cols-12 gap-6">{selfHostingOptions.map((product) => {return (- <Link- href={product.href}- key={product.title}- className={product.span ?? 'col-span-6'}- passHref- >- <IconPanel {...product} icon={<HomeMenuIconPicker icon={product.icon} width={18} height={18} />} background={true} showIconBg={true} showLink={false}>- {product.description}- </IconPanel>- </Link>+ <li className={product.span ?? 'col-span-6'}>+ <Link+ href={product.href}+ key={product.title}+ passHref+ >+ <IconPanel {...product} icon={<HomeMenuIconPicker icon={product.icon} width={18} height={18} />} background={true} showIconBg={true} showLink={false}>+ {product.description}+ </IconPanel>+ </Link>+ </li>)})}- </div>+ </ul></div></div>