The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update benchmark
Joshen Limd6737806538a
diff --git a/www/components/Benchmark/index.tsx b/www/components/Benchmark/index.tsxindex 5f554950b1d..40dd60a4e7a 100644--- a/www/components/Benchmark/index.tsx+++ b/www/components/Benchmark/index.tsx@@ -2,9 +2,8 @@ import Button from 'components/button'const Benchmark = () => {return (- <>- {/* Figma ref */}- <div className="bg-white dark:bg-dark-200 pt-16 pb-4 px-4 sm:px-6 lg:px-8">+ <div className="bg-white dark:bg-dark-200 py-16 px-4 sm:px-6 lg:px-8">+ <div className="container mx-auto px-20"><div className="bg-white grid grid-cols-12 gap-4 items-center shadow-lg rounded-md"><div className="w-full h-full col-span-2 bg-gray-700 rounded-l-md flex items-center justify-center"><img className="w-3/4" src="images/benchmark.svg" />@@ -22,41 +21,7 @@ const Benchmark = () => {</div></div></div>-- {/* Other */}- <div className="bg-white dark:bg-dark-200">- <div className="mx-auto py-16 px-4 sm:px-6 lg:px-8">- <div className="bg-gray-700 rounded-lg shadow-xl overflow-hidden lg:grid lg:grid-cols-12 lg:gap-4">- <div className="pt-10 pb-12 px-6 sm:pt-16 sm:px-16 lg:py-16 lg:pr-0 xl:py-20 xl:px-20 col-span-8">- <div className="lg:self-center">- <h4 className="text-5xl font-bold text-white sm:text-2xl">- <span className="block">Record breaking speed and reliability</span>- </h4>- <p className="mt-4 text-base text-gray-200">- <span className="block">Supabase is already enterprise level and we’re blown away by the speed!</span>- <span className="block">Sign up for our public benchmark release and we’ll email it to you</span>- </p>- <p className="mt-4 text-base text-gray-200">- </p>- <button- type="button"- className="mt-1 inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-brand-600 hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500"- >- Button text- </button>- </div>- </div>- <div className="-mt-6 aspect-w-5 aspect-h-3 md:aspect-w-2 md:aspect-h-1 col-span-4">- <img- className="transform translate-x-6 translate-y-6 rounded-md object-cover object-left-top sm:translate-x-16 lg:translate-y-20"- src="https://tailwindui.com/img/component-images/full-width-with-sidebar.jpg"- alt="App screenshot"- />- </div>- </div>- </div>- </div>- </>+ </div>)}diff --git a/www/components/CaseStudies/benchmark.tsx b/www/components/CaseStudies/benchmark.tsxnew file mode 100644index 00000000000..4123bd9e49a--- /dev/null+++ b/www/components/CaseStudies/benchmark.tsx@@ -0,0 +1,28 @@+import Button from 'components/button'++const Benchmark = () => {+ return (+ <div className="mt-6">+ <div className="bg-white dark:bg-dark-200 grid grid-cols-12 gap-4 items-center shadow-lg rounded-md">+ {/* <div className="w-full h-full col-span-2 bg-dark-200 rounded-l-md flex items-center justify-center">+ <div className="bg-cover bg-center w-full h-full" style={{ backgroundImage: "url('images/benchmark.svg')"}} />+ </div> */}+ <div className="col-span-10 flex items-center">+ <img className="h-44 mr-14" src="images/benchmark.svg" />+ <div className="py-0">+ <p className="text-xl dark:text-white">Record breaking speed and reliability</p>+ <p className="text-gray-400 dark:text-dark-100 mt-2">+ <span className="block">Supabase is already enterprise level and we’re blown away by the speed!</span>+ <span className="block">Sign up for our public benchmark release and we’ll email it to you</span>+ </p>+ </div>+ </div>+ <div className="col-span-2 rounded-r-md">+ <Button text="Get notified" url="#"/>+ </div>+ </div>+ </div>+ )+}++export default Benchmark\ No newline at end of filediff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsxindex 1c8cc79d9b3..a0f7cf863f1 100644--- a/www/components/CaseStudies/index.tsx+++ b/www/components/CaseStudies/index.tsx@@ -1,4 +1,5 @@import Card from 'components/Card'+import Benchmark from 'components/CaseStudies/benchmark'import SectionHeader from 'components/UI/SectionHeader'import CaseStudiesData from "data/CaseStudies.json"@@ -6,7 +7,7 @@ const CaseStudies = () => {return (<div className="relative bg-gray-50 dark:bg-dark-300 pt-16 pb-20 lg:pt-24 lg:pb-28">- <div className="container mx-auto px-20">+ <div className="container relative mx-auto px-20"><div className="absolute inset-0"><div className="bg-white dark:bg-dark-300 h-1/3 sm:h-2/3"></div></div>@@ -34,6 +35,7 @@ const CaseStudies = () => {))}</div></div>+ <Benchmark /></div></div>)diff --git a/www/pages/index.tsx b/www/pages/index.tsxindex ecd8101704a..8c99fcd5d28 100644--- a/www/pages/index.tsx+++ b/www/pages/index.tsx@@ -10,7 +10,6 @@ import MadeForDevelopers from 'components/MadeForDevelopers/index'import AdminAccess from 'components/AdminAccess/index'import CaseStudies from 'components/CaseStudies/index'import CTABanner from 'components/CTABanner/index'-import Benchmark from 'components/Benchmark/index'type Props = {@@ -30,7 +29,6 @@ const Index = ({ }: Props) => {<MadeForDevelopers /><AdminAccess /><CaseStudies />- <Benchmark /><CTABanner /></Container></Layout>diff --git a/www/public/images/benchmark.svg b/www/public/images/benchmark.svgnew file mode 100644index 00000000000..1c6e6d97dc1--- /dev/null+++ b/www/public/images/benchmark.svg@@ -0,0 +1,33 @@+<svg width="403" height="304" viewBox="0 0 403 304" fill="none" xmlns="http://www.w3.org/2000/svg">+<mask id="path-1-inside-1" fill="white">+<path fill-rule="evenodd" clip-rule="evenodd" d="M4 0C1.79086 0 0 1.79086 0 4V270.4C133.776 311.192 351.162 253.6 403 10V4C403 1.79086 401.209 0 399 0H4Z"/>+</mask>+<path fill-rule="evenodd" clip-rule="evenodd" d="M4 0C1.79086 0 0 1.79086 0 4V270.4C133.776 311.192 351.162 253.6 403 10V4C403 1.79086 401.209 0 399 0H4Z" fill="#424242"/>+<path d="M0 270.4H-1V271.141L-0.291669 271.357L0 270.4ZM403 10L403.978 10.2081L404 10.1052V10H403ZM1 4C1 2.34315 2.34315 1 4 1V-1C1.23858 -1 -1 1.23858 -1 4H1ZM1 270.4V4H-1V270.4H1ZM402.022 9.79186C376.165 131.3 309.049 206.346 231.771 245.957C154.456 285.586 66.9344 289.765 0.291669 269.443L-0.291669 271.357C66.8415 291.827 154.9 287.606 232.683 247.737C310.501 207.849 377.997 132.3 403.978 10.2081L402.022 9.79186ZM402 4V10H404V4H402ZM399 1C400.657 1 402 2.34315 402 4H404C404 1.23858 401.761 -1 399 -1V1ZM4 1H399V-1H4V1Z" fill="#363636" mask="url(#path-1-inside-1)"/>+<path d="M328 171L328 304" stroke="url(#paint0_linear)"/>+<path d="M328 171L328 304" stroke="#747474"/>+<path d="M217 254L217 304" stroke="url(#paint1_linear)"/>+<path d="M217 254L217 304" stroke="#747474"/>+<path d="M376 92L376 304" stroke="url(#paint2_linear)"/>+<path d="M376 92L376 304" stroke="#747474"/>+<path d="M378 92C378 93.1046 377.105 94 376 94C374.895 94 374 93.1046 374 92C374 90.8954 374.895 90 376 90C377.105 90 378 90.8954 378 92Z" fill="#6EC897"/>+<path d="M330 171C330 172.105 329.105 173 328 173C326.895 173 326 172.105 326 171C326 169.895 326.895 169 328 169C329.105 169 330 169.895 330 171Z" fill="#6EC897"/>+<path d="M219 255C219 256.105 218.105 257 217 257C215.895 257 215 256.105 215 255C215 253.895 215.895 253 217 253C218.105 253 219 253.895 219 255Z" fill="#6EC897"/>+<path d="M353 92L154 92" stroke="#747474" stroke-linecap="round"/>+<path d="M154 72H212" stroke="#A4A4A4" stroke-linecap="round"/>+<path d="M154 60H254" stroke="#A4A4A4" stroke-linecap="round"/>+<defs>+<linearGradient id="paint0_linear" x1="328.5" y1="171" x2="328.5" y2="304" gradientUnits="userSpaceOnUse">+<stop stop-color="#747474"/>+<stop offset="1" stop-color="#747474" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint1_linear" x1="217.5" y1="254" x2="217.5" y2="304" gradientUnits="userSpaceOnUse">+<stop stop-color="#747474"/>+<stop offset="1" stop-color="#747474" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint2_linear" x1="376.5" y1="92" x2="376.5" y2="304" gradientUnits="userSpaceOnUse">+<stop stop-color="#747474"/>+<stop offset="1" stop-color="#747474" stop-opacity="0"/>+</linearGradient>+</defs>+</svg>diff --git a/www/tailwind.config.js b/www/tailwind.config.jsindex ee593f9e680..533e25cffa4 100644--- a/www/tailwind.config.js+++ b/www/tailwind.config.js@@ -36,13 +36,14 @@ module.exports = {'800': '#236E4C','900': '#1C583D',},+ // Joshen TODO: At the end just rearrange the valuesdark: {100: '#828282',+ 600: '#424242',200: '#3A3A3A',300: '#292929',400: '#202020',500: '#1E1E1E',- 600: '#424242',},// Joshen: Adding our Figma palette hereneutral: {