From 5c3de0dbe09a4462ef36ef5ce9db972814f9d764 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Fri, 13 Mar 2026 07:40:09 +0800 Subject: [PATCH] feat: Add dashboard layout with dark theme and Pro feature paywall component. --- .../components/dashboard/Dashboard.module.css | 4 +- .../dashboard/ProFeaturePaywall.tsx | 134 ++++++++++-------- 2 files changed, 77 insertions(+), 61 deletions(-) diff --git a/frontend/components/dashboard/Dashboard.module.css b/frontend/components/dashboard/Dashboard.module.css index eedb67ba..e0fbe487 100644 --- a/frontend/components/dashboard/Dashboard.module.css +++ b/frontend/components/dashboard/Dashboard.module.css @@ -1431,8 +1431,8 @@ left: 0; right: 0; bottom: 0; - background: rgba(0, 0, 0, 0.6); - backdrop-filter: blur(4px); + background: rgba(2, 6, 23, 0.75); + backdrop-filter: blur(12px); z-index: 10000; display: flex; align-items: center; diff --git a/frontend/components/dashboard/ProFeaturePaywall.tsx b/frontend/components/dashboard/ProFeaturePaywall.tsx index 86d3d5d1..da7692f1 100644 --- a/frontend/components/dashboard/ProFeaturePaywall.tsx +++ b/frontend/components/dashboard/ProFeaturePaywall.tsx @@ -36,69 +36,85 @@ export function ProFeaturePaywall({ feature }: ProFeaturePaywallProps) { const isEn = locale === "en-US"; return ( -
-
- -
+
+
+
+ +
-
-

- {isEn ? "Unlock PolyWeather Pro" : "开启 PolyWeather Pro"} -

-

- {isEn - ? `This module (${featureLabel}) is available for subscribers only. Upgrade to unlock advanced weather intelligence.` - : `当前模块(${featureLabel})仅对订阅用户开放。升级后可解锁更完整的气象分析能力。`} -

-
+
+

+ {isEn ? "Unlock PolyWeather Pro" : "开启 PolyWeather Pro"} +

+

+ {isEn + ? `This module (${featureLabel}) is available for subscribers only. Upgrade to unlock advanced weather intelligence.` + : `当前模块(${featureLabel})仅对订阅用户开放。升级后可解锁更完整的气象分析能力。`} +

+
-
- {[ - { - icon: Zap, - text: isEn ? "Real-time radar and lightning tracking" : "实时雷达与闪电追踪", - }, - { - icon: ShieldCheck, - text: isEn ? "15-day high-precision trend analysis" : "15 天高精度趋势分析", - }, - { - icon: BarChart3, - text: isEn ? "Pro-grade station raw data" : "专业级气象站原始数据", - }, - { - icon: Sparkles, - text: isEn ? "Ad-free experience across all surfaces" : "全平台无广告体验", - }, - ].map((item) => ( -
+ {[ + { + icon: Zap, + text: isEn + ? "Real-time radar and lightning tracking" + : "实时雷达与闪电追踪", + }, + { + icon: ShieldCheck, + text: isEn + ? "15-day high-precision trend analysis" + : "15 天高精度趋势分析", + }, + { + icon: BarChart3, + text: isEn + ? "Pro-grade station raw data" + : "专业级气象站原始数据", + }, + { + icon: Sparkles, + text: isEn + ? "Ad-free experience across all surfaces" + : "全平台无广告体验", + }, + ].map((item) => ( +
+
+ +
+ + {item.text} + +
+ ))} +
+ +
+ - - {item.text} -
- ))} -
+ {isEn ? "Upgrade now - $5 / month" : "立即升级 - $5 / 月"} + + +
-
- - {isEn ? "Upgrade now - $5 / month" : "立即升级 - $5 / 月"} - - -
- -
- - - {isEn ? "Payments are secured with AES-256 encryption" : "所有交易均经过 AES-256 加密保护"} - +
+ + + {isEn + ? "Payments are secured with AES-256 encryption" + : "所有交易均经过 AES-256 加密保护"} + +
);