From eb728869ebe95e0ca7834eaf6c4d060353dec96c Mon Sep 17 00:00:00 2001 From: MananTank Date: Sat, 23 Nov 2024 00:21:17 +0000 Subject: [PATCH] Update Free plan button copy and styles in onboarding plan selection screen (#5500) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## 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}` --- .../src/@/components/TextDivider.tsx | 19 +++++++++++++ .../src/app/login/onboarding/ChoosePlan.tsx | 27 ++++++++++--------- 2 files changed, 34 insertions(+), 12 deletions(-) create mode 100644 apps/dashboard/src/@/components/TextDivider.tsx diff --git a/apps/dashboard/src/@/components/TextDivider.tsx b/apps/dashboard/src/@/components/TextDivider.tsx new file mode 100644 index 00000000000..7a0730f23fa --- /dev/null +++ b/apps/dashboard/src/@/components/TextDivider.tsx @@ -0,0 +1,19 @@ +import { cn } from "@/lib/utils"; + +export function TextDivider(props: { + text: string; + className?: string; +}) { + return ( +
+ + {props.text} + +
+ ); +} diff --git a/apps/dashboard/src/app/login/onboarding/ChoosePlan.tsx b/apps/dashboard/src/app/login/onboarding/ChoosePlan.tsx index d32c12fd4d6..82e00dbc8b1 100644 --- a/apps/dashboard/src/app/login/onboarding/ChoosePlan.tsx +++ b/apps/dashboard/src/app/login/onboarding/ChoosePlan.tsx @@ -1,8 +1,8 @@ "use client"; +import { TextDivider } from "@/components/TextDivider"; import { PricingCard } from "@/components/blocks/pricing-card"; import { Button } from "@/components/ui/button"; -import { ArrowRightIcon } from "lucide-react"; import { TitleAndDescription } from "./Title"; export function OnboardingChoosePlan(props: { @@ -20,7 +20,7 @@ export function OnboardingChoosePlan(props: {
-
+
-
+ -
- -
+
); }