The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Adds buttons contrast on primary buttons
Paul Copplestonec741a92b643a
diff --git a/www/components/Button.tsx b/www/components/Button.tsxindex 82723faa3a0..ecf4b18e8d0 100644--- a/www/components/Button.tsx+++ b/www/components/Button.tsx@@ -13,13 +13,20 @@ const Button = (props: Props) => {const colorClass =type === 'primary'- ? 'px-3 py-2 shadow-sm border border-transparent text-white bg-brand-700 hover:bg-brand-800 focus:ring-2 focus:ring-offset-2 focus:ring-brand-500'+ ? 'px-3 py-2 shadow-sm border border-transparent text-white bg-brand-700 hover:bg-brand-800 focus:ring-2 focus:ring-offset-2 focus:ring-brand-500': 'text-brand-700 bg-none'const textClass = type === 'primary' ? 'font-medium left-3 group-hover:left-0' : 'font-normal'const arrowClass = type === 'primary' ? '' : 'relative -left-1 group-hover:left-0'+ let buttonStyles = {+ textShadow: 'none',+ }+ if (type === 'primary') {+ buttonStyles.textShadow = '0px 0px 6px rgba(13, 128, 86, 0.8)'+ }+const renderButton = () => (<buttontype="button"@@ -27,6 +34,7 @@ const Button = (props: Props) => {inline-flex items-center text-sm leading-4 rounded-mdfocus:outline-none group transition ${colorClass} ${className}`}+ style={buttonStyles}><spanclassName={`diff --git a/www/package-lock.json b/www/package-lock.jsonindex 922f6de5a5a..4eb95e4a2fd 100644--- a/www/package-lock.json+++ b/www/package-lock.json@@ -745,6 +745,7 @@"version": "1.1.5","resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz","integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",+ "optional": true,"requires": {"delegates": "^1.0.0","readable-stream": "^2.0.6"@@ -754,6 +755,7 @@"version": "2.3.7","resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz","integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",+ "optional": true,"requires": {"core-util-is": "~1.0.0","inherits": "~2.0.3",@@ -767,12 +769,14 @@"safe-buffer": {"version": "5.1.2","resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",+ "optional": true},"string_decoder": {"version": "1.1.1","resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz","integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",+ "optional": true,"requires": {"safe-buffer": "~5.1.0"}@@ -1021,6 +1025,7 @@"version": "4.0.3","resolved": "https://registry.npmjs.org/bl/-/bl-4.0.3.tgz","integrity": "sha512-fs4G6/Hu4/EE+F75J8DuN/0IpQqNjAdC7aEQv7Qt8MHGUH7Ckv2MwTEEeN9QehD0pfIDkMI1bkHYkKy7xHyKIg==",+ "optional": true,"requires": {"buffer": "^5.5.0","inherits": "^2.0.4",@@ -1369,7 +1374,8 @@"code-point-at": {"version": "1.1.0","resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",- "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c="+ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",+ "optional": true},"collapse-white-space": {"version": "1.0.6",@@ -1502,7 +1508,8 @@"console-control-strings": {"version": "1.1.0","resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",- "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="+ "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",+ "optional": true},"constants-browserify": {"version": "1.0.0",@@ -1945,7 +1952,8 @@"delegates": {"version": "1.0.0","resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",- "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="+ "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=",+ "optional": true},"depd": {"version": "1.1.2",@@ -1972,7 +1980,8 @@"detect-libc": {"version": "1.0.3","resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",- "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups="+ "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=",+ "optional": true},"detective": {"version": "5.2.0",@@ -2618,7 +2627,8 @@"fs-constants": {"version": "1.0.0","resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",- "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",+ "optional": true},"fs-extra": {"version": "9.0.1",@@ -2693,6 +2703,7 @@"version": "2.7.4","resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz","integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",+ "optional": true,"requires": {"aproba": "^1.0.3","console-control-strings": "^1.0.0",@@ -2707,12 +2718,14 @@"ansi-regex": {"version": "2.1.1","resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",- "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8="+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",+ "optional": true},"strip-ansi": {"version": "3.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz","integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",+ "optional": true,"requires": {"ansi-regex": "^2.0.0"}@@ -2798,7 +2811,8 @@"has-unicode": {"version": "2.0.1","resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",- "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk="+ "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",+ "optional": true},"has-value": {"version": "1.0.0",@@ -3184,6 +3198,7 @@"version": "1.0.0","resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz","integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",+ "optional": true,"requires": {"number-is-nan": "^1.0.0"}@@ -3843,7 +3858,8 @@"mkdirp-classic": {"version": "0.5.3","resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",- "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",+ "optional": true},"modern-normalize": {"version": "1.0.0",@@ -4159,6 +4175,7 @@"version": "4.1.2","resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz","integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",+ "optional": true,"requires": {"are-we-there-yet": "~1.1.2","console-control-strings": "~1.1.0",@@ -4175,7 +4192,8 @@"number-is-nan": {"version": "1.0.1","resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",- "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0="+ "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",+ "optional": true},"object-assign": {"version": "4.1.1",@@ -6134,7 +6152,8 @@"set-blocking": {"version": "2.0.0","resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",- "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc="+ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",+ "optional": true},"set-value": {"version": "2.0.1",@@ -6191,12 +6210,14 @@"signal-exit": {"version": "3.0.3","resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",- "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA=="+ "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==",+ "optional": true},"simple-concat": {"version": "1.0.1","resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",- "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q=="+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",+ "optional": true},"simple-get": {"version": "4.0.0",@@ -6537,6 +6558,7 @@"version": "1.0.2","resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz","integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",+ "optional": true,"requires": {"code-point-at": "^1.0.0","is-fullwidth-code-point": "^1.0.0",@@ -6546,12 +6568,14 @@"ansi-regex": {"version": "2.1.1","resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",- "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8="+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",+ "optional": true},"strip-ansi": {"version": "3.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz","integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",+ "optional": true,"requires": {"ansi-regex": "^2.0.0"}@@ -6757,6 +6781,7 @@"version": "2.1.1","resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz","integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",+ "optional": true,"requires": {"chownr": "^1.1.1","mkdirp-classic": "^0.5.2",@@ -6768,6 +6793,7 @@"version": "2.1.4","resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.1.4.tgz","integrity": "sha512-o3pS2zlG4gxr67GmFYBLlq+dM8gyRGUOvsrHclSkvtVtQbjV0s/+ZE8OpICbaj8clrX3tjeHngYGP7rweaBnuw==",+ "optional": true,"requires": {"bl": "^4.0.3","end-of-stream": "^1.4.1",@@ -7066,6 +7092,7 @@"version": "0.6.0","resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz","integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",+ "optional": true,"requires": {"safe-buffer": "^5.0.1"}@@ -7495,6 +7522,7 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz","integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=",+ "optional": true,"requires": {"kind-of": "^3.0.2"}@@ -7509,6 +7537,7 @@"version": "3.2.2","resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz","integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",+ "optional": true,"requires": {"is-buffer": "^1.1.5"}@@ -7542,7 +7571,8 @@"safe-buffer": {"version": "5.1.2","resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",+ "optional": true},"string_decoder": {"version": "1.1.1",@@ -7670,6 +7700,7 @@"version": "1.1.3","resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz","integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",+ "optional": true,"requires": {"string-width": "^1.0.2 || 2"}