The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
replace old badge component by the one from the UI lib
Florian LEFEBVRE3e09986c8e27
diff --git a/www/components/Badge.tsx b/www/components/Badge.tsxdeleted file mode 100644index bd2113b6049..00000000000--- a/www/components/Badge.tsx+++ /dev/null@@ -1,20 +0,0 @@-type Props = {- className?: string- children: any-}--const Badge = (props: Props) => {- const { className, children } = props- return (- <span- className={`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-indigo-100 text-indigo-800 ${className}`}- >- <svg className="-ml-0.5 mr-1.5 h-2 w-2 text-indigo-400" fill="currentColor" viewBox="0 0 8 8">- <circle cx="4" cy="4" r="3" />- </svg>- {props.children}- </span>- )-}--export default Badgediff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsxindex a3170d2a46b..81486fd3134 100644--- a/www/components/Nav/index.tsx+++ b/www/components/Nav/index.tsx@@ -2,7 +2,7 @@ import React, { useState } from 'react'import Link from 'next/link'import { useRouter } from 'next/router'-import Badge from 'components/Badge'+import { Badge } from '@supabase/ui'import FlyOut from '~/components/UI/FlyOut'import Transition from 'lib/Transition'import SolutionsData from 'data/Solutions.json'@@ -64,8 +64,13 @@ const Nav = (props: Props) => {</div><div className="ml-4 md:flex-1 md:flex md:flex-col md:justify-between lg:ml-0 lg:mt-4"><div>- <p className="text-base font-medium text-gray-900 dark:text-white">- {name} {label && <Badge className="ml-3">{label}</Badge>}+ <p className="text-base font-medium text-gray-900 dark:text-white space-x-2">+ <span>{name}</span>+ {label && (+ <Badge dot color="green">+ {label}+ </Badge>+ )}</p><p className="mt-1 text-sm text-gray-500 dark:text-dark-100">{description}</p></div>diff --git a/www/package.json b/www/package.jsonindex 25b51833cb6..88c65505b4b 100644--- a/www/package.json+++ b/www/package.json@@ -24,7 +24,6 @@"next": "latest","next-mdx-remote": "^2.1.3","next-seo": "^4.20.0",- "postcss": "8","react": "^16.13.0","react-copy-to-clipboard": "^5.0.2","react-dom": "^16.13.0",@@ -51,6 +50,7 @@"@types/react-dom": "^16.9.8","@types/react-syntax-highlighter": "^13.5.0","file-loader": "^6.2.0",+ "postcss": "8","postcss-preset-env": "^6.7.0","prettier": "^2.2.1","tailwindcss": "^2.0.1"