Skip to content

Commit 4600a21

Browse files
authored
Line up plan card buttons by dropping the free-trial blurb (#1198)
The Team card rendered an extra '14-day free trial, then $150 / month' line between the price and the action button, which only trial plans have. That pushed Team's button about a line lower than Free's and Enterprise's, so the row of CTAs no longer lined up. Remove the blurb so every card has the same structure and the buttons share a baseline. The trial is still surfaced: the button itself reads "Start free trial".
1 parent a7d4603 commit 4600a21

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

apps/cloud/src/routes/app/billing_.plans.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ const ACTION_LABELS: Record<string, string> = {
6666

6767
const PLAN_ORDER = ["free", "team", "enterprise"];
6868

69-
// "14-day free trial", "1-month free trial", etc. — reads the trial config
70-
// synced from the repo-root autumn.config.ts so copy tracks the plan. The unit
71-
// stays singular because it reads as a compound adjective ("14-day", "2-month").
72-
const trialLabel = (freeTrial: NonNullable<Plan["freeTrial"]>): string =>
73-
`${freeTrial.durationLength}-${freeTrial.durationType} free trial`;
74-
7569
function PlansPage() {
7670
const { attach, openCustomerPortal, isLoading: customerLoading } = useCustomer();
7771
const { data: plans, isLoading: plansLoading, isFetching } = useListPlans();
@@ -186,14 +180,6 @@ function PlansPage() {
186180
)}
187181
</div>
188182

189-
{trialOffered && freeTrial && (
190-
<p className="mt-2 text-xs font-medium text-primary">
191-
{trialLabel(freeTrial)}
192-
{plan.price?.amount != null &&
193-
`, then $${plan.price.amount} / ${plan.price.interval ?? "month"}`}
194-
</p>
195-
)}
196-
197183
<div className="mt-4">
198184
{(isCurrent && !isCanceling) || isScheduled ? (
199185
<div className="flex h-9 items-center justify-center rounded-md border border-border bg-muted/30 text-sm font-medium text-muted-foreground">

0 commit comments

Comments
 (0)