The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: move Docs to top nav and update Developers submenu
Francesco Sansalvadorefd786b02ec4d
diff --git a/apps/www/components/Nav/Developers.tsx b/apps/www/components/Nav/Developers.tsxindex fe7e30ebb31..5601ce29069 100644--- a/apps/www/components/Nav/Developers.tsx+++ b/apps/www/components/Nav/Developers.tsx@@ -1,5 +1,5 @@import React from 'react'-import DevelopersData from 'data/Developers.json'+import { links } from 'data/Developers'import AnnouncementsData from 'data/Announcements.json'import { useRouter } from 'next/router'import Image from 'next/image'@@ -15,8 +15,8 @@ type Props = {const Developers = () => {const { basePath } = useRouter()- const iconSections = Object.values(DevelopersData).map((company: Props) => {- const { text, description, url, icon } = company+ const iconSections = links.map((link: Props) => {+ const { text, description, url, icon } = linkconst content = (<div className="dark:hover:bg-scale-500 -m-3 flex items-start rounded-lg p-3 transition duration-150 ease-in-out hover:bg-gray-50">@@ -55,8 +55,8 @@ const Developers = () => {return (<div className="grid grid-cols-12">- <nav className="col-span-6 py-8" aria-labelledby="solutionsHeading">- <div className="m-3 grid grid-cols-12 gap-x-8 gap-y-4 py-4 pr-3">{iconSections}</div>+ <nav className="col-span-6 py-8" aria-labelledby="developersResources">+ <div className="m-3 grid grid-cols-12 gap-4 py-4 pr-3">{iconSections}</div></nav><div className="col-span-6"><div className="m-3 mx-6">diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsxindex 4f6e5699b1e..dd034e420d5 100644--- a/apps/www/components/Nav/index.tsx+++ b/apps/www/components/Nav/index.tsx@@ -263,6 +263,18 @@ const Nav = () => {Pricing</a></Link>+ <Link href="/docs">+ <a+ className={[+ `text-scale-1200 hover:text-brand-900 hover:border-brand-900 dark:text-dark-100 dark:hover:border-dark-100 inline-flex items-center+ border-b-2 border-transparent p-5 px-1+ text-sm font-medium`,+ showLaunchWeekNavMode && '!text-white',+ ].join(' ')}+ >+ Docs+ </a>+ </Link><Link href="/blog"><aclassName={[@@ -406,7 +418,14 @@ const Nav = () => {Pricing</a></Link>-+ <Link href="/docs">+ <a+ target="_blank"+ className="block py-2 pl-3 pr-4 text-base font-medium rounded-md text-scale-900 dark:hover:bg-scale-600 hover:border-gray-300 hover:bg-gray-50 dark:text-white"+ >+ Docs+ </a>+ </Link><Link href="https://github.com/supabase/supabase"><atarget="_blank"diff --git a/apps/www/data/Developers.json b/apps/www/data/Developers.jsondeleted file mode 100644index df449e784ab..00000000000--- a/apps/www/data/Developers.json+++ /dev/null@@ -1,20 +0,0 @@-[- {- "text": "Documentation",- "description": "Everything you need to start building with Supabase.",- "url": "/docs",- "icon": "M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"- },- {- "text": "Changelog",- "description": "See the latest updates and product improvements.",- "url": "/changelog",- "icon": "M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z"- },- {- "text": "Careers",- "description": "Join the Supabase team and get involved.",- "url": "/careers",- "icon": "M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"- }-]diff --git a/apps/www/data/Developers.ts b/apps/www/data/Developers.tsnew file mode 100644index 00000000000..30157c364a2--- /dev/null+++ b/apps/www/data/Developers.ts@@ -0,0 +1,26 @@+export const links = [+ {+ text: 'Resources',+ description: 'View examples, curated content from the community, migration guides, and more.',+ url: '/docs/guides/resources',+ icon: 'M19.4994 17.9996V7.50107L19.4864 3L14.0723 3L4.5 3L4.5 18.75M4.5 18.75C4.5 19.9926 5.50736 21 6.75 21H19.5V18.5255L19.4871 16.5H14.0728H6.75C5.50736 16.5 4.5 17.5074 4.5 18.75ZM7.50724 3V9L9.75771 6.45713L12.0072 9V3H7.50724Z',+ },+ {+ text: 'Changelog',+ description: 'See the latest updates and product improvements.',+ url: '/changelog',+ icon: 'M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z',+ },+ {+ text: 'Careers',+ description: 'Join the Supabase team and get involved.',+ url: '/careers',+ icon: 'M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z',+ },+ {+ text: 'Open Source',+ description: 'We support existing open source tools and communities wherever possible.',+ url: '/oss',+ icon: 'M10.7607 3.08859C15.7723 2.38592 20.0295 5.94789 20.8525 10.7642C21.5964 15.1122 19.4634 19.1692 15.8778 20.9967L14.0736 16.084C15.129 15.4346 15.8232 14.4223 16.0198 13.0819C16.3702 10.7219 14.7442 8.47426 12.3801 8.25648C10.2228 8.04047 8.33304 9.61601 7.99823 11.7702L7.99761 11.7743C7.73427 13.5096 8.47082 15.1847 9.92827 16.0841L8.12693 21C6.34571 20.1066 4.88125 18.6129 3.97963 16.7387L3.97879 16.7369C3.15872 15.0395 3.07406 13.7081 3.01524 12.783C3.01012 12.7024 3.0052 12.6249 3 12.5506C3.10941 7.30353 6.59243 3.6764 10.7607 3.08859Z',+ },+]