The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add 404 page
Terry Suttonfcf5d740a839
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsxindex 03d0cb8d251..1b50f85b9ed 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx@@ -192,7 +192,6 @@ const SideNav = () => {{label: 'Self hosting server',icon: '/img/icons/menu/platform',- hasLightIcon: false,href: '/new/reference/javascript/start',level: 'reference_javascript',},diff --git a/apps/docs/pages/404.mdx b/apps/docs/pages/404.mdxdeleted file mode 100644index a24fcdaa7c7..00000000000--- a/apps/docs/pages/404.mdx+++ /dev/null@@ -1,13 +0,0 @@-import Layout from '~/layouts/DefaultGuideLayout'--export const meta = {- id: '404',- title: '404',- description: 'Page not found',-}--# Page not found--export const Page = ({ children }) => <Layout meta={meta} children={children} />--export default Pagediff --git a/apps/docs/pages/404.tsx b/apps/docs/pages/404.tsxnew file mode 100644index 00000000000..94f4db764e3--- /dev/null+++ b/apps/docs/pages/404.tsx@@ -0,0 +1,52 @@+import { useEffect, useState } from 'react'+import Link from 'next/link'+import { Button } from 'ui'+import Head from 'next/head'++export default function Custom404() {+ const [show404, setShow404] = useState<boolean>(false)++ useEffect(() => {+ setTimeout(() => {+ setShow404(true)+ }, 500)+ }, [])++ return (+ <>+ <Head>+ <title>404 | Supabase</title>+ </Head>+ <div className="relative mx-auto flex h-screen w-full flex-col items-center justify-center">+ <div className="absolute">+ <h1+ className={`text-scale-1200 select-none text-[14rem] opacity-[5%] filter transition duration-200 sm:text-[18rem] lg:text-[28rem] ${+ show404 ? 'blur-sm' : 'blur-none'+ }`}+ >+ 404+ </h1>+ </div>+ <div+ className={`flex flex-col items-center justify-center space-y-6 transition ${+ show404 ? 'opacity-100' : 'opacity-0'+ }`}+ >+ <div className="text-scale-1200 flex w-[320px] flex-col items-center justify-center space-y-3">+ <h1 className="m-2 text-2xl">Looking for something? 🔍</h1>+ <p className="text-center text-sm">+ We couldn't find the page that you're looking for!+ </p>+ </div>+ <div className="flex items-center space-x-4">+ <Link href="/">+ <Button as="a" size="small" className="text-white">+ Head back+ </Button>+ </Link>+ </div>+ </div>+ </div>+ </>+ )+}