The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
apply PR review
Florian LEFEBVRE383b564d7aba
diff --git a/www/components/Nav/Annoucement.tsx b/www/components/Nav/Annoucement.tsxindex cec28365dac..b0b24201372 100644--- a/www/components/Nav/Annoucement.tsx+++ b/www/components/Nav/Annoucement.tsx@@ -1,35 +1,17 @@import React from 'react'-import { IconArrowRight } from '@supabase/ui'-import data from '~/data/Annoucement.json'--type A = {- show: boolean- text: string- link: {- text: string- url: string- }-}--const a: A = data+import { annoucement } from '~/data/Annoucement'const Annoucement = () => {- if (!a.show) return null+ if (!annoucement.show) return nullreturn (- <div className="bg-brand-700">- <div className="flex items-center justify-center py-2 mx-auto space-x-2 text-sm lg:container lg:px-16 xl:px-20 md:text-base">- <span className="text-white">{a.text}</span>- <a- href={a.link.url}- target="_blank"- className="inline-flex items-center px-2 py-1 space-x-1 text-xs transition-colors rounded-lg text-brand-800 bg-white border border-transparent dark:hover:border-white dark:hover:bg-brand-700"- >- <span>{a.link.text}</span>- <IconArrowRight size="tiny" />- </a>+ <a href={annoucement.link} target="_blank">+ <div className="bg-dark-700 text-white hover:bg-dark-600 dark:bg-white dark:text-dark-600 dark:hover:bg-dark-200 transition-colors">+ <div className="flex items-center justify-center p-2 mx-auto space-x-2 text-sm lg:container lg:px-16 xl:px-20">+ {annoucement.text}+ </div></div>- </div>+ </a>)}diff --git a/www/data/Annoucement.json b/www/data/Annoucement.jsondeleted file mode 100644index d23d46bb6a6..00000000000--- a/www/data/Annoucement.json+++ /dev/null@@ -1,8 +0,0 @@-{- "show": true,- "text": "We just raised a $30 million Series A",- "link": {- "url": "https://techcrunch.com/2021/09/09/supabase-raises-30m-for-its-open-source-insta-backend/",- "text": "Read more"- }-}diff --git a/www/data/Annoucement.ts b/www/data/Annoucement.tsnew file mode 100644index 00000000000..c4c61ec06ae--- /dev/null+++ b/www/data/Annoucement.ts@@ -0,0 +1,11 @@+type Annoucement = {+ show: boolean+ text: string+ link: string+}++export const annoucement: Annoucement = {+ show: true,+ text: 'We just raised a $30 million Series A... Discover more about it here!',+ link: 'https://techcrunch.com/2021/09/09/supabase-raises-30m-for-its-open-source-insta-backend/',+}diff --git a/www/tailwind.config.js b/www/tailwind.config.jsindex 1ae5f274858..123c7c1e161 100644--- a/www/tailwind.config.js+++ b/www/tailwind.config.js@@ -109,13 +109,13 @@ module.exports = {}),},},- variants: {- extend: {- inset: ['group-hover'],- stroke: ['dark'],- height: ['hover'],- },- },+ // variants: {+ // extend: {+ // inset: ['group-hover'],+ // stroke: ['dark'],+ // height: ['hover'],+ // },+ // },plugins: [],corePlugins: {preflight: true,