Skip to content

Commit

Permalink
Landing page copy changes (tldraw#5105)
Browse files Browse the repository at this point in the history
Tweak the language

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [x] `other`
  • Loading branch information
steveruizok authored Dec 9, 2024
1 parent e6870bc commit d40a33a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
22 changes: 19 additions & 3 deletions apps/docs/components/marketing/pricing-button.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
'use client'

import { track } from '@vercel/analytics'
import clsx from 'clsx'
import Link from 'next/link'

export function PricingButton({ tier }: { tier: { id: string; href: string } }) {
export function PricingButton({
tier,
}: {
tier: {
id: string
type: 'secondary' | 'primary'
href: string
}
}) {
return (
<Link
href={tier.href}
aria-describedby={tier.id}
onClick={() => track('pricing', { tier: tier.id })}
className="mt-10 block rounded-md bg-blue-500 px-3 py-2 text-center text-sm/6 font-semibold shadow-sm bg-blue-500 text-white hover:bg-blue-600 dark:hover:bg-blue-400"
className={clsx(
'mt-10 block rounded-md px-3 py-2 text-center text-sm/6 font-semibold shadow-sm',
{
'bg-blue-500 text-white hover:bg-blue-600': tier.type === 'primary',
'bg-transparent border-blue-500 border-sm border text-blue-500 dark:text-white hover:bg-blue-50 dark:hover:bg-neutral-800':
tier.type === 'secondary',
}
)}
>
{tier.id === 'business' ? 'Contact us' : 'Buy now'}
{tier.id === 'business' ? 'Contact us' : 'Get started'}
</Link>
)
}
9 changes: 5 additions & 4 deletions apps/docs/components/marketing/pricing-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export function PricingSection() {
</span>
<span className="text-sm/6 font-semibold">/month</span>
</p>
<p className="mt-3 text-sm/6 opacity-[.9]">
{tier.price.annually} per month if paid annually
</p>
<p className="mt-3 text-sm/6 opacity-[.9]">Annual agreement, paid quarterly</p>
</>
)}
<PricingButton tier={tier} />
Expand Down Expand Up @@ -72,6 +70,7 @@ const tiers = [
{
id: 'lite',
name: 'Startup Lite',
type: 'secondary',
price: {
monthly: '$499',
annually: '$449',
Expand All @@ -84,18 +83,20 @@ const tiers = [
{
id: 'startup',
name: 'Startup',
type: 'secondary',
price: {
monthly: '$999',
annually: '$899',
},
href: '/buy/startup',
description: 'For small teams who need to speak to us.',
features: ['Fewer than 10 employees', 'No watermark', 'One hour of support per month'],
features: ['Fewer than 10 employees', 'No watermark', 'Two hours of support per month'],
flagFirst: true,
},
{
id: 'business',
name: 'Business',
type: 'primary',
href: '/buy/business',
description: 'For larger teams and enterprises.',
features: ['No watermark', 'Premium support', 'Custom agreements', 'Dedicated account manager'],
Expand Down

0 comments on commit d40a33a

Please sign in to comment.