mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## Problem Docs guides, docs troubleshooting pages, and knowledge base guides render the shared `AiTools` component from `ui-patterns`. The marketing site renders its own copy of the same actions in `MarkdownActions`, with the same styles and links. A change to one doesn't reach the other. Resolves [DOCS-1505](https://linear.app/supabase/issue/DOCS-1505/use-the-shared-aitools-component-on-www-pages). ## Solution Blog posts, customer stories, event pages, changelog entries, and pricing render `AiTools` through a www wrapper, and `MarkdownActions` is deleted. The wrapper sends `copy_as_markdown_clicked` and `ask_ai_clicked` with each page's type, as `MarkdownActions` did. - **Prefer on Google:** blog posts show the Prefer on Google link through `AiTools`, and clicks send `preferred_source_clicked`. #52026 proposed adding the link through `MarkdownActions`. This PR adds it through `AiTools` instead, and #52026 is closed. The link's URL is a shared constant in `markdown-affordance.ts`, which the docs wrapper also uses. - **Horizontal layout:** `AiTools` has an `orientation` prop. Pricing uses it to keep the actions in a row under the hero. The design system's AI Tools page documents it. - **Headings:** `AiTools` adds an "AI tools" heading: - Blog posts style it like the sidebar's On this page label. - Pricing, customer stories, and event pages hide it visually, so they look as they do on the live site. Screen readers still announce it as the section's label. - Changelog entries give AI tools its own sidebar section, like Change type and Products. The Links section appears only when an entry links to a GitHub discussion. The changelog index keeps `ChangelogLlmMarkdownButton`. It's a split button in the header toolbar, and `AiTools` is a list of links built for sidebars. ## Preview links Compare the before and afters (since there's a lot of examples here, links are less visually busy than images in this case): | Site | Live | Preview | | ------------- | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | WWW | [/blog/give-your-supabase-app-its-own-mcp-server](https://supabase.com/blog/give-your-supabase-app-its-own-mcp-server) | [/blog/give-your-supabase-app-its-own-mcp-server](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/blog/give-your-supabase-app-its-own-mcp-server) | | WWW | [/pricing](https://supabase.com/pricing) | [/pricing](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/pricing) | | WWW | [/customers/berriai](https://supabase.com/customers/berriai) | [/customers/berriai](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/customers/berriai) | | WWW | [/events/agency-webinar-ai-prototyping-production](https://supabase.com/events/agency-webinar-ai-prototyping-production) | [/events/agency-webinar-ai-prototyping-production](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/events/agency-webinar-ai-prototyping-production) | | WWW | [/changelog/cbc-tls-ciphers-deprecated](https://supabase.com/changelog/cbc-tls-ciphers-deprecated) | [/changelog/cbc-tls-ciphers-deprecated](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/changelog/cbc-tls-ciphers-deprecated) | | WWW | [/changelog/17817-pgbouncer-and-ipv4-deprecation](https://supabase.com/changelog/17817-pgbouncer-and-ipv4-deprecation) | [/changelog/17817-pgbouncer-and-ipv4-deprecation](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/changelog/17817-pgbouncer-and-ipv4-deprecation) | | Design system | [/design-system/docs/fragments/ai-tools](https://supabase.com/design-system/docs/fragments/ai-tools) | [/design-system/docs/fragments/ai-tools](https://design-system-git-alexisa-docs-1505-supabase.vercel.app/design-system/docs/fragments/ai-tools) | ## Review instructions 1. Open each live and preview link side by side. 2. On pricing, check that the actions sit in the same row under the hero. 3. On the blog post, check that the "AI tools" heading matches the On this page label. 4. On the blog post, check that Prefer on Google appears in the sidebar and at the end of the post on mobile. 5. On both changelog entries, check that AI tools has its own sidebar section. Links appears only on the pgbouncer entry, which links to a GitHub discussion. 6. On each page, click Copy as Markdown, Ask ChatGPT, and Ask Claude. On the blog post, also click Prefer on Google. In the browser's network tab, check that each telemetry request includes the page's `pageType`. 7. On the design system page, check the Horizontal layout example. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
107 lines
3.9 KiB
TypeScript
107 lines
3.9 KiB
TypeScript
import { ArrowDownIcon } from '@heroicons/react/outline'
|
|
import { AiTools } from '~/components/AiTools'
|
|
import CTABanner from '~/components/CTABanner'
|
|
import DefaultLayout from '~/components/Layouts/Default'
|
|
import PricingAddons from '~/components/Pricing/PricingAddons'
|
|
import PricingComputeSection from '~/components/Pricing/PricingComputeSection'
|
|
import PricingDiskSection from '~/components/Pricing/PricingDiskSection'
|
|
import PricingFAQs from '~/components/Pricing/PricingFAQs'
|
|
import { ArrowUpRight } from 'lucide-react'
|
|
import { Button } from 'ui'
|
|
import { InfoTooltip } from 'ui-patterns/info-tooltip'
|
|
|
|
import HashAnchorScroll from './HashAnchorScroll'
|
|
import PricingComparisonSection from './PricingComparisonSection'
|
|
import PricingPlansSection from './PricingPlansSection'
|
|
|
|
export default function PricingContent() {
|
|
return (
|
|
<DefaultLayout>
|
|
<HashAnchorScroll />
|
|
<div className="relative z-10 pt-8 pb-4 xl:py-16">
|
|
<div className="mx-auto max-w-7xl px-8 text-center sm:px-6 lg:px-8">
|
|
<div className="mx-auto max-w-3xl space-y-2 lg:max-w-none">
|
|
<h1 className="h1">
|
|
Predictable pricing,
|
|
<br className="block lg:hidden" /> designed to scale
|
|
</h1>
|
|
<p className="p text-lg leading-5">
|
|
Start building for free, collaborate with your team, then scale to millions of users
|
|
</p>
|
|
<AiTools
|
|
orientation="horizontal"
|
|
titleClassName="sr-only"
|
|
className="flex justify-center pt-4"
|
|
pagePath="/pricing"
|
|
pageType="pricing"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<PricingPlansSection />
|
|
|
|
<div className="text-center mt-10 xl:mt-16 mx-auto max-w-lg flex flex-col gap-8">
|
|
<div className="flex justify-center gap-2">
|
|
<a href="#compare-plans">
|
|
<Button size="tiny" variant="secondary" iconRight={<ArrowDownIcon className="w-3" />}>
|
|
Compare Plans
|
|
</Button>
|
|
</a>
|
|
<Button size="tiny" asChild iconRight={<ArrowUpRight className="w-4" />}>
|
|
<a
|
|
href="/docs/guides/platform/billing-on-supabase#organization-based-billing"
|
|
target="_blank"
|
|
>
|
|
Learn how billing works
|
|
</a>
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
|
|
<div
|
|
id="addon-compute"
|
|
className="container relative mx-auto px-4 lg:px-12 pt-16 md:pt-24 lg:pt-32 lg:pb-16"
|
|
>
|
|
<div className="text-center mb-8 lg:mb-16">
|
|
<h2 className="text-foreground text-3xl" id="how-compute-pricing-works">
|
|
How compute pricing works
|
|
</h2>
|
|
<p className="text-foreground-light mt-4 text-lg mb-4">
|
|
Choose a plan, add projects, and see your total cost
|
|
</p>
|
|
<div className="flex items-center justify-center gap-1">
|
|
<span className="py-1 px-3 bg-surface-100 flex items-center gap-1 border rounded-full text-xs text-foreground-lighter">
|
|
What is “compute”?
|
|
<InfoTooltip side="bottom" className="max-w-[280px]" label="About compute">
|
|
Think of compute as the computer your database runs on. As your app grows, you scale
|
|
CPU and memory to handle more traffic and data.
|
|
</InfoTooltip>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<PricingComputeSection />
|
|
</div>
|
|
|
|
<div
|
|
id="disk"
|
|
className="container relative mx-auto px-4 lg:px-12 pt-16 md:pt-24 lg:pt-32 lg:pb-16"
|
|
>
|
|
<PricingDiskSection />
|
|
</div>
|
|
|
|
<div id="addons" className="sm:py-18 container relative mx-auto px-4 py-16 md:py-24 lg:px-12">
|
|
<PricingAddons />
|
|
</div>
|
|
|
|
<PricingComparisonSection />
|
|
|
|
<div id="faq" className="border-t">
|
|
<PricingFAQs />
|
|
</div>
|
|
<CTABanner />
|
|
</DefaultLayout>
|
|
)
|
|
}
|