From f03c619fc7b41efea3723c2952c5559c6be0e585 Mon Sep 17 00:00:00 2001 From: giancarlo Date: Fri, 5 Apr 2024 16:51:19 +0800 Subject: [PATCH] Update UI styling in dashboard, pricing, and marketing The changes include UI styling updates across dashboard, pricing, and marketing components. This involves updating animations and slide-in effects on the dashboard demo component, adjusting color schemes, animations, and spacing on pricing related components, and modifying layout and spacing on the marketing page. Other subtle style changes like font weights, colors and sizes were also addressed. --- .../[account]/_components/dashboard-demo.tsx | 6 ++- apps/web/app/(marketing)/pricing/page.tsx | 12 ++--- .../gateway/src/components/pricing-table.tsx | 46 ++++++++++++------- 3 files changed, 39 insertions(+), 25 deletions(-) diff --git a/apps/web/app/(dashboard)/home/[account]/_components/dashboard-demo.tsx b/apps/web/app/(dashboard)/home/[account]/_components/dashboard-demo.tsx index 14f6f807b..ee313abf9 100644 --- a/apps/web/app/(dashboard)/home/[account]/_components/dashboard-demo.tsx +++ b/apps/web/app/(dashboard)/home/[account]/_components/dashboard-demo.tsx @@ -215,7 +215,11 @@ function Chart( props: React.PropsWithChildren<{ data: { value: string; name: string }[] }>, ) { return ( -
+
-
- -
+
+
diff --git a/packages/billing/gateway/src/components/pricing-table.tsx b/packages/billing/gateway/src/components/pricing-table.tsx index 41940dba1..d56004dee 100644 --- a/packages/billing/gateway/src/components/pricing-table.tsx +++ b/packages/billing/gateway/src/components/pricing-table.tsx @@ -36,7 +36,7 @@ export function PricingTable({ const [interval, setInterval] = useState(intervals[0]!); return ( -
+
{intervals.length ? ( @@ -172,7 +172,11 @@ function PricingItem(
- + - +
-
+
@@ -248,12 +264,8 @@ function FeaturesList( } function Price({ children }: React.PropsWithChildren) { - // little trick to re-animate the price when switching plans - const key = Math.random(); - return (
- {children} + {children} ); } @@ -294,9 +306,9 @@ function PlanIntervalSwitcher( const className = cn('focus:!ring-0 !outline-none', { 'rounded-r-none border-r-transparent': index === 0, 'rounded-l-none': index === props.intervals.length - 1, - ['hover:bg-gray-50 dark:hover:bg-background/80']: !selected, - ['text-primary-800 dark:text-primary-500 font-semibold' + - ' hover:bg-background hover:text-initial']: selected, + ['hover:bg-muted']: !selected, + ['font-semibold cursor-default bg-muted hover:bg-muted hover:text-initial']: + selected, }); return ( @@ -308,7 +320,7 @@ function PlanIntervalSwitcher( > - + @@ -347,7 +359,7 @@ function DefaultCheckoutButton(