Files
Kody Jackson e0816d183d chore(www) - tweaks for conversion on products / feature pages (#53173)
## Problem

Low conversion rate for high SEO traffic pages (`/database`,
`/features/sql-editor`, etc).

## Solution

- For product pages, changing the button variant for `Start your
project` to be `primary`, more visually eye-catching. This is the
primary human CTA for the page, so should stand out more.
- For `feature` pages, adding a manually specified line delimiter where
we can inject a CTA button. Again, these are the primary purpose of the
page for human readers, `hey, go try out this thing`, so we should
optimize for this a bit more. We'd likely want to take a different
approach if we apply this to _all_ feature pages, but this seems fine
for an initial test here.

Also, while I was in here, added a bunch of empty `blogURL` values for
feature pages.

## Preview links

### product pages


https://zone-www-dot-com-git-kody-devrel-822-sql-editor-8236e1-supabase.vercel.app/database
<img width="1219" height="541" alt="Image"
src="https://github.com/user-attachments/assets/67708db7-615f-4bba-aeeb-8647222ea2f3"
/>

### feature pages


https://zone-www-dot-com-git-kody-devrel-822-sql-editor-8236e1-supabase.vercel.app/features/sql-editor

<img width="1219" height="968" alt="Image"
src="https://github.com/user-attachments/assets/bbf69d91-0316-47c8-a279-a5d41131f830"
/>
2026-11-10 08:13:03 -06:00

51 lines
1.3 KiB
TypeScript

'use client'
import ReactMarkdown from 'react-markdown'
import { StartYourProjectButton } from '@/components/StartYourProjectButton'
import { FEATURE_CTA_MARKER } from '@/data/features'
const DEFAULT_CTA_LABEL = 'Start your project'
interface Props {
title: string
description: string
ctaLabel?: string
}
/**
* Renders a feature description as markdown. If the description contains
* FEATURE_CTA_MARKER, the shared StartYourProjectButton is rendered at the marker.
*/
export const FeatureDescription = ({ title, description, ctaLabel = DEFAULT_CTA_LABEL }: Props) => {
if (!description.includes(FEATURE_CTA_MARKER)) {
return (
<div className="prose prose-docs">
<ReactMarkdown>{description.replace(FEATURE_CTA_MARKER, '')}</ReactMarkdown>
</div>
)
}
const [before, after] = description.split(FEATURE_CTA_MARKER)
return (
<>
<div className="flex flex-col items-start gap-4">
<div className="prose prose-docs">
<ReactMarkdown>{before}</ReactMarkdown>
</div>
<StartYourProjectButton
variant="primary"
size="medium"
buttonLocation={`Feature page - ${title}`}
>
{ctaLabel}
</StartYourProjectButton>
</div>
<div className="prose prose-docs">
<ReactMarkdown>{after}</ReactMarkdown>
</div>
</>
)
}