Skip to content

Commit eb72886

Browse files
committed
Update Free plan button copy and styles in onboarding plan selection screen (#5500)
<!-- start pr-codex --> --- ## PR-Codex overview This PR introduces a new component called `TextDivider` and integrates it into the `OnboardingChoosePlan` component. It also makes adjustments to the layout and button styles within `OnboardingChoosePlan`. ### Detailed summary - Added `TextDivider` component in `TextDivider.tsx` for displaying a horizontal divider with text. - Updated `OnboardingChoosePlan` to include `TextDivider` with the text "OR". - Changed the grid gap from `md:gap-4` to `md:gap-5`. - Replaced the previous button with a new styled button in `OnboardingChoosePlan`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 7456422 commit eb72886

File tree

2 files changed

+34
-12
lines changed

2 files changed

+34
-12
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { cn } from "@/lib/utils";
2+
3+
export function TextDivider(props: {
4+
text: string;
5+
className?: string;
6+
}) {
7+
return (
8+
<div
9+
className={cn(
10+
"flex items-center text-muted-foreground text-sm",
11+
props.className,
12+
)}
13+
>
14+
<span className="h-[1px] flex-1 bg-border" />
15+
<span className="mx-4">{props.text}</span>
16+
<span className="h-[1px] flex-1 bg-border" />
17+
</div>
18+
);
19+
}

apps/dashboard/src/app/login/onboarding/ChoosePlan.tsx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use client";
22

3+
import { TextDivider } from "@/components/TextDivider";
34
import { PricingCard } from "@/components/blocks/pricing-card";
45
import { Button } from "@/components/ui/button";
5-
import { ArrowRightIcon } from "lucide-react";
66
import { TitleAndDescription } from "./Title";
77

88
export function OnboardingChoosePlan(props: {
@@ -20,7 +20,7 @@ export function OnboardingChoosePlan(props: {
2020

2121
<div className="h-4" />
2222

23-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-4">
23+
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5">
2424
<PricingCard
2525
billingPlan="starter"
2626
teamSlug={props.teamSlug}
@@ -51,17 +51,20 @@ export function OnboardingChoosePlan(props: {
5151
/>
5252
</div>
5353

54-
<div className="h-4" />
54+
<TextDivider text="OR" className="my-4" />
5555

56-
<div className="flex justify-center">
57-
<Button
58-
variant="link"
59-
onClick={props.skipPlan}
60-
className="inline-flex translate-x-2 items-center gap-2 text-muted-foreground"
61-
>
62-
Continue with Free Plan <ArrowRightIcon className="size-4" />
63-
</Button>
64-
</div>
56+
<Button
57+
variant="outline"
58+
onClick={props.skipPlan}
59+
className="relative h-auto w-full items-center gap-2 rounded-xl bg-muted/50 py-2.5"
60+
>
61+
<span className="flex flex-col gap-0.5">
62+
<span className="text-base text-foreground">Skip for now</span>
63+
<span className="text-muted-foreground text-sm">
64+
You will have limited access to services
65+
</span>
66+
</span>
67+
</Button>
6568
</div>
6669
);
6770
}

0 commit comments

Comments
 (0)