From 2a65cd0b9512bd1cb189c0bd330f866807feebcd Mon Sep 17 00:00:00 2001 From: giancarlo Date: Thu, 25 Apr 2024 20:17:50 +0700 Subject: [PATCH] Update UI components and styling This commit includes overall UI and styling improvements in different areas of the application. In particular, it refactors the font usage in the tailwind configuration and modifies the Heading import path in `heading.tsx`. The pricing table and line item details in the billing gateway had been extensively updated to provide better visual representation. Finally, changes were made to the marketing page to make it more straightforward and clear. --- apps/web/app/(marketing)/page.tsx | 30 +++++++-------- .../src/components/line-item-details.tsx | 10 ++--- .../gateway/src/components/pricing-table.tsx | 37 ++++++++++--------- packages/ui/src/shadcn/heading.tsx | 2 +- tooling/tailwind/index.ts | 2 +- 5 files changed, 42 insertions(+), 39 deletions(-) diff --git a/apps/web/app/(marketing)/page.tsx b/apps/web/app/(marketing)/page.tsx index 5cd079a7f..287e0a113 100644 --- a/apps/web/app/(marketing)/page.tsx +++ b/apps/web/app/(marketing)/page.tsx @@ -121,7 +121,7 @@ function Home() { Unbeatable Features and Benefits for Your SaaS Business @@ -136,16 +136,16 @@ function Home() { > -
+
-
- Authentication +
+ Authentication Secure and Easy-to-Use Authentication for Your SaaS Website @@ -185,16 +185,16 @@ function Home() { -
+
-
- Dashboard +
+ Dashboard A fantastic dashboard to manage your SaaS business @@ -212,16 +212,16 @@ function Home() { -
+
-
- Billing +
+ Billing A powerful billing system for your SaaS business @@ -260,12 +260,12 @@ function Home() {
- Fair pricing for all types of SaaS businesses + Fair pricing for all types of businesses Get started on our free plan and upgrade when you are ready. diff --git a/packages/billing/gateway/src/components/line-item-details.tsx b/packages/billing/gateway/src/components/line-item-details.tsx index 475bff87e..0e3c2973a 100644 --- a/packages/billing/gateway/src/components/line-item-details.tsx +++ b/packages/billing/gateway/src/components/line-item-details.tsx @@ -42,7 +42,7 @@ export function LineItemDetails(
- + - + @@ -95,7 +95,7 @@ export function LineItemDetails( - + @@ -118,7 +118,7 @@ export function LineItemDetails(
- + @@ -145,7 +145,7 @@ export function LineItemDetails(
- + diff --git a/packages/billing/gateway/src/components/pricing-table.tsx b/packages/billing/gateway/src/components/pricing-table.tsx index 0194ef02e..1dc0b2826 100644 --- a/packages/billing/gateway/src/components/pricing-table.tsx +++ b/packages/billing/gateway/src/components/pricing-table.tsx @@ -51,7 +51,7 @@ export function PricingTable({ const [interval, setInterval] = useState(intervals[0]!); return ( -
+
{intervals.length ? ( + +
+ + + + + +
+
+
-
+
- - - - - - - -
- + + +
diff --git a/packages/ui/src/shadcn/heading.tsx b/packages/ui/src/shadcn/heading.tsx index 58807c71e..eca5354a9 100644 --- a/packages/ui/src/shadcn/heading.tsx +++ b/packages/ui/src/shadcn/heading.tsx @@ -1,4 +1,4 @@ -import { cn } from '../utils/cn'; +import { cn } from '../utils'; type Level = 1 | 2 | 3 | 4 | 5 | 6; diff --git a/tooling/tailwind/index.ts b/tooling/tailwind/index.ts index 71faf2ca2..c3d41ff75 100644 --- a/tooling/tailwind/index.ts +++ b/tooling/tailwind/index.ts @@ -64,7 +64,7 @@ export default { }, fontFamily: { cal: ['var(--font-cal)', ...fontFamily.sans], - sans: ['system-ui', 'var(--font-sans)', ...fontFamily.sans], + sans: ['-apple-system', 'var(--font-sans)', ...fontFamily.sans], heading: ['var(--font-heading)'], }, keyframes: {