The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
add sticky nav and top header sections
Jonathan Summers-Muir3ffe8e791797
diff --git a/www/components/PricingTableRow.tsx b/www/components/PricingTableRow.tsxindex 8c5bfaa7a91..2f26e56d977 100644--- a/www/components/PricingTableRow.tsx+++ b/www/components/PricingTableRow.tsx@@ -47,7 +47,7 @@ export const PricingTableRowDesktop = (props: any) => {<><tr className="divide-x dark:divide-gray-600" style={{ borderTop: 'none' }}><th- className="bg-gray-50 dark:bg-gray-700 py-3 pl-6 text-sm font-medium text-gray-900 dark:text-white text-left"+ className="pricing-table__product-row bg-gray-50 dark:bg-gray-700 py-3 pl-6 text-sm font-medium text-gray-900 dark:text-white text-left"scope="colgroup"><Space size={4}>@@ -72,9 +72,9 @@ export const PricingTableRowDesktop = (props: any) => {<Typography.Title level={4}>{category.title}</Typography.Title></Space></th>- <td className="bg-gray-50 dark:bg-dark-700 py-5 px-6"></td>- <td className="bg-gray-50 dark:bg-dark-700 py-5 px-6"></td>- <td className="bg-gray-50 dark:bg-dark-700 py-5 px-6"></td>+ <td className="pricing-table__product-row bg-gray-50 dark:bg-dark-700 py-5 px-6"></td>+ <td className="pricing-table__product-row bg-gray-50 dark:bg-dark-700 py-5 px-6"></td>+ <td className="pricing-table__product-row bg-gray-50 dark:bg-dark-700 py-5 px-6"></td></tr>{category.features.map((feat: any) => {diff --git a/www/data/Pricing.json b/www/data/Pricing.jsonindex 008c76f93a5..10628e74ca6 100644--- a/www/data/Pricing.json+++ b/www/data/Pricing.json@@ -54,6 +54,7 @@},{"title": "Pausing",+ "tooltip": "Unused projects that have no activity will be shut down. They can be reactivated by logging into the dashboard","tiers": {"free": "Paused after 1 week inactivity","pro": "Never",diff --git a/www/data/PricingFAQ.json b/www/data/PricingFAQ.jsonindex ec5ac98c04a..3a6d6b3e4b5 100644--- a/www/data/PricingFAQ.json+++ b/www/data/PricingFAQ.json@@ -1,22 +1,22 @@[{- "question": "When will i be billed?",+ "question": "When will I be billed?","answer": "Billing will go live from the 7th of April. Once live, we will give you 2 weeks notice to confirm you are happy to start paying for projects. For subsequent new projects on a paid tier you will be charged immediately"},{- "question": "How can i monitor my usage and billing?",+ "question": "How can I monitor my usage and billing?","answer": "You can view your usage and billing in your project settings on the Dashboard"},{- "question": "Can i cap my usage so my bill doesn't run over?",+ "question": "Can I cap my usage so my bill doesn't run over?","answer": "Not yet, however we do not \"automatically\" upgrade you. This is to prevent surprise bill spikes. We have soft limits meaning if you do go over we will not automatically bill you. We will reach out first to discuss moving up a tier. What are soft limits? Soft limits mean if you cross your usage tier we will let you know and give you a grace period without charging you for exceeding your limits. We will email you to discuss moving up a tier and you will not be charged until you agree to move up a tier. If you do not respond, or do want to move up a tier and continue to exceed your limits then we may have to limit your projects consumption."},{- "question": "How do i know which tier i need before i even finish building my project?",+ "question": "How do I know which tier I need before I even finish building my project?","answer": "Start on the free tier and see what happens. We have soft limits and will reach out to you to let you know if you need to upgrade to a higher tier."},{- "question": "I'm worried i could end up with a huge bill at the end of the month",+ "question": "I'm worried I could end up with a huge bill at the end of the month","answer": "Your bill will not automatically run over the tier you have selected. We have soft limits meaning if you do go over we will not automatically bill you for the overrun. We will reach out first to discuss moving up a tier."},{@@ -24,15 +24,15 @@"answer": "Yes, you can use the free tier."},{- "question": "How do i upgrade or downgrade my tier?",+ "question": "How do I upgrade or downgrade my tier?","answer": "Email us at <[email protected]>[](mailto:[email protected])"},{- "question": "Will i hit any kind of API limits?",+ "question": "Will I hit any kind of API limits?","answer": "There are no API limits. For Free and Pro tiers we have allocated you a database which you are free to use as much as you need to within the resources listed for that tier."},{- "question": "What happens if i run over my limits for a feature?",+ "question": "What happens if I run over my limits for a feature?","answer": "We have a soft limits policy so if you do run over we will reach out to you with a grace period for you to make a decision on your project and upgrading a tier. This means your application will remain live and you will not automatically be billed more."},{@@ -40,35 +40,35 @@"answer": "Our pricing is in Beta. You can read more about our decisions in our blog on pricing here. Pricing may change in the future, however as a team of developers we are committed to pricing being as developer friendly as possible."},{- "question": "I read that you are giving credits to users who sign up during beta, do i get those?",+ "question": "I read that you are giving credits to users who sign up during beta, do I get those?","answer": "If you signed up before the end of launch week we will issue credits for the Pro tier. You can claim them by getting in touch on <[email protected]>[](mailto:[email protected])."},{- "question": "What if i want to cancel my monthly subscription?",+ "question": "What if I want to cancel my monthly subscription?","answer": "Simply delete your project within the Dashboard and your subscription will be cancelled."},{- "question": "If i pay annually and cancel my project, what happens?",+ "question": "If I pay annually and cancel my project, what happens?","answer": "We don't have annual billing at this stage."},{- "question": "Do i get a notification if i am approaching my usage limits?",+ "question": "Do I get a notification if I am approaching my usage limits?","answer": "Yes, we will email you when you are within 20% of your tier limits."},{- "question": "If i hit the resource limits for my tier what happens to my project? ? Does it shut down?",+ "question": "If I hit the resource limits for my tier what happens to my project? ? Does it shut down?","answer": "We have a soft limits policy so if you do run over we will reach out to you with a grace period for you to make a decision on your project and upgrading a tier. This means your project will remain live and you will not automatically be billed more."},{- "question": "If i exceed my limits, do I just get charged \"Overage\" for the items I use?",+ "question": "If I exceed my limits, do I just get charged \"Overage\" for the items I use?","answer": "We have soft limits so we will reach out if you exceed resource limits on the Pro Tier. Your project plan will need to move to the Usage based pricing. We will work with you in advance to understand your project cost forecasts."},{- "question": "Do you automatically upgrade my tier if i cross my usage limits?",+ "question": "Do you automatically upgrade my tier if I cross my usage limits?","answer": "No, we have a soft limits policy so if you do run over we will reach out to you with a grace period for you to make a decision on your project and upgrading a tier. This means your application will remain live and you will not automatically be billed the next tier without your permission."},{- "question": "I need more than the Pro tier, what do i need to do?",+ "question": "I need more than the Pro tier, what do I need to do?","answer": "Contact us via <[email protected]>[](mailto:[email protected]) and we will be happy to help you upgrade."},{@@ -76,15 +76,15 @@"answer": "Contact us via <[email protected]>[](mailto:[email protected]) and we will be happy to help you upgrade."},{- "question": "What happens if i need to transfer my project to someone else in future?",+ "question": "What happens if I need to transfer my project to someone else in future?","answer": "Contact us via <[email protected]>[](mailto:[email protected]) and we will be happy to help migrate your project to a new / another account."},{"question": "Do you offer a free trial?",- "answer": "We offer a Free Tier. If you signed up during beta you may be eligible for free credits. If you need more than the Pro Tier we can discuss, Allowing you try out and develop with Supabase before ~~making a longer term commitment~~ you scale up your project."+ "answer": "We offer a Free Tier. If you signed up during beta you may be eligible for free credits. If you need more than the Pro Tier we can discuss, Allowing you try out and develop with Supabase before _making a longer term commitment_ you scale up your project."},{- "question": "What kind of support will i receive?",+ "question": "What kind of support will I receive?","answer": "Support depends on your tier. Free Tier: community support. Pro Tier: email support. Pay As You Go: dedicated support."},{@@ -104,31 +104,31 @@"answer": "Yes. Contact us via <[email protected]>[](mailto:[email protected]) and we will be happy to discuss your needs."},{- "question": "What if i need to deploy my project under certain regulatory constraints e.g. govcloud, HIPAA?",+ "question": "What if I need to deploy my project under certain regulatory constraints e.g. govcloud, HIPAA?","answer": "Yes. Contact us via <[email protected]>[](mailto:[email protected]) and we will be happy to discuss your needs."},{- "question": "Where can i find Privacy and Terms of Use information for Supabase?",+ "question": "Where can I find Privacy and Terms of Use information for Supabase?","answer": "You can check out our privacy policy [here](https://supabase.io/docs/company/privacy) and terms of service [here](https://supabase.io/docs/company/terms)."},{- "question": "What is the largest sized file i individual can deploy to storage?",- "answer": "A big cat like a Lion or Siberian tiger, also Ligers are fine."+ "question": "What is the largest sized file I can deploy to storage?",+ "answer": "A big cat like a Lion or Siberian tiger, also Ligers are fine. If you are uploading via the dashboard there is a 50mb limit."},{"question": "Are there any limits for data egress?","answer": "For Free Tier the limit is 2Gb, for Pro Tier it is 200Gb. There are no limits on Pay as you Go."},{- "question": "What is the largest database i can deploy to a ~~hobby~~ Free Tier? Is there a limit on the number of rows?",- "answer": "You can make a backend with a 500 Mb Database and 1 GB File Storage on the Free Tier. You can see our full breakdown of our pricing tiers and features here. (RW: lol could someone link four projects together so they have 2GB database and 4GB storage?)"+ "question": "What is the largest database I can deploy to a hobby Free Tier? Is there a limit on the number of rows?",+ "answer": "You can make a project with a 500 Mb Database and 1 GB File Storage on the Free Tier. You can see our full breakdown of our pricing tiers and features here."},{- "question": "What if i need one project for development and one for production?",+ "question": "What if I need one project for development and one for production?","answer": "We are working on multi-environment projects. For now, you can create a project for your development backend and production backend. We give you four free projects as part of our free tier. This means you could have two development and two production servers as part of your free tier."},{- "question": "Can i self host Supabase for free?",+ "question": "Can I self host Supabase for free?","answer": "Yes, our Docker setup can be found [here](https://github.com/supabase/supabase), or in our [CLI](https://github.com/supabase/cli). Note that our Dashboard is not available in the Docker set up."},{diff --git a/www/pages/pricing/index.tsx b/www/pages/pricing/index.tsxindex 1a58dde27a3..f620b562161 100644--- a/www/pages/pricing/index.tsx+++ b/www/pages/pricing/index.tsx@@ -1,4 +1,5 @@import React, { useState } from 'react'+import { useRouter } from 'next/router'import Link from 'next/link'import DefaultLayout from '~/components/Layouts/Default'@@ -12,12 +13,52 @@ import ReactMarkdown from 'react-markdown'import ReactTooltip from 'react-tooltip'export default function IndexPage() {+ const { basePath } = useRouter()+return (<DefaultLayout><div className="bg-white dark:bg-gray-800">- <div className="container mx-auto px-6 lg:px-16 xl:px-20 relative py-16 sm:py-18 md:py-24 lg:py-24">+ <div className="container mx-auto px-6 lg:px-16 xl:px-20 relative pt-24 md:pt-24 lg:pt-24"><div className=""><Typography.Title>Predictable pricing, no surprises</Typography.Title>+ <Typography.Text>+ <p className="text-lg">+ Start with a hobby project, collaborate with a team, and scale to millions of users.+ </p>+ </Typography.Text>+ <div className="grid grid-cols-12 gap-8 mt-16">+ <div className="col-span-12 lg:col-span-6">+ <div className="rounded border border-green-500 dark:border-green-900 bg-green-500 bg-opacity-10 grid grid-cols-6">+ <div className="p-6 col-span-6">+ <Space className="mb-4">+ <Typography.Title level={3} className="flex gap-2">+ Special Beta Pricing+ </Typography.Title>+ <Badge dot>Limited time offer</Badge>+ </Space>+ <Typography.Text>+ <p className="lg:text-lg mb-2">+ Lock into permanent beta pricing for 2 years if you upgrade today.+ </p>+ </Typography.Text>+ </div>+ </div>+ </div>+ <div className="col-span-12 lg:col-span-6">+ <div className="rounded border border-gray-200 dark:border-gray-600 grid grid-cols-12">+ <img+ src={`${basePath}/images/t-shirt-promo.jpg`}+ className="col-span-6 h-30 object-cover"+ />+ <div className="p-6 lg:col-span-6">+ <Typography.Title level={4}>Free tshirt</Typography.Title>+ <Typography.Text>+ We are giving away free tshirts to anyone who signs up for the Beta Pro plan+ </Typography.Text>+ </div>+ </div>+ </div>+ </div></div></div></div>@@ -30,7 +71,7 @@ export default function IndexPage() {<div className="px-4"><h2 className="text-lg leading-6 font-medium text-gray-900 dark:text-white">Free</h2><p className="mt-4">- <span className="text-4xl font-extrabold text-gray-900 dark:text-white">$0</span>+ <span className="text-4xl font-normal text-gray-900 dark:text-white">$0</span><Typography.Text type="secondary">/project /month</Typography.Text></p><p className="my-4 text-sm text-gray-500">@@ -55,7 +96,7 @@ export default function IndexPage() {<div className="px-4 mt-16"><h2 className="text-lg leading-6 font-medium text-gray-900 dark:text-white">Pro</h2><p className="mt-4">- <span className="text-4xl font-extrabold text-gray-900 dark:text-white">$25</span>+ <span className="text-4xl font-normal text-gray-900 dark:text-white">$25</span><Typography.Text type="secondary">/project /month</Typography.Text></p><p className="my-4 text-sm text-gray-500">@@ -82,7 +123,7 @@ export default function IndexPage() {Pay as you go</h2><p className="mt-4">- <span className="text-4xl font-extrabold text-gray-900 dark:text-white">+ <span className="text-4xl font-normal text-gray-900 dark:text-white">Contact us</span></p>@@ -109,36 +150,55 @@ export default function IndexPage() {<div className="hidden lg:block"><table className="w-full h-px table-fixed"><caption className="sr-only">Pricing plan comparison</caption>- <thead>+ <thead className="thead--plans"><tr><th- className="pb-4 px-6 text-sm font-medium text-gray-900 dark:text-white text-left"+ className="relative bg-white dark:bg-gray-800 pb-4 px-6 text-sm font-medium text-gray-900 dark:text-white text-left"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-gray-200 dark:bg-gray-600"+ style={{ height: '1px' }}+ ></div></th>- <th className="w-1/4 pb-4 px-6 text-left font-medium" scope="col">+ <th+ className=" bg-white dark:bg-gray-800 w-1/4 pb-4 px-6 text-left font-medium"+ scope="col"+ ><Typography.Title level={4}>Free</Typography.Title>+ <div+ className="absolute bottom-0 left-0 h-0.25 w-full bg-gray-200 dark:bg-gray-600"+ style={{ height: '1px' }}+ ></div></th><th- className="w-1/4 pb-4 px-6 text-lg leading-6 font-medium text-gray-900 text-left"+ className=" bg-white dark:bg-gray-800 w-1/4 pb-4 px-6 text-lg leading-6 font-medium text-gray-900 text-left"scope="col"><Typography.Title level={4}>Pro</Typography.Title>+ <div+ className="absolute bottom-0 left-0 h-0.25 w-full bg-gray-200 dark:bg-gray-600"+ style={{ height: '1px' }}+ ></div></th><th- className="w-1/4 pb-4 px-6 text-lg leading-6 font-medium text-gray-900 text-left"+ className=" bg-white dark:bg-gray-800 w-1/4 pb-4 px-6 text-lg leading-6 font-medium text-gray-900 text-left"scope="col"><Typography.Title level={4}>Pay as you go</Typography.Title>+ <div+ className="absolute bottom-0 left-0 h-0.25 w-full bg-gray-200 dark:bg-gray-600"+ style={{ height: '1px' }}+ ></div></th></tr></thead>- <tbody className="border-t border-gray-200 dark:border-gray-600 divide-y divide-gray-200 dark:divide-gray-700">+ <tbody className="border-gray-200 dark:border-gray-600 divide-y divide-gray-200 dark:divide-gray-700"><tr className="divide-x dark:divide-gray-700"><thclassName="py-8 px-6 text-sm font-medium text-gray-900 dark:text-white text-left align-top"@@ -150,7 +210,7 @@ export default function IndexPage() {<td className="h-full py-8 px-6 align-top"><div className="relative h-full table"><p>- <span className="text-4xl font-extrabold text-gray-900 dark:text-white">+ <span className="text-4xl font-normal text-gray-900 dark:text-white">$0</span><Typography.Text> /project /month</Typography.Text>@@ -173,7 +233,7 @@ export default function IndexPage() {<td className="h-full py-8 px-6 align-top"><div className="relative h-full table"><p>- <span className="text-4xl font-extrabold text-gray-900 dark:text-white">+ <span className="text-4xl font-normal text-gray-900 dark:text-white">$25</span><Typography.Text> /project /month</Typography.Text>@@ -196,7 +256,7 @@ export default function IndexPage() {<td className="h-full py-8 px-6 align-top"><div className="relative h-full table"><p>- <span className="text-4xl font-extrabold text-gray-900 dark:text-white">+ <span className="text-4xl font-normal text-gray-900 dark:text-white">Contact us</span></p>diff --git a/www/public/images/t-shirt-promo.jpg b/www/public/images/t-shirt-promo.jpgnew file mode 100644index 00000000000..998a3417c5dBinary files /dev/null and b/www/public/images/t-shirt-promo.jpg differdiff --git a/www/styles/index.css b/www/styles/index.cssindex 10a18e70198..20d971a0f87 100644--- a/www/styles/index.css+++ b/www/styles/index.css@@ -92,3 +92,30 @@ body {-moz-osx-font-smoothing: grayscale;-webkit-font-smoothing: antialiased;}++table {+ margin-top: 1em;+ border-collapse: collapse;+}++table .thead--plans th {+ @apply py-4;+ position: sticky;+ border-collapse: separate;+ top: 0;+ z-index: 999;+}++.pricing-table__product-row {+ /* @apply py-4; */+ position: sticky;+ border-collapse: separate;+ top: 60px;+ z-index: 999;+}++/* th {+ border-right: 5px solid red;+ background: white;+ background-clip: padding-box;+} */