From ccf064b0d59a8abf821a52b10fc9bdeb0213ada9 Mon Sep 17 00:00:00 2001 From: javayhu Date: Tue, 19 Aug 2025 23:09:41 +0800 Subject: [PATCH 1/4] chore: optimize pricing card badge --- src/components/pricing/pricing-card.tsx | 29 +++++++++++++++---------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/components/pricing/pricing-card.tsx b/src/components/pricing/pricing-card.tsx index 5d02242..46e9eda 100644 --- a/src/components/pricing/pricing-card.tsx +++ b/src/components/pricing/pricing-card.tsx @@ -24,6 +24,7 @@ import { import { CheckCircleIcon, XCircleIcon } from 'lucide-react'; import { useTranslations } from 'next-intl'; import { LoginWrapper } from '../auth/login-wrapper'; +import { Badge } from '../ui/badge'; import { CheckoutButton } from './create-checkout-button'; interface PricingCardProps { @@ -117,22 +118,26 @@ export function PricingCard({ > {/* show popular badge if plan is recommended */} {plan.popular && ( - - {t('popular')} - +
+ + {t('popular')} + +
)} {/* show current plan badge if plan is current plan */} {isCurrentPlan && ( - - {t('currentPlan')} - +
+ + {t('currentPlan')} + +
)} From 3ae0411a441cb98bbf33b4fd60d379ee13f90678 Mon Sep 17 00:00:00 2001 From: javayhu Date: Tue, 19 Aug 2025 23:25:28 +0800 Subject: [PATCH 2/4] chore: remove bg div in features section --- src/components/blocks/features/features.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/blocks/features/features.tsx b/src/components/blocks/features/features.tsx index d2a8c60..00381e3 100644 --- a/src/components/blocks/features/features.tsx +++ b/src/components/blocks/features/features.tsx @@ -53,7 +53,7 @@ export default function FeaturesSection() { return (
-
+ {/*
*/}
Date: Wed, 20 Aug 2025 00:13:26 +0800 Subject: [PATCH 3/4] chore: remove images in about page --- src/app/[locale]/(marketing)/(pages)/about/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/[locale]/(marketing)/(pages)/about/page.tsx b/src/app/[locale]/(marketing)/(pages)/about/page.tsx index 791cc7f..5e000fb 100644 --- a/src/app/[locale]/(marketing)/(pages)/about/page.tsx +++ b/src/app/[locale]/(marketing)/(pages)/about/page.tsx @@ -100,7 +100,7 @@ export default async function AboutPage() {
{/* image section */} - + {/* */}
); From 978f13a368d1ca0673ed4706726314cc22897749 Mon Sep 17 00:00:00 2001 From: javayhu Date: Wed, 20 Aug 2025 00:18:02 +0800 Subject: [PATCH 4/4] refactor: remove unnecessary Skeleton component in billing and credits balance cards --- src/components/settings/billing/billing-card.tsx | 1 - src/components/settings/credits/credits-balance-card.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/components/settings/billing/billing-card.tsx b/src/components/settings/billing/billing-card.tsx index 532cdf8..6483906 100644 --- a/src/components/settings/billing/billing-card.tsx +++ b/src/components/settings/billing/billing-card.tsx @@ -111,7 +111,6 @@ export default function BillingCard() {
-
diff --git a/src/components/settings/credits/credits-balance-card.tsx b/src/components/settings/credits/credits-balance-card.tsx index c7bc5f0..3930bbf 100644 --- a/src/components/settings/credits/credits-balance-card.tsx +++ b/src/components/settings/credits/credits-balance-card.tsx @@ -131,7 +131,6 @@ export default function CreditsBalanceCard() {
-