forked from tldraw/tldraw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Landing page copy changes (tldraw#5105)
Tweak the language ### Change type - [ ] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [x] `other`
- Loading branch information
1 parent
e6870bc
commit d40a33a
Showing
2 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters