diff --git a/app/pricing/page.tsx b/app/pricing/page.tsx index a733491..0418f22 100644 --- a/app/pricing/page.tsx +++ b/app/pricing/page.tsx @@ -16,37 +16,6 @@ import { DashboardLayout } from "@/components/layout/dashboard-layout"; export default function PricingPage() { - useEffect(() => { - // 获取当前窗口尺寸 - const currentWidth = window.innerWidth; - const currentHeight = window.innerHeight; - // 计算缩放比例 (1920x1080) - const wScale = currentWidth / 1920; - const hScale = currentHeight / 1080; - - // 检查app节点是否存在 - const pricingPage = document.getElementById("pricing-page"); - if (!pricingPage) { - console.error("未找到app节点"); - return; - } - // setHPading((hScale || 1) * 10); - // 创建样式元素 - const style = document.createElement("style"); - - // 设置CSS样式 - style.textContent = ` - #pricing-page { - transform-origin: top left; - transform: scale(${wScale}, ${hScale}); - width: 1920px; - height: 1080px; - } - `; - - // 将样式添加到head - document.head.appendChild(style); - }, []); return (
@@ -135,95 +104,341 @@ function HomeModule5() { }; return (
+
-
-

Pick a plan and make it yours -

+ - {/* 计费切换 */} -
- - -
+ {/* 计费切换 */} +
+ +
- - {/* 主要价格卡片 */} -
- {pricingPlans.map((plan, index) => ( -
-

- {plan.title} -

-
- - ${plan.price} - - / {billingType === "month" ? "mo" : "year"} -
-

- {plan.credits} -

- {plan.issubscribed ? ( - - ) : ( - - )} -

- * Billed monthly until cancelled -

-
    - {plan.features.map((feature, featureIndex) => ( -
  • - - {feature} -
  • - ))} -
-
- ))} -
- -
+ + {/* 主要价格卡片 */} +
+ {pricingPlans.map((plan, index) => ( +
+

+ {plan.title} +

+
+ + ${plan.price} + + + / {billingType === "month" ? "mo" : "year"} + +
+

+ {plan.credits} +

+ {plan.issubscribed ? ( + + ) : ( + + )} +

+ * Billed monthly until cancelled +

+
    + {plan.features.map((feature, featureIndex) => ( +
  • + + ✓ + + {feature} +
  • + ))} +
+
+ ))} +
+
); }