The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
remove z-index hack. fix checks on mobile. reduce text size on mobile
Jonathan Summers-Muir50a8cce12f3c
diff --git a/apps/www/components/Pricing/ComputePricingModal.tsx b/apps/www/components/Pricing/ComputePricingModal.tsxindex 526590addf1..11f8088dda4 100644--- a/apps/www/components/Pricing/ComputePricingModal.tsx+++ b/apps/www/components/Pricing/ComputePricingModal.tsx@@ -25,127 +25,120 @@ export default function ComputePricingModal({ showComputeModal, setShowComputeMo<Modalsize="xxlarge"visible={showComputeModal}- //onCancel={() => setVideoVisible(false)}+ onCancel={() => setShowComputeModal(false)}hideFooter- header={- <div className="flex items-center justify-between z-20 mt-16 lg:mt-0">- <span className="text-scale-1200">Compute pricing</span>- <IconXCircle- className="text-scale-900 hover:text-scale-1200 w-8 cursor-pointer transition"- onClick={() => setShowComputeModal(false)}- />- </div>- }>- <div className="z-50">- <div>- <div className="p-5">- <div className="grid lg:flex gap-8">- <div className="prose">- <div className="bg-brand-1000 dark:bg-brand-800 rounded-xl w-12 h-12 flex justify-center items-center">- <img- className="w-6"- src={`${basePath}/images/pricing/compute-upgrade${- isDarkMode ? '-green' : ''- }.svg`}- />- </div>- </div>- <div className="max-w-4xl prose">- <h2 className="text-lg">Choose best compute setup for you</h2>- <p className="text-sm lg:max-w-3xl">- Every project on the Supabase Platform comes with its own dedicated Postgres- instance running inside a virtual machine (VM). The following table describes the- base instance with additional compute add-ons available if you need extra- performance when scaling up Supabase.- </p>+ <>+ <IconXCircle+ className="absolute right-3 top-3 text-scale-900 hover:text-scale-1200 w-8 cursor-pointer transition"+ onClick={() => setShowComputeModal(false)}+ />+ <div className="p-5">+ <div className="grid lg:flex gap-8">+ <div className="prose">+ <div className="bg-brand-200 dark:bg-brand-200 rounded-xl w-12 h-12 flex justify-center items-center">+ <img+ className="w-6"+ src={`${basePath}/images/pricing/compute-upgrade${+ isDarkMode ? '-green' : ''+ }.svg`}+ /></div></div>+ <div className="max-w-4xl prose">+ <h2 className="text-lg">Choose best compute setup for you</h2>+ <p className="text-sm lg:max-w-3xl">+ Every project on the Supabase Platform comes with its own dedicated Postgres+ instance running inside a virtual machine (VM). The following table describes the+ base instance with additional compute add-ons available if you need extra+ performance when scaling up Supabase.+ </p>+ </div></div>- <div className="p-5">- <table className="text-scale-1200 m-0 hidden w-full table-auto overflow-hidden rounded-b lg:table text-xs">- <thead>- <tr className="">- {columnNames.map((column) => (- <th key={column.key} className="p-3 text-left font-medium">- {column.title}- </th>- ))}- </tr>- </thead>- <tbody>- {pricingAddOn.database.rows.map((row, i) => (- <Fragment key={`row-${i}`}>- {i === 0 && (- <tr className="">- <td className="pb-1 bg-scale-700 px-3 py-1 -mr-1 border-l-4 border-scale-700">- <span className="">Included in Free and Pro tiers</span>- </td>- </tr>- )}- <tr- key={i}- className={[- i % 2 === 0 ? 'bg-scale-300 rounded-lg' : '',- i === 0 ? 'border-4 border-scale-700' : '',- ].join(' ')}- >- {row.columns.map((column) => (- <td key={column.key} className="p-3">- {column.key === 'dedicated' ? (- column.value ? (- <IconPricingIncludedCheck tier="Pro tier" />- ) : (- <IconPricingMinus tier="Free tier" />- )- ) : (- column.value- )}- </td>- ))}- </tr>- </Fragment>+ </div>+ <div className="p-5">+ <table className="text-scale-1200 m-0 hidden w-full table-auto overflow-hidden rounded-b lg:table text-xs">+ <thead>+ <tr className="">+ {columnNames.map((column) => (+ <th key={column.key} className="p-3 text-left font-medium">+ {column.title}+ </th>))}- </tbody>- </table>- </div>-- <table className="text-scale-1200 m-0 w-full table-auto overflow-hidden rounded-b lg:hidden">+ </tr>+ </thead><tbody>{pricingAddOn.database.rows.map((row, i) => (- <Fragment key={i}>- {row.columns.map((column) => (- <tr key={column.key}>- <th- className={`py-3 pl-4 text-left font-medium ${- column.key === 'plan' ? 'pt-16 lg:pt-3' : ''- }`}- >- {column.title}- </th>- <td- className={`px-4 py-3 ${- column.key === 'plan' ? 'text-brand-900 pt-16 lg:pt-3' : ''- }`}- >+ <Fragment key={`row-${i}`}>+ {i === 0 && (+ <tr className="">+ <td className="pb-1 bg-scale-700 px-3 py-1 -mr-1 border-l-4 border-scale-700">+ <span className="">Included in Free and Pro tiers</span>+ </td>+ </tr>+ )}+ <tr+ key={i}+ className={[+ i % 2 === 0 ? 'bg-scale-300 rounded-lg' : '',+ i === 0 ? 'border-4 border-scale-700' : '',+ ].join(' ')}+ >+ {row.columns.map((column) => (+ <td key={column.key} className="p-3">{column.key === 'dedicated' ? (- <IconCheckCircle- size={14}- strokeWidth={2}- className={column.value ? 'text-brand-1000' : 'text-scale-700'}- />+ column.value ? (+ <IconPricingIncludedCheck tier="Pro tier" />+ ) : (+ <IconPricingMinus tier="Free tier" />+ )) : (column.value)}</td>- </tr>- ))}+ ))}+ </tr></Fragment>))}</tbody></table></div>- </div>++ <table className="text-scale-1200 m-0 w-full table-auto overflow-hidden rounded-b lg:hidden text-xs">+ <tbody>+ {pricingAddOn.database.rows.map((row, i) => (+ <Fragment key={i}>+ {row.columns.map((column) => (+ <tr key={column.key}>+ <th+ className={`py-3 pl-4 text-left font-medium ${+ column.key === 'plan' ? 'pt-16 lg:pt-3' : ''+ }`}+ >+ {column.title}+ </th>+ <td+ className={`px-4 py-3 ${+ column.key === 'plan' ? 'text-brand-900 pt-16 lg:pt-3' : ''+ }`}+ >+ {column.key === 'dedicated' ? (+ column.value ? (+ <IconPricingIncludedCheck tier="Pro tier" />+ ) : (+ <IconPricingMinus tier="Free tier" />+ )+ ) : (+ column.value+ )}+ </td>+ </tr>+ ))}+ </Fragment>+ ))}+ </tbody>+ </table>+ </></Modal>)}