The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: add support pricing add-on + clean up
Alaister Young9f1243b608ec
diff --git a/www/components/PricingAddOnTable.tsx b/www/components/PricingAddOnTable.tsxnew file mode 100644index 00000000000..437d76ff6a2--- /dev/null+++ b/www/components/PricingAddOnTable.tsx@@ -0,0 +1,117 @@+import { Collapsible, IconChevronUp } from '@supabase/ui'+import classNames from 'classnames'+import { Fragment, useMemo, useState } from 'react'+import { Check } from './PricingTableRow'++interface PricingAddOnTableProps {+ pricing: {+ title: string+ features: string[]+ rows: {+ columns: {+ key: string+ title: string+ value: string+ }[]+ }[]+ }+ icon: JSX.Element+}++const PricingAddOnTable = ({ icon, pricing }: PricingAddOnTableProps) => {+ const [isAddOnOpen, setIsAddOnOpen] = useState(false)++ const columnNames = useMemo(+ () =>+ pricing.rows.map((row) =>+ row.columns.map((column) => ({ key: column.key, title: column.title }))+ )[0],+ [pricing]+ )++ return (+ <div className="overflow-hidden transition duration-500 rounded-md shadow-md hover:shadow-lg group">+ <Collapsible open={isAddOnOpen} onOpenChange={setIsAddOnOpen}>+ <Collapsible.Trigger asChild>+ <button+ className={classNames(+ 'flex flex-col items-start lg:flex-row lg:items-center w-full rounded-t-md group text-scale-1200 bg-scale-100 dark:bg-scale-200 dark:border border-scale-300',+ !isAddOnOpen && 'rounded-b-md'+ )}+ type="button"+ >+ <div className="flex flex-col items-start flex-1 w-full lg:w-auto lg:items-center lg:flex-row">+ <div className="relative flex items-center self-stretch w-full px-3 py-8 space-x-3 bg-white dark:bg-scale-300 lg:py-0 lg:w-72">+ <span className="absolute transition-transform duration-500 -left-6 group-hover:translate-x-1">+ {icon}+ </span>+ <span className="flex-shrink-0 pl-10">+ See <strong className="font-medium">{pricing.title}</strong> add-on plans+ </span>+ </div>++ <div className="flex items-center justify-between flex-1 lg:border-l border-scale-500 dark:border-scale-400">+ <div className="grid grid-cols-1 px-3 py-6 gap-y-3 gap-x-6 grid-flow-rows lg:grid-cols-2">+ {pricing.features.map((feature, i) => (+ <div key={i} className="flex items-center space-x-2">+ <Check />+ <span className="text-sm">{feature}</span>+ </div>+ ))}+ </div>+ </div>+ </div>++ <div className="flex items-center self-center gap-2 p-3">+ <IconChevronUp className="w-8 h-8 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">+ {columnNames.map((column) => (+ <th key={column.key} className="p-3 font-medium text-left">+ {column.title}+ </th>+ ))}+ </tr>+ </thead>+ <tbody>+ {pricing.rows.map((row, i) => (+ <tr key={i} className={classNames(i % 2 === 0 && 'bg-scale-300')}>+ {row.columns.map((column) => (+ <td key={column.key} className="p-3">+ {column.value}+ </td>+ ))}+ </tr>+ ))}+ </tbody>+ </table>++ <table className="w-full m-0 overflow-hidden rounded-b table-auto text-scale-1200 lg:hidden">+ <tbody>+ {pricing.rows.map((row, i) => (+ <Fragment key={i}>+ {row.columns.map((column) => (+ <tr key={column.key} className={classNames(i % 2 === 0 && 'bg-scale-300')}>+ <th className="py-3 pl-4 font-medium text-left">{column.title}</th>+ <td className="px-4 py-3">{column.value}</td>+ </tr>+ ))}+ </Fragment>+ ))}+ </tbody>+ </table>+ </div>+ </Collapsible.Content>+ </Collapsible>+ </div>+ )+}++export default PricingAddOnTablediff --git a/www/components/PricingTableRow.tsx b/www/components/PricingTableRow.tsxindex f0f25bfc94a..0c900700a99 100644--- a/www/components/PricingTableRow.tsx+++ b/www/components/PricingTableRow.tsx@@ -49,9 +49,12 @@ export const PricingTableRowDesktop = (props: any) => {return (<>- <tr className="divide-x dark:divide-scale-400" style={{ borderTop: 'none' }}>+ <tr+ className="divide-x divide-scale-600 dark:divide-scale-400 bg-scale-200"+ style={{ borderTop: 'none' }}+ ><th- 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"+ className="py-3 pl-6 sticky z-10 top-[62px] text-sm font-medium bg-scale-200 text-left bg-scale-50 dark:bg-scale-300 text-scale-1200 dark:text-white"scope="colgroup"><div className="flex items-center">@@ -59,9 +62,9 @@ export const PricingTableRowDesktop = (props: any) => {<h4 className="m-0 ml-2">{category.title}</h4></div></th>- <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>+ <td className="px-6 py-5 bg-scale-50 dark:bg-scale-300"></td>+ <td className="px-6 py-5 bg-scale-50 dark:bg-scale-300"></td>+ <td className="px-6 py-5 bg-scale-50 dark:bg-scale-300"></td></tr>{category.features.map((feat: any) => {diff --git a/www/data/Pricing.json b/www/data/Pricing.jsonindex f20620a2d50..fec1a99a417 100644--- a/www/data/Pricing.json+++ b/www/data/Pricing.json@@ -71,6 +71,7 @@"features": [{"title": "Total Users",+ "tooltip": "The maximum number of users your project can have","tiers": {"free": "Unlimited","pro": "Unlimited",@@ -185,7 +186,7 @@},"dashboard": {"title": "Dashboard",- "icon": "",+ "icon": "M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4","features": [{"title": "Team members",@@ -215,7 +216,7 @@},"support": {"title": "Support and Compliance",- "icon": "",+ "icon": "M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z","features": [{"title": "Community support",@@ -312,14 +313,6 @@"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.jsonindex 4e0e1c1d30a..0eaacfa10de 100644--- a/www/data/PricingAddOn.json+++ b/www/data/PricingAddOn.json@@ -1,68 +1,234 @@{"database": {- "tiers": [+ "title": "Database",+ "features": [+ "Fully Managed PostgreSQL",+ "Dedicated Postgres Database",+ "Optimized Database Instances",+ "Realtime Functionality"+ ],+ "rows": [{- "plan": "Free (Included)",- "pricing": "$0",- "cpu": "2-core ARM (burstable)",- "memory": "1 GB",- "diskIO": "Up to 2,085",- "directConnections": "10 (recommended)",- "poolerConnections": "50 (recommended)"+ "columns": [+ { "key": "plan", "title": "Plan", "value": "Free (Included)" },+ { "key": "pricing", "title": "Pricing", "value": "$0" },+ { "key": "cpu", "title": "CPU", "value": "2-core ARM (shared)" },+ { "key": "memory", "title": "Memory", "value": "1 GB" },+ { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 2,085 Mbps" },+ {+ "key": "directConnections",+ "title": "Connections: Direct",+ "value": "10 (recommended)"+ },+ {+ "key": "poolerConnections",+ "title": "Connections: Pooler",+ "value": "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)"+ "columns": [+ { "key": "plan", "title": "Plan", "value": "Small" },+ { "key": "pricing", "title": "Pricing", "value": "$5" },+ { "key": "cpu", "title": "CPU", "value": "2-core ARM (shared)" },+ { "key": "memory", "title": "Memory", "value": "2 GB" },+ { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 2,085 Mbps" },+ {+ "key": "directConnections",+ "title": "Connections: Direct",+ "value": "10 (recommended)"+ },+ {+ "key": "poolerConnections",+ "title": "Connections: Pooler",+ "value": "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)"+ "columns": [+ { "key": "plan", "title": "Plan", "value": "Medium" },+ { "key": "pricing", "title": "Pricing", "value": "$50" },+ { "key": "cpu", "title": "CPU", "value": "2-core ARM (shared)" },+ { "key": "memory", "title": "Memory", "value": "4 GB" },+ { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 2,085 Mbps" },+ {+ "key": "directConnections",+ "title": "Connections: Direct",+ "value": "50 (recommended)"+ },+ {+ "key": "poolerConnections",+ "title": "Connections: Pooler",+ "value": "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)"+ "columns": [+ { "key": "plan", "title": "Plan", "value": "Large" },+ { "key": "pricing", "title": "Pricing", "value": "$100" },+ { "key": "cpu", "title": "CPU", "value": "2-core ARM (dedicated)" },+ { "key": "memory", "title": "Memory", "value": "8 GB" },+ { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 4,750 Mbps" },+ {+ "key": "directConnections",+ "title": "Connections: Direct",+ "value": "100 (recommended)"+ },+ {+ "key": "poolerConnections",+ "title": "Connections: Pooler",+ "value": "1000 (recommended)"+ }+ ]},{- "plan": "XL",- "pricing": "$200",- "cpu": "4-core ARM",- "memory": "16 GB",- "diskIO": "Up to 4,750",- "directConnections": "200 (recommended)",- "poolerConnections": "2000 (recommended)"+ "columns": [+ { "key": "plan", "title": "Plan", "value": "XL" },+ { "key": "pricing", "title": "Pricing", "value": "$200" },+ { "key": "cpu", "title": "CPU", "value": "4-core ARM (dedicated)" },+ { "key": "memory", "title": "Memory", "value": "16 GB" },+ { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 4,750 Mbps" },+ {+ "key": "directConnections",+ "title": "Connections: Direct",+ "value": "200 (recommended)"+ },+ {+ "key": "poolerConnections",+ "title": "Connections: Pooler",+ "value": "2000 (recommended)"+ }+ ]},{- "plan": "2XL",- "pricing": "$400",- "cpu": "8-core ARM",- "memory": "32 GB",- "diskIO": "Up to 4,750",- "directConnections": "400 (recommended)",- "poolerConnections": "4000 (recommended)"+ "columns": [+ { "key": "plan", "title": "Plan", "value": "2XL" },+ { "key": "pricing", "title": "Pricing", "value": "$400" },+ { "key": "cpu", "title": "CPU", "value": "8-core ARM (dedicated)" },+ { "key": "memory", "title": "Memory", "value": "32 GB" },+ { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 4,750 Mbps" },+ {+ "key": "directConnections",+ "title": "Connections: Direct",+ "value": "400 (recommended)"+ },+ {+ "key": "poolerConnections",+ "title": "Connections: Pooler",+ "value": "4000 (recommended)"+ }+ ]},{- "plan": "Custom (need more?)",- "pricing": "Contact Us",- "cpu": "Contact Us",- "memory": "Contact Us",- "diskIO": "Contact Us",- "directConnections": "Contact Us",- "poolerConnections": "Contact Us"+ "columns": [+ { "key": "plan", "title": "Plan", "value": "Custom (need more?)" },+ { "key": "pricing", "title": "Pricing", "value": "Contact Us" },+ { "key": "cpu", "title": "CPU", "value": "Contact Us" },+ { "key": "memory", "title": "Memory", "value": "Contact Us" },+ { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Contact Us" },+ {+ "key": "directConnections",+ "title": "Connections: Direct",+ "value": "Contact Us"+ },+ {+ "key": "poolerConnections",+ "title": "Connections: Pooler",+ "value": "Contact Us"+ }+ ]+ }+ ]+ },+ "support": {+ "title": "Support",+ "features": [+ "Guaranteed Response Times",+ "SLAs",+ "Designated Support",+ "Advanced Support Scope"+ ],+ "rows": [+ {+ "columns": [+ { "key": "plan", "title": "Plan", "value": "Standard" },+ { "key": "pricing", "title": "Pricing", "value": "Contact Us" },+ {+ "key": "severityLevelUrgent",+ "title": "1. Severity Level: Urgent",+ "value": "1 business hour (24/7x365)"+ },+ {+ "key": "severityLevelHigh",+ "title": "2. Severity Level: High",+ "value": "4 business hours (Monday - Friday)"+ },+ {+ "key": "severityLevelNormal",+ "title": "3. Severity Level: Normal",+ "value": "1 business day (Monday - Friday)"+ },+ {+ "key": "severityLevelLow",+ "title": "4. Severity Level: Low",+ "value": "2 business days (Monday - Friday)"+ }+ ]+ },+ {+ "columns": [+ { "key": "plan", "title": "Plan", "value": "Priority" },+ { "key": "pricing", "title": "Pricing", "value": "Contact Us" },+ {+ "key": "severityLevelUrgent",+ "title": "1. Severity Level: Urgent",+ "value": "1 business hour (24/7x365)"+ },+ {+ "key": "severityLevelHigh",+ "title": "2. Severity Level: High",+ "value": "2 business hours (Monday - Friday)"+ },+ {+ "key": "severityLevelNormal",+ "title": "3. Severity Level: Normal",+ "value": "1 business day (Monday - Friday)"+ },+ {+ "key": "severityLevelLow",+ "title": "4. Severity Level: Low",+ "value": "2 business days (Monday - Friday)"+ }+ ]+ },+ {+ "columns": [+ { "key": "plan", "title": "Plan", "value": "Priority Plus" },+ { "key": "pricing", "title": "Pricing", "value": "Contact Us" },+ {+ "key": "severityLevelUrgent",+ "title": "1. Severity Level: Urgent",+ "value": "1 business hour (24/7x365)"+ },+ {+ "key": "severityLevelHigh",+ "title": "2. Severity Level: High",+ "value": "2 business hours (24/7x365)"+ },+ {+ "key": "severityLevelNormal",+ "title": "3. Severity Level: Normal",+ "value": "12 business hours (Monday - Friday)"+ },+ {+ "key": "severityLevelLow",+ "title": "4. Severity Level: Low",+ "value": "1 business days (Monday - Friday)"+ }+ ]}]}diff --git a/www/package-lock.json b/www/package-lock.jsonindex 83d5d3047e7..e79d7d34a7c 100644--- a/www/package-lock.json+++ b/www/package-lock.json@@ -9,6 +9,7 @@"version": "0.0.2","license": "MIT","dependencies": {+ "@heroicons/react": "^1.0.6","@mdx-js/loader": "^1.6.22","@mdx-js/react": "^1.6.22","@next/mdx": "^10.0.7",@@ -1734,6 +1735,14 @@"react-dom": "^16 || ^17 || ^18"}},+ "node_modules/@heroicons/react": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-1.0.6.tgz",+ "integrity": "sha512-JJCXydOFWMDpCP4q13iEplA503MQO3xLoZiKum+955ZCtHINWnx26CUxVxxFQu/uLb4LW3ge15ZpzIkXKkJ8oQ==",+ "peerDependencies": {+ "react": ">= 16"+ }+ },"node_modules/@jest/types": {"version": "25.5.0","resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz",@@ -10275,6 +10284,12 @@"integrity": "sha512-aaRnYxBb3MU2FNJf3Ut9RMTUqqU3as0aI1lQhgo2n9Fa67wRu14iOGqx93xB+uMNVfNwZ5B3y/Ndm7qZGuFeMQ==","requires": {}},+ "@heroicons/react": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-1.0.6.tgz",+ "integrity": "sha512-JJCXydOFWMDpCP4q13iEplA503MQO3xLoZiKum+955ZCtHINWnx26CUxVxxFQu/uLb4LW3ge15ZpzIkXKkJ8oQ==",+ "requires": {}+ },"@jest/types": {"version": "25.5.0","resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz",diff --git a/www/package.json b/www/package.jsonindex 865829ff0dc..ccbc837b1fa 100644--- a/www/package.json+++ b/www/package.json@@ -13,6 +13,7 @@"postbuild": "node ./internals/generate-sitemap.mjs"},"dependencies": {+ "@heroicons/react": "^1.0.6","@mdx-js/loader": "^1.6.22","@mdx-js/react": "^1.6.22","@next/mdx": "^10.0.7",diff --git a/www/pages/pricing/index.tsx b/www/pages/pricing/index.tsxindex ac8a6a8ff6f..54a4962b7b4 100644--- a/www/pages/pricing/index.tsx+++ b/www/pages/pricing/index.tsx@@ -1,17 +1,18 @@-import { Accordion, Button, Collapsible, IconCheck, IconChevronUp, Typography } from '@supabase/ui'+import { ServerIcon, SupportIcon } from '@heroicons/react/outline'+import { Accordion, Button, IconCheck } 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, { Fragment, useState } from 'react'+import React from 'react'import ReactMarkdown from 'react-markdown'import CTABanner from '~/components/CTABanner'import DefaultLayout from '~/components/Layouts/Default'-import { Check, PricingTableRowDesktop, PricingTableRowMobile } from '~/components/PricingTableRow'+import PricingAddOnTable from '~/components/PricingAddOnTable'+import { 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'+import pricingFaq from '~/data/PricingFAQ.json'export default function IndexPage() {const router = useRouter()@@ -36,7 +37,7 @@ export default function IndexPage() {'Standard Support',],scale: 'Anything more than the above you must upgrade',- shutdown: 'Free projects are shutdown after 7 days of inactivity.',+ shutdown: 'Free projects are paused after 7 days of inactivity.',cta: 'Get Started',},{@@ -52,6 +53,7 @@ export default function IndexPage() {'Unlimited Realtime Connections','7 Days Backup','High Priority Support',+ 'Compute Add-Ons',],scale: 'Additional fees apply for usage and storage beyond the limits above.',shutdown: '',@@ -60,14 +62,15 @@ export default function IndexPage() {{name: 'Enterprise',href: 'mailto:[email protected]',- description: 'Tailored to your business needs.',+ description: 'For large-scale applications managing serious workloads.',features: [- 'Unlimited Authenticated Users',- 'Unlimited GB Database',- 'Unlimited GB Storage',- 'Unlimited Realtime connections',- '30 days Point in Time backup',- 'Enterprise Support',+ 'Point in time recovery',+ 'Designated Support manager & SLAs',+ 'Enterprise OAuth providers',+ 'SSO/SAML',+ 'SOC2',+ 'Custom contracts & invoicing',+ 'On-premise support',],scale: '',shutdown: '',@@ -75,12 +78,6 @@ export default function IndexPage() {},]- const allPlans = [- 'Custom SMTP server',- 'OAuth Providers',- 'Dedicated project instance',- 'Unlimited API requests',- ]const MobileHeaders = ({// title,description,@@ -96,7 +93,7 @@ export default function IndexPage() {showDollarSign?: boolean}) => {return (- <div className="px-4">+ <div className="px-4 mt-8"><h2 className="text-base font-normal text-scale-1200">{tier}</h2><span className="h1">{showDollarSign && '$'}@@ -113,8 +110,6 @@ export default function IndexPage() {)}- const [isDatabaseAddOnOpen, setIsDatabaseAddOnOpen] = useState(false)-return (<DefaultLayout><NextSeo@@ -133,7 +128,7 @@ export default function IndexPage() {/><div className="shadow-sm">- <div className="py-16 bg-scale-100 lg:py-28">+ <div className="relative z-10 py-16 shadow-sm 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 md:text-5xl lg:text-6xl">@@ -155,7 +150,7 @@ export default function IndexPage() {{tiers.map((tier) => (<divkey={tier.name}- className="flex flex-col overflow-hidden rounded-lg shadow-lg"+ className="flex flex-col overflow-hidden transition duration-500 rounded-lg shadow-lg hover:shadow-xl dark:border border-scale-300 hover:-translate-y-1"><div className="h-64 px-10 pt-8 bg-white dark:bg-scale-300"><h3@@ -164,7 +159,7 @@ export default function IndexPage() {>{tier.name}</h3>- <div className="flex items-baseline text-6xl font-extrabold lg:text-4xl xl:text-6xl text-scale-1200">+ <div className="flex items-baseline text-5xl font-extrabold lg:text-4xl xl:text-6xl text-scale-1200">{tier.priceMonthly !== undefined ? (<><span>${tier.priceMonthly}</span>@@ -220,137 +215,45 @@ export default function IndexPage() {</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-4 py-16 mx-auto shadow-sm 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's performance with Supabase Database add-ons.+ Level up your Supabase experience with add-ons.</p></div>- <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="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>- </Collapsible.Content>- </Collapsible>+ <div className="space-y-8">+ <PricingAddOnTable+ icon={<ServerIcon className="w-20 h-20 text-scale-800" />}+ pricing={pricingAddOn.database}+ />+ <PricingAddOnTable+ icon={<SupportIcon className="w-20 h-20 text-scale-800" />}+ pricing={pricingAddOn.support}+ /></div></div><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="container relative px-4 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">Compare plans</h2>+ <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>- <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">+ <div className="mb-16 sm:mb-18 md:mb-24 lg:mb-24">{/* <!-- xs to lg --> */}- <div className=" lg:hidden">+ <div className="lg:hidden">{/* Free - Mobile */}<MobileHeaderstier="Free"price={'0'}- priceDescription={'/project /month'}+ priceDescription={'/project/month'}description={'Perfect for hobby projects and experiments'}/>@@ -369,14 +272,22 @@ export default function IndexPage() {tier={'free'}icon={Solutions['storage'].icon}/>- <PricingTableRowMobile category={pricing.dashboard} tier={'free'} />- <PricingTableRowMobile category={pricing.support} tier={'free'} />+ <PricingTableRowMobile+ category={pricing.dashboard}+ tier={'free'}+ icon={pricing.dashboard.icon}+ />+ <PricingTableRowMobile+ category={pricing.support}+ tier={'free'}+ icon={pricing.support.icon}+ />{/* Pro - Mobile */}<MobileHeaderstier="Pro"price={'25'}- priceDescription={'/project /month + usage costs'}+ priceDescription={'/project/month + usage costs'}description={'Everything you need to scale your project into production'}/>@@ -395,8 +306,16 @@ export default function IndexPage() {tier={'pro'}icon={Solutions['storage'].icon}/>- <PricingTableRowMobile category={pricing.dashboard} tier={'pro'} />- <PricingTableRowMobile category={pricing.support} tier={'pro'} />+ <PricingTableRowMobile+ category={pricing.dashboard}+ tier={'pro'}+ icon={pricing.dashboard.icon}+ />+ <PricingTableRowMobile+ category={pricing.support}+ tier={'pro'}+ icon={pricing.support.icon}+ />{/* Enterprise - Mobile */}<MobileHeaders@@ -422,68 +341,65 @@ export default function IndexPage() {tier={'enterprise'}icon={Solutions['storage'].icon}/>- <PricingTableRowMobile category={pricing.dashboard} tier={'enterprise'} />- <PricingTableRowMobile category={pricing.support} tier={'enterprise'} />+ <PricingTableRowMobile+ category={pricing.dashboard}+ tier={'enterprise'}+ icon={pricing.dashboard.icon}+ />+ <PricingTableRowMobile+ category={pricing.support}+ tier={'enterprise'}+ icon={pricing.support.icon}+ /></div>{/* <!-- lg+ --> */}<div className="hidden lg:block"><table className="w-full h-px table-fixed"><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 className="sticky z-10 top-[62px] border-b border-scale-700 dark:border-scale-400 bg-scale-200 dark:bg-scale-300"><tr><th- className="relative px-6 pb-4 text-sm font-normal text-left text-scale-900"+ className="relative px-6 py-4 text-sm font-normal text-left text-scale-1200"scope="col"><span className="sr-only">Feature by</span><span>Plans</span><div- className="absolute bottom-0 left-0 h-0.25 w-full bg-scale-200 dark:bg-scale-300"+ className="absolute bottom-0 left-0 h-0.25 w-full"style={{ height: '1px' }}></div></th><th- className="w-1/4 px-6 pb-4 text-sm font-normal text-left text-scale-1200"+ className="w-1/4 px-6 py-4 text-sm font-normal text-left text-scale-1200"scope="col"><span>Free</span><div- className="absolute bottom-0 left-0 h-0.25 w-full bg-scale-200 dark:bg-scale-300"+ className="absolute bottom-0 left-0 h-0.25 w-full"style={{ height: '1px' }}></div></th><th- className="w-1/4 px-6 pb-4 text-sm font-normal leading-6 text-left text-scale-1200"+ className="w-1/4 px-6 py-4 text-sm font-normal leading-6 text-left text-scale-1200"scope="col"><span>Pro</span><div- className="absolute bottom-0 left-0 h-0.25 w-full bg-scale-200 dark:bg-scale-300"+ className="absolute bottom-0 left-0 h-0.25 w-full"style={{ height: '1px' }}></div></th><th- className="w-1/4 px-6 pb-4 text-sm font-normal leading-6 text-left text-scale-1200"+ className="w-1/4 px-6 py-4 text-sm font-normal leading-6 text-left text-scale-1200"scope="col"><span>Enterprise</span><div- className="absolute bottom-0 left-0 h-0.25 w-full bg-scale-200 dark:bg-scale-300"+ className="absolute bottom-0 left-0 h-0.25 w-full"style={{ height: '1px' }}></div></th>@@ -501,7 +417,7 @@ export default function IndexPage() {<td className="h-full px-6 py-8 align-top"><div className="relative table h-full"><span className="h1 text-scale-1200">$0</span>- <p className="p"> /project /month</p>+ <p className="p">/project/month</p><p className="text-sm p">Perfect for hobby projects and experiments</p>@@ -518,7 +434,7 @@ export default function IndexPage() {<td className="h-full px-6 py-8 align-top"><div className="relative table h-full"><span className="h1 text-scale-1200">$25</span>- <p className="p"> /project /month + usage costs</p>+ <p className="p">/project/month + usage costs</p><p className="text-sm p">Everything you need to scale your project into production@@ -566,8 +482,11 @@ export default function IndexPage() {category={pricing.storage}icon={Solutions['storage'].icon}/>- <PricingTableRowDesktop category={pricing.dashboard} />- <PricingTableRowDesktop category={pricing.support} />+ <PricingTableRowDesktop+ category={pricing.dashboard}+ icon={pricing.dashboard.icon}+ />+ <PricingTableRowDesktop category={pricing.support} icon={pricing.support.icon} /></tbody><tfoot><tr className="border-t border-scale-200 dark:border-scale-600">diff --git a/www/styles/index.css b/www/styles/index.cssindex 738024d64de..8947bb54816 100644--- a/www/styles/index.css+++ b/www/styles/index.css@@ -165,7 +165,7 @@ h6 { */} */.sbui-tabs--alt div[role='tablist'] .sbui-btn-primary {- @apply bg-gray-800 text-white dark:bg-scale-300 dark:text-white;+ @apply text-white bg-gray-800 dark:bg-scale-300 dark:text-white;text-shadow: none;font-weight: 400;}@@ -216,29 +216,6 @@ table {border-collapse: collapse;}-table .thead--plans th {- @apply py-4;- position: sticky;- border-collapse: separate;- top: 0;- z-index: 5;-}--.pricing-table__product-row {- /* @apply py-4; */- position: sticky;- top: 0;- z-index: 5;-}--/*-th {- border-right: 5px solid red;- background: white;- background-clip: padding-box;-}-*/-.sbui-typography-container thead {@apply text-gray-500 dark:text-gray-200;}