diff --git a/messages/en.json b/messages/en.json index b472350..66bae38 100644 --- a/messages/en.json +++ b/messages/en.json @@ -148,7 +148,8 @@ "topUpNote": "Note: This is a development environment. No real payment will be processed.", "processing": "Processing...", "topUpNow": "Top Up Now", - "cancel": "Cancel" + "cancel": "Cancel", + "instantTopUp": "Instant top-up available" }, "studio": { "title": "AI Prompt Studio", diff --git a/messages/zh.json b/messages/zh.json index 2b84855..c65a381 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -148,7 +148,8 @@ "topUpNote": "注意:这是开发环境,不会进行真实的支付处理。", "processing": "处理中...", "topUpNow": "立即充值", - "cancel": "取消" + "cancel": "取消", + "instantTopUp": "支持即时充值" }, "studio": { "title": "AI 提示词工作室", diff --git a/src/app/credits/page.tsx b/src/app/credits/page.tsx index 940afcd..8775aa2 100644 --- a/src/app/credits/page.tsx +++ b/src/app/credits/page.tsx @@ -248,94 +248,92 @@ export default function CreditsPage() {

{t('subtitle')}

- {/* Stats Cards */} + {/* Balance and Top-up Section */} {stats && ( -
- {/* Balance Card with Top-up Button */} -
- -
-
-
- +
+ {/* Main Balance Card */} + +
+
+ {/* Balance Display */} +
+
+
-

{t('currentBalance')}

-

+

+ {t('currentBalance')} +

+

${stats.currentBalance.toFixed(2)}

-
- - - -
- - {/* Other Stats */} -
- -
-
- + + {/* Top-up Button */} +
+ +

+ {t('instantTopUp')} +

-
-

{t('totalEarned')}

-

${stats.totalEarned.toFixed(2)}

+
+
+ + + {/* Stats Overview */} +
+ +
+
+ +
+
+

{t('totalEarned')}

+

${stats.totalEarned.toFixed(2)}

- +
-
- +
+
-
-

{t('totalEarned')}

-

${stats.totalEarned.toFixed(2)}

+
+

{t('totalSpent')}

+

${stats.totalSpent.toFixed(2)}

- +
-
- +
+
-
-

{t('totalSpent')}

-

${stats.totalSpent.toFixed(2)}

+
+

{t('thisMonthEarned')}

+

${stats.thisMonthEarned.toFixed(2)}

- +
-
- +
+
-
-

{t('thisMonthEarned')}

-

${stats.thisMonthEarned.toFixed(2)}

-
-
- - - -
-
- -
-
-

{t('thisMonthSpent')}

-

${stats.thisMonthSpent.toFixed(2)}

+
+

{t('thisMonthSpent')}

+

${stats.thisMonthSpent.toFixed(2)}