Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Adds database add-on and fixes dark mode

Alaister Youngb0144b7a76f8
diff --git a/www/components/PricingTableRow.tsx b/www/components/PricingTableRow.tsx
index 60fd0c79a0a..f0f25bfc94a 100644
--- a/www/components/PricingTableRow.tsx
+++ b/www/components/PricingTableRow.tsx
@@ -1,23 +1,26 @@
+import { IconHelpCircle } from '@supabase/ui'
+import ProductIcon from 'components/ProductIcon'
import React from 'react'
-import ReactDOM from 'react-dom'
-import { IconHelpCircle, IconWatch, Space } from '@supabase/ui'
import ReactTooltip from 'react-tooltip'
-import ProductIcon from 'components/ProductIcon'
-const Chevron = (props: any) => (
+export const Check = () => (
+ <svg
+ className={`h-5 w-5 text-green-900`}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20"
+ fill="currentColor"
+ >
+ <path
+ fillRule="evenodd"
+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
+ clipRule="evenodd"
+ />
+ </svg>
+)
+
+const IncludedCheck = (props: any) => (
<>
- <svg
- className={`h-5 w-5 text-green-900`}
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 20 20"
- fill="currentColor"
- >
- <path
- fillRule="evenodd"
- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
- clipRule="evenodd"
- />
- </svg>
+ <Check />
<span className="sr-only">Included in {props.tier}</span>
</>
)
@@ -25,7 +28,7 @@ const Chevron = (props: any) => (
const Minus = (props: any) => (
<>
<svg
- className="h-5 w-5 text-scale-1200 dark:text-white"
+ className="w-5 h-5 text-scale-1200 dark:text-white"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
@@ -46,9 +49,9 @@ export const PricingTableRowDesktop = (props: any) => {
return (
<>
- <tr className="divide-x dark:divide-scale-900" style={{ borderTop: 'none' }}>
+ <tr className="divide-x dark:divide-scale-400" style={{ borderTop: 'none' }}>
<th
- className="pricing-table__product-row bg-scale-50 dark:bg-scale-300 py-3 pl-6 text-sm font-medium text-scale-1200 dark:text-white text-left"
+ className="py-3 pl-6 text-sm font-medium text-left pricing-table__product-row bg-scale-50 dark:bg-scale-300 text-scale-1200 dark:text-white"
scope="colgroup"
>
<div className="flex items-center">
@@ -56,16 +59,16 @@ export const PricingTableRowDesktop = (props: any) => {
<h4 className="m-0 ml-2">{category.title}</h4>
</div>
</th>
- <td className="pricing-table__product-row bg-scale-50 dark:bg-scale-300 py-5 px-6"></td>
- <td className="pricing-table__product-row bg-scale-50 dark:bg-scale-300 py-5 px-6"></td>
- <td className="pricing-table__product-row bg-scale-50 dark:bg-scale-300 py-5 px-6"></td>
+ <td className="px-6 py-5 pricing-table__product-row bg-scale-50 dark:bg-scale-300"></td>
+ <td className="px-6 py-5 pricing-table__product-row bg-scale-50 dark:bg-scale-300"></td>
+ <td className="px-6 py-5 pricing-table__product-row bg-scale-50 dark:bg-scale-300"></td>
</tr>
{category.features.map((feat: any) => {
return (
<tr className="divide-x divide-scale-600 dark:divide-scale-400">
<th
- className="flex items-center py-5 px-6 text-sm font-normal text-scale-1200 dark:text-white text-left"
+ className="flex items-center px-6 py-5 text-sm font-normal text-left text-scale-1200 dark:text-white"
scope="row"
>
<span>{feat.title} </span>
@@ -79,11 +82,11 @@ export const PricingTableRowDesktop = (props: any) => {
)}
</th>
- {Object.values(feat.tiers).map((tier: any) => {
+ {Object.values(feat.tiers).map((tier: any, i) => {
return (
- <td className="py-5 px-6">
+ <td key={i} className="px-6 py-5">
{typeof tier === 'boolean' && tier === true ? (
- <Chevron tier={tier} />
+ <IncludedCheck tier={tier} />
) : typeof tier === 'boolean' && tier === false ? (
<Minus tier={tier} />
) : (
@@ -106,11 +109,11 @@ export const PricingTableRowMobile = (props: any) => {
return (
<>
- <table className="mt-8 w-full">
- <caption className="bg-scale-50 dark:bg-dark-900 border-t border-scale-200 dark:border-scale-600 py-3 px-4 text-sm font-medium text-scale-1200 dark:text-white text-left">
+ <table className="w-full mt-8">
+ <caption className="px-4 py-3 text-sm font-medium text-left border-t bg-scale-50 dark:bg-dark-900 border-scale-200 dark:border-scale-600 text-scale-1200 dark:text-white">
<div className="flex items-center gap-2">
{category.icon ? <ProductIcon icon={props.icon} /> : null}
- <span className="text-scale-1200 font-normal">{category.title}</span>
+ <span className="font-normal text-scale-1200">{category.title}</span>
</div>
</caption>
<thead>
@@ -124,10 +127,10 @@ export const PricingTableRowMobile = (props: any) => {
</tr>
</thead>
<tbody className="divide-y divide-scale-600">
- {category.features.map((feat: any) => {
+ {category.features.map((feat: any, i: number) => {
return (
- <tr className="border-t ">
- <th className="py-5 px-4 text-sm font-normal text-scale-1100 text-left" scope="row">
+ <tr key={i} className="border-t">
+ <th className="px-4 py-5 text-sm font-normal text-left text-scale-1100" scope="row">
<span>
<p>{feat.title}</p>
</span>
@@ -135,7 +138,7 @@ export const PricingTableRowMobile = (props: any) => {
<td className="py-5 pr-4 text-right">
{typeof feat.tiers[tier] === 'boolean' && feat.tiers[tier] === true ? (
<div className="inline-block">
- <Chevron tier={tier} />
+ <IncludedCheck tier={tier} />
</div>
) : typeof feat.tiers[tier] === 'boolean' && feat.tiers[tier] === false ? (
<div className="inline-block">
diff --git a/www/data/Pricing.json b/www/data/Pricing.json
index 6d49c4f314e..f20620a2d50 100644
--- a/www/data/Pricing.json
+++ b/www/data/Pricing.json
@@ -28,21 +28,12 @@
"enterprise": true
}
},
- {
- "title": "Optimized database instances",
- "tooltip": "Why? Unique workload requirements, heavy reads and writes, compliance",
- "tiers": {
- "free": false,
- "pro": false,
- "enterprise": "Starting from $50/month"
- }
- },
{
"title": "Database space",
"tiers": {
"free": "Up to 500 MB",
"pro": "8 GB included, then $0.125 per GB",
- "enterprise": "∞"
+ "enterprise": "Unlimited"
}
},
{
@@ -69,7 +60,7 @@
"tiers": {
"free": "Up to 2GB",
"pro": "50GB included, then $0.09 per GB",
- "enterprise": "∞"
+ "enterprise": "Unlimited"
}
}
]
@@ -79,11 +70,19 @@
"icon": "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4",
"features": [
{
- "title": "Users",
+ "title": "Total Users",
+ "tiers": {
+ "free": "Unlimited",
+ "pro": "Unlimited",
+ "enterprise": "Unlimited"
+ }
+ },
+ {
+ "title": "Monthly Active Users",
"tiers": {
"free": "10,000 Users",
"pro": "100,000 Users",
- "enterprise": "∞"
+ "enterprise": "Unlimited"
}
},
{
@@ -125,11 +124,28 @@
"pro": "7 days",
"enterprise": true
}
+ },
+ {
+ "title": "Custom SMTP",
+ "tiers": {
+ "free": true,
+ "pro": true,
+ "enterprise": true
+ }
+ },
+ {
+ "title": "Supabase Auth emails",
+ "tooltip": "Rate limits do not apply to Custom SMTP",
+ "tiers": {
+ "free": "30 / hour",
+ "pro": "100 / hour",
+ "enterprise": "Contact Us"
+ }
}
]
},
"storage": {
- "title": "Object storage",
+ "title": "Storage",
"icon": "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4",
"features": [
{
@@ -137,7 +153,7 @@
"tiers": {
"free": "Up to 1 GB",
"pro": "100 GB included, then $0.021 per GB",
- "enterprise": "∞"
+ "enterprise": "Unlimited"
}
},
{
@@ -146,7 +162,7 @@
"tiers": {
"free": "Up to 2 GB",
"pro": "200 GB included, then $0.09 per GB",
- "enterprise": "∞"
+ "enterprise": "Unlimited"
}
},
{
@@ -156,6 +172,14 @@
"pro": true,
"enterprise": true
}
+ },
+ {
+ "title": "Max file upload size",
+ "tiers": {
+ "free": "Up to 50MB",
+ "pro": "Up to 5GB",
+ "enterprise": "Unlimited"
+ }
}
]
},
@@ -209,6 +233,14 @@
"enterprise": true
}
},
+ {
+ "title": "Email support SLA",
+ "tiers": {
+ "free": false,
+ "pro": false,
+ "enterprise": true
+ }
+ },
{
"title": "Designated support",
"tiers": {
@@ -241,6 +273,14 @@
"enterprise": "Coming soon"
}
},
+ {
+ "title": "Metrics endpoint",
+ "tiers": {
+ "free": false,
+ "pro": false,
+ "enterprise": true
+ }
+ },
{
"title": "SOC2",
"tiers": {
@@ -248,6 +288,38 @@
"pro": false,
"enterprise": "Coming soon"
}
+ },
+ {
+ "title": "SSO",
+ "tiers": {
+ "free": false,
+ "pro": false,
+ "enterprise": "Contact Us"
+ }
+ },
+ {
+ "title": "99.9% SLA",
+ "tiers": {
+ "free": false,
+ "pro": false,
+ "enterprise": true
+ }
+ },
+ {
+ "title": "On Boarding Support",
+ "tiers": {
+ "free": false,
+ "pro": false,
+ "enterprise": true
+ }
+ },
+ {
+ "title": "Designated Customer Success Engineer",
+ "tiers": {
+ "free": false,
+ "pro": false,
+ "enterprise": true
+ }
}
]
}
diff --git a/www/data/PricingAddOn.json b/www/data/PricingAddOn.json
new file mode 100644
index 00000000000..4e0e1c1d30a
--- /dev/null
+++ b/www/data/PricingAddOn.json
@@ -0,0 +1,69 @@
+{
+ "database": {
+ "tiers": [
+ {
+ "plan": "Free (Included)",
+ "pricing": "$0",
+ "cpu": "2-core ARM (burstable)",
+ "memory": "1 GB",
+ "diskIO": "Up to 2,085",
+ "directConnections": "10 (recommended)",
+ "poolerConnections": "50 (recommended)"
+ },
+ {
+ "plan": "Small",
+ "pricing": "$5",
+ "cpu": "2-core ARM (burstable)",
+ "memory": "2 GB",
+ "diskIO": "Up to 2,085",
+ "directConnections": "10 (recommended)",
+ "poolerConnections": "50 (recommended)"
+ },
+ {
+ "plan": "Medium",
+ "pricing": "$50",
+ "cpu": "2-core ARM (burstable)",
+ "memory": "4 GB",
+ "diskIO": "Up to 2,085",
+ "directConnections": "50 (recommended)",
+ "poolerConnections": "500 (recommended)"
+ },
+ {
+ "plan": "Large",
+ "pricing": "$100",
+ "cpu": "2-core ARM (non-burstable)",
+ "memory": "8 GB",
+ "diskIO": "Up to 4,750",
+ "directConnections": "100 (recommended)",
+ "poolerConnections": "1000 (recommended)"
+ },
+ {
+ "plan": "XL",
+ "pricing": "$200",
+ "cpu": "4-core ARM",
+ "memory": "16 GB",
+ "diskIO": "Up to 4,750",
+ "directConnections": "200 (recommended)",
+ "poolerConnections": "2000 (recommended)"
+ },
+ {
+ "plan": "2XL",
+ "pricing": "$400",
+ "cpu": "8-core ARM",
+ "memory": "32 GB",
+ "diskIO": "Up to 4,750",
+ "directConnections": "400 (recommended)",
+ "poolerConnections": "4000 (recommended)"
+ },
+ {
+ "plan": "Custom (need more?)",
+ "pricing": "Contact Us",
+ "cpu": "Contact Us",
+ "memory": "Contact Us",
+ "diskIO": "Contact Us",
+ "directConnections": "Contact Us",
+ "poolerConnections": "Contact Us"
+ }
+ ]
+ }
+}
diff --git a/www/package-lock.json b/www/package-lock.json
index c6a2d9c9b69..83d5d3047e7 100644
--- a/www/package-lock.json
+++ b/www/package-lock.json
@@ -14,7 +14,7 @@
"@next/mdx": "^10.0.7",
"@supabase/supabase-js": "^1.6.0",
"@supabase/ui": "v0.37.0-alpha.50",
- "classnames": "2.2.6",
+ "classnames": "^2.3.1",
"date-fns": "2.10.0",
"deepmerge": "^4.2.2",
"globby": "^12.0.2",
@@ -42,7 +42,7 @@
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.2",
- "@types/classnames": "^2.2.10",
+ "@types/classnames": "^2.3.1",
"@types/jest": "^25.2.2",
"@types/node": "^14.0.1",
"@types/react": "^16.9.35",
@@ -3359,9 +3359,9 @@
}
},
"node_modules/classnames": {
- "version": "2.2.6",
- "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz",
- "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q=="
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.1.tgz",
+ "integrity": "sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA=="
},
"node_modules/coffee-script": {
"version": "1.12.7",
@@ -11491,9 +11491,9 @@
}
},
"classnames": {
- "version": "2.2.6",
- "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz",
- "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q=="
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.1.tgz",
+ "integrity": "sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA=="
},
"coffee-script": {
"version": "1.12.7",
diff --git a/www/package.json b/www/package.json
index 312c3216028..865829ff0dc 100644
--- a/www/package.json
+++ b/www/package.json
@@ -18,7 +18,7 @@
"@next/mdx": "^10.0.7",
"@supabase/supabase-js": "^1.6.0",
"@supabase/ui": "v0.37.0-alpha.50",
- "classnames": "2.2.6",
+ "classnames": "^2.3.1",
"date-fns": "2.10.0",
"deepmerge": "^4.2.2",
"globby": "^12.0.2",
@@ -46,7 +46,7 @@
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.2",
- "@types/classnames": "^2.2.10",
+ "@types/classnames": "^2.3.1",
"@types/jest": "^25.2.2",
"@types/node": "^14.0.1",
"@types/react": "^16.9.35",
diff --git a/www/pages/pricing/index.tsx b/www/pages/pricing/index.tsx
index 2b3bcb642c0..ac8a6a8ff6f 100644
--- a/www/pages/pricing/index.tsx
+++ b/www/pages/pricing/index.tsx
@@ -1,15 +1,17 @@
-import { Accordion, Button, IconCheck, Typography } from '@supabase/ui'
+import { Accordion, Button, Collapsible, IconCheck, IconChevronUp, Typography } from '@supabase/ui'
import Solutions from 'data/Solutions.json'
import { NextSeo } from 'next-seo'
import Link from 'next/link'
import { useRouter } from 'next/router'
-import React from 'react'
+import React, { Fragment, useState } from 'react'
import ReactMarkdown from 'react-markdown'
import CTABanner from '~/components/CTABanner'
import DefaultLayout from '~/components/Layouts/Default'
-import { PricingTableRowDesktop, PricingTableRowMobile } from '~/components/PricingTableRow'
+import { Check, PricingTableRowDesktop, PricingTableRowMobile } from '~/components/PricingTableRow'
import pricing from '~/data/Pricing.json'
import pricingFaq from '~/data/PricingFAQ.json'
+import pricingAddOn from '~/data/PricingAddOn.json'
+import classNames from 'classnames'
export default function IndexPage() {
const router = useRouter()
@@ -35,6 +37,7 @@ export default function IndexPage() {
],
scale: 'Anything more than the above you must upgrade',
shutdown: 'Free projects are shutdown after 7 days of inactivity.',
+ cta: 'Get Started',
},
{
name: 'Pro',
@@ -52,22 +55,24 @@ export default function IndexPage() {
],
scale: 'Additional fees apply for usage and storage beyond the limits above.',
shutdown: '',
+ cta: 'Get Started',
+ },
+ {
+ name: 'Enterprise',
+ href: 'mailto:[email protected]',
+ description: 'Tailored to your business needs.',
+ features: [
+ 'Unlimited Authenticated Users',
+ 'Unlimited GB Database',
+ 'Unlimited GB Storage',
+ 'Unlimited Realtime connections',
+ '30 days Point in Time backup',
+ 'Enterprise Support',
+ ],
+ scale: '',
+ shutdown: '',
+ cta: 'Contact Us',
},
- // {
- // name: 'Enterprise',
- // href: '#',
- // description: 'Tailored to your business needs.',
- // features: [
- // '∞ authenticated users',
- // '∞ GB Database',
- // '∞ GB Storage',
- // 'Unlimited Realtime connections',
- // 'Backups never deleted',
- // 'Enterprise support',
- // ],
- // scale: 'Additional fees apply for usage and storage beyond the limits above.',
- // shutdown: '',
- // },
]
const allPlans = [
@@ -82,16 +87,21 @@ export default function IndexPage() {
priceDescription,
price,
tier,
+ showDollarSign = true,
}: {
description: string
priceDescription: string
price: string
tier: string
+ showDollarSign?: boolean
}) => {
return (
<div className="px-4">
<h2 className="text-base font-normal text-scale-1200">{tier}</h2>
- <span className="h1">${price}</span>
+ <span className="h1">
+ {showDollarSign && '$'}
+ {price}
+ </span>
<p className="p">{priceDescription}</p>
<p className="p">{description}</p>
<Link href="https://app.supabase.io" passHref>
@@ -103,6 +113,8 @@ export default function IndexPage() {
)
}
+ const [isDatabaseAddOnOpen, setIsDatabaseAddOnOpen] = useState(false)
+
return (
<DefaultLayout>
<NextSeo
@@ -120,11 +132,11 @@ export default function IndexPage() {
}}
/>
- <div className="shadow-lg">
- <div className="py-12 bg-scale-100 lg:py-24">
+ <div className="shadow-sm">
+ <div className="py-16 bg-scale-100 lg:py-28">
<div className="px-4 mx-auto text-center max-w-7xl sm:px-6 lg:px-8">
<div className="max-w-3xl mx-auto space-y-2 lg:max-w-none">
- <h2 className="text-3xl text-scale-1200 sm:text-4xl lg:text-5xl">
+ <h2 className="text-3xl text-scale-1200 md:text-5xl lg:text-6xl">
Predictable pricing, no surprises
</h2>
<p className="text-xl text-scale-1100">
@@ -136,23 +148,23 @@ export default function IndexPage() {
<div className="flex flex-col pb-12 bg-scale-100 sm:pb-16 lg:pb-24">
<div className="relative pt-8">
- <div className="absolute inset-0 shadow-sm bg-scale-200 h-3/4" />
+ <div className="absolute inset-0 shadow-sm bg-scale-200 h-3/5" />
<div className="relative z-10 px-4 mx-auto max-w-7xl sm:px-6 lg:px-8">
- <div className="max-w-md mx-auto space-y-4 lg:max-w-5xl lg:grid lg:grid-cols-2 lg:gap-5 lg:space-y-0">
+ <div className="max-w-md mx-auto space-y-4 lg:max-w-7xl lg:grid lg:grid-cols-3 lg:gap-5 lg:space-y-0">
{tiers.map((tier) => (
<div
key={tier.name}
className="flex flex-col overflow-hidden rounded-lg shadow-lg"
>
- <div className="h-64 px-10 pt-8 bg-white dark:bg-scale-700">
+ <div className="h-64 px-10 pt-8 bg-white dark:bg-scale-300">
<h3
className="inline-flex mb-2 text-sm font-normal tracking-wide rounded-full lg:text-xl text-scale-1200"
id="tier-standard"
>
{tier.name}
</h3>
- <div className="flex items-baseline text-6xl font-extrabold text-scale-1200">
+ <div className="flex items-baseline text-6xl font-extrabold lg:text-4xl xl:text-6xl text-scale-1200">
{tier.priceMonthly !== undefined ? (
<>
<span>${tier.priceMonthly}</span>
@@ -170,20 +182,22 @@ export default function IndexPage() {
<p className="mt-4 text-lg text-scale-1100">{tier.description}</p>
</div>
- <div className="flex flex-col justify-between flex-1 px-6 pt-6 pb-8 space-y-6 border-t bg-scale-100 dark:border-dark sm:p-10 sm:pt-6">
+ <div className="flex flex-col justify-between flex-1 px-6 pt-6 pb-8 space-y-6 border-t bg-scale-100 dark:border-scale-600 sm:p-10 sm:pt-6">
<div>
<p className="text-scale-900">Included with plan:</p>
<ul role="list" className="divide-y">
{tier.features.map((feature) => (
<li key={feature} className="flex items-center py-2">
- <div className="flex items-center justify-center w-6 h-6 rounded-full bg-brand-600 bg-opacity-30">
+ <div className="flex items-center justify-center w-6 h-6 rounded-full bg-brand-600 dark:bg-brand-400 bg-opacity-30">
<IconCheck
- className="w-4 h-4 text-green-800"
+ className="w-4 h-4 text-green-800 dark:text-green-900"
aria-hidden="true"
strokeWidth={2}
/>
</div>
- <p className="mb-0 ml-3 text-lg text-scale-1100">{feature}</p>
+ <p className="mb-0 ml-3 text-base text-scale-1100 dark:text-scale-1200">
+ {feature}
+ </p>
</li>
))}
</ul>
@@ -193,8 +207,8 @@ export default function IndexPage() {
<p className="text-xs text-scale-900">{tier.shutdown}</p>
</div>
<a href={tier.href}>
- <Button block size="large">
- Get Started
+ <Button block size="large" className="dark:text-white">
+ {tier.cta}
</Button>
</a>
</div>
@@ -203,100 +217,131 @@ export default function IndexPage() {
</div>
</div>
</div>
+ </div>
+ </div>
- <div className="flex justify-start w-full max-w-5xl px-6 mx-auto mt-8 overflow-hidden lg:px-0">
- <div className="flex flex-col">
- <span className="text-scale-900">All plans include:</span>
- <ul role="list" className="divide-y">
- {allPlans.map((feature) => (
- <li key={feature} className="flex items-center py-2">
- <div className="flex items-center justify-center w-6 h-6 rounded-full bg-brand-600 bg-opacity-30">
- <IconCheck
- className="w-4 h-4 text-green-800"
- aria-hidden="true"
- strokeWidth={2}
- />
- </div>
- <p className="mb-0 ml-3 text-lg text-scale-1100">{feature}</p>
- </li>
- ))}
- </ul>
- </div>
- </div>
+ <div className="container relative px-0 py-16 mx-auto lg:px-16 xl:px-20 sm:py-18 md:py-24 lg:py-24">
+ <div className="text-center">
+ <h2 className="text-3xl text-scale-1200">Add-Ons</h2>
+ <p className="mb-16 text-lg text-scale-1100">
+ Level up your database&apos;s performance with Supabase Database add-ons.
+ </p>
+ </div>
- <div className="relative px-4 mx-auto mt-12 max-w-7xl sm:px-6 lg:px-8">
- <div className="max-w-md mx-auto lg:max-w-5xl">
- <div className="px-6 py-8 border rounded-lg shadow-lg border-brand-500 bg-scale-100 sm:p-10 lg:flex lg:items-center">
- <div className="flex-1">
- <div>
- <h3 className="inline-flex px-4 py-1 text-sm font-semibold tracking-wide uppercase rounded-full bg-brand-600 bg-opacity-30 text-brand-1100">
- Enterprise
- </h3>
- </div>
- <div className="mt-4 text-lg text-scale-1100">
- Get a custom plan, tailor made for your company's needs. Scale to millions of
- users with enterprise grade features. Includes enterprise support + SLAs &amp;
- SSO
+ <div>
+ <Collapsible open={isDatabaseAddOnOpen} onOpenChange={setIsDatabaseAddOnOpen}>
+ <Collapsible.Trigger asChild>
+ <button
+ className={classNames(
+ 'flex flex-row items-center w-full border rounded-t group text-scale-1200 border-scale-500',
+ !isDatabaseAddOnOpen && 'rounded-b'
+ )}
+ type="button"
+ >
+ <div className="flex flex-col items-start flex-1 lg:items-center lg:flex-row">
+ <span className="flex-shrink-0 p-3">See add-on pricing plans</span>
+
+ <div className="flex items-center justify-between flex-1 lg:border-l border-scale-500">
+ <div className="grid grid-cols-1 gap-4 p-3 grid-flow-rows lg:grid-cols-2">
+ <div className="flex items-center space-x-2">
+ <Check />
+ <span>Dedicated Postgres Database</span>
+ </div>
+
+ <div className="flex items-center space-x-2">
+ <Check />
+ <span>Optimized Database Instances</span>
+ </div>
+
+ <div className="flex items-center space-x-2">
+ <Check />
+ <span>Realtime Functionality</span>
+ </div>
+ </div>
</div>
</div>
- <div className="mt-6 rounded-md shadow lg:mt-0 lg:ml-10 lg:flex-shrink-0">
- <Link
- href="mailto:[email protected]"
- as="mailto:[email protected]"
- passHref={true}
- >
- <Button as="a" size="large" type="outline" className="w-full">
- Contact Us for Pricing
- </Button>
- </Link>
+ <div className="flex items-center gap-2 p-3">
+ <IconChevronUp className="transition data-open-parent:rotate-0 data-closed-parent:rotate-180" />
</div>
+ </button>
+ </Collapsible.Trigger>
+
+ <Collapsible.Content>
+ <div>
+ <table className="hidden w-full m-0 overflow-hidden rounded-b table-auto text-scale-1200 lg:table">
+ <thead>
+ <tr className="bg-scale-500">
+ <th className="p-3 text-left">Plan</th>
+ <th className="p-3 text-left">Pricing</th>
+ <th className="p-3 text-left">CPU</th>
+ <th className="p-3 text-left">Memory</th>
+ <th className="p-3 text-left">Connections: Direct</th>
+ <th className="p-3 text-left">Connections: Pooler</th>
+ </tr>
+ </thead>
+ <tbody>
+ {pricingAddOn.database.tiers.map((tier, i) => (
+ <tr key={i} className={classNames(i % 2 === 0 && 'bg-scale-300')}>
+ <td className="p-3">{tier.plan}</td>
+ <td className="p-3">{tier.pricing}</td>
+ <td className="p-3">{tier.cpu}</td>
+ <td className="p-3">{tier.memory}</td>
+ <td className="p-3">{tier.directConnections}</td>
+ <td className="p-3">{tier.poolerConnections}</td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+
+ <table className="w-full m-0 overflow-hidden rounded-b table-auto text-scale-1200 lg:hidden">
+ <tbody>
+ {pricingAddOn.database.tiers.map((tier, i) => (
+ <Fragment key={i}>
+ <tr className={classNames(i % 2 === 0 && 'bg-scale-300')}>
+ <th className="py-3 pl-4 text-left">Plan</th>
+ <td className="px-4 py-3">{tier.plan}</td>
+ </tr>
+ <tr className={classNames(i % 2 === 0 && 'bg-scale-300')}>
+ <th className="py-3 pl-4 text-left">Pricing</th>
+ <td className="px-4 py-3">{tier.pricing}</td>
+ </tr>
+ <tr className={classNames(i % 2 === 0 && 'bg-scale-300')}>
+ <th className="py-3 pl-4 text-left">CPU</th>
+ <td className="px-4 py-3">{tier.cpu}</td>
+ </tr>
+ <tr className={classNames(i % 2 === 0 && 'bg-scale-300')}>
+ <th className="py-3 pl-4 text-left">Memory</th>
+ <td className="px-4 py-3">{tier.memory}</td>
+ </tr>
+ <tr className={classNames(i % 2 === 0 && 'bg-scale-300')}>
+ <th className="py-3 pl-4 text-left">Connections: Direct</th>
+ <td className="px-4 py-3">{tier.directConnections}</td>
+ </tr>
+ <tr className={classNames(i % 2 === 0 && 'bg-scale-300')}>
+ <th className="py-3 pl-4 text-left">Connections: Pooler</th>
+ <td className="px-4 py-3">{tier.poolerConnections}</td>
+ </tr>
+ </Fragment>
+ ))}
+ </tbody>
+ </table>
</div>
- </div>
- </div>
+ </Collapsible.Content>
+ </Collapsible>
</div>
</div>
- <div className="bg-white dark:bg-scale-800">
+ <div className="bg-white dark:bg-scale-100">
<div className="container relative px-6 py-16 mx-auto lg:px-16 xl:px-20 md:pt-24 lg:pt-24">
<div className="text-center">
- <h2 className="text-3xl">Compare plans</h2>
- <p className="mb-16 text-lg">
+ <h2 className="text-3xl text-scale-1200">Compare plans</h2>
+ <p className="mb-16 text-lg text-scale-1100">
Start with a hobby project, collaborate with a team, and scale to millions of users.
</p>
</div>
- {/* <!-- xs to lg --> */}
- <div className="lg:hidden">
- {/* Free - Mobile */}
- <div className="px-4">
- <h2 className="text-lg font-medium leading-6 text-scale-900 dark:text-white">Free</h2>
- <p className="mt-4">
- <span className="text-4xl font-normal text-scale-900 dark:text-white">$0</span>
- <Typography.Text type="secondary">/project /month</Typography.Text>
- </p>
- <p className="my-4 text-sm text-scale-500">
- Perfect for hobby projects and experiments.
- </p>
- <Link href="https://app.supabase.io" as="https://app.supabase.io">
- <a>
- <Button type="outline" size="medium" block>
- Get started
- </Button>
- </a>
- </Link>
- </div>
- <div className="container relative px-6 pt-24 mx-auto lg:px-16 xl:px-20 md:pt-24 lg:pt-24">
- <div className="text-center">
- <h1 className="h1">Predictable pricing, no surprises</h1>
- <p className="p">
- Start with a hobby project, collaborate with a team, and scale to millions of
- users.
- </p>
- </div>
- </div>
- </div>
- <div className="container relative px-0 py-16 mx-auto lg:px-16 xl:px-20 sm:py-18 md:py-24 lg:py-24">
+ <div className="container relative px-0 py-4 mx-auto lg:px-16 xl:px-20 sm:py-12 md:py-16 lg:py-20">
{/* <!-- xs to lg --> */}
<div className=" lg:hidden">
@@ -357,8 +402,9 @@ export default function IndexPage() {
<MobileHeaders
tier="Enterprise"
price={'Contact Us'}
- priceDescription={'/project /month plus usage costs'}
+ priceDescription={'for a quote'}
description={'Designated support team, account manager and technical specialist'}
+ showDollarSign={false}
/>
<PricingTableRowMobile
@@ -386,15 +432,15 @@ export default function IndexPage() {
<caption className="sr-only">Pricing plan comparison</caption>
<thead
className="
- thead--plans
- sticky
- z-10
- top-[62px]
- border-b
- border-scale-700
- dark:border-scale-400
- bg-scale-200
- "
+ thead--plans
+ sticky
+ z-10
+ top-[62px]
+ border-b
+ border-scale-700
+ dark:border-scale-400
+ bg-scale-200
+ "
>
<tr>
<th
@@ -587,27 +633,27 @@ export default function IndexPage() {
</Link>
<div className="mt-16">
{/* @ts-ignore */}
- <Accordion type="bordered">
- <div className="grid grid-cols-1 lg:grid-cols-2 gap-y-10 gap-x-10">
- {pricingFaq.map((faq, i) => {
- return (
- <div>
- {/* @ts-ignore */}
- <Accordion
- type="bordered"
- openBehaviour="multiple"
- size="medium"
- className="text-scale-900 dark:text-white"
- >
- <Accordion.Item header={faq.question} id={`faq--${i.toString()}`}>
- <ReactMarkdown>{faq.answer}</ReactMarkdown>
- </Accordion.Item>
- </Accordion>
- </div>
- )
- })}
- </div>
- </Accordion>
+ {/* <Accordion type="bordered"> */}
+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-y-10 gap-x-10">
+ {pricingFaq.map((faq, i) => {
+ return (
+ <div key={i}>
+ {/* @ts-ignore */}
+ <Accordion
+ type="bordered"
+ openBehaviour="multiple"
+ size="medium"
+ className="text-scale-900 dark:text-white"
+ >
+ <Accordion.Item header={faq.question} id={`faq--${i.toString()}`}>
+ <ReactMarkdown>{faq.answer}</ReactMarkdown>
+ </Accordion.Item>
+ </Accordion>
+ </div>
+ )
+ })}
+ </div>
+ {/* </Accordion> */}
</div>
</div>
</div>