This commit is contained in:
eric
2026-03-31 12:44:54 -05:00
parent 2ffbddff2e
commit 4497604242
10 changed files with 359 additions and 28 deletions

View File

@@ -1,22 +1,20 @@
"use client";
import { useState, useEffect } from "react";
import { useState } from "react";
import { formatRestoreDateShort } from "@/config/promo.config";
import styles from "../vip.module.css";
type LandingCTAProps = {
onJoin: () => void;
onLogin: () => void;
payTestMode?: boolean;
};
/** 设为 true 可重新展示「适合你 / 请止步」区块(下方 JSX 与 vip.module.css 内样式均保留) */
const SHOW_CTA_AUDIENCE_BOUNDARY = false;
export function LandingCTA({ onJoin, onLogin }: LandingCTAProps) {
const [restoreDate, setRestoreDate] = useState<string>("");
useEffect(() => {
setRestoreDate(formatRestoreDateShort());
}, []);
export function LandingCTA({ onJoin, onLogin, payTestMode }: LandingCTAProps) {
const [restoreDate] = useState<string>(() => formatRestoreDateShort());
return (
<section className={`${styles.section} ${styles.ctaSection}`} aria-labelledby="cta-heading">
@@ -74,6 +72,7 @@ export function LandingCTA({ onJoin, onLogin }: LandingCTAProps) {
type="button"
onClick={onJoin}
className={`${styles.btnPrimary} ${styles.btnLarge} ${styles.ctaBtnPrimary}`}
style={payTestMode ? { background: "linear-gradient(135deg,#16a34a,#22c55e)" } : undefined}
>
🔒 立即加入
</button>

View File

@@ -2,12 +2,18 @@
import styles from "../vip.module.css";
export function LandingHero() {
type LandingHeroProps = {
onTitleTap?: () => void;
};
export function LandingHero({ onTitleTap }: LandingHeroProps) {
return (
<section className={`${styles.section} ${styles.heroSection} ${styles.heroSection3d}`} style={{ textAlign: "center" }}>
<p
className={`${styles.heroEyebrow} animate__animated animate__fadeInDown`}
style={{ animationDelay: "0.1s", animationFillMode: "both" }}
style={{ animationDelay: "0.1s", animationFillMode: "both", cursor: "pointer" }}
onClick={onTitleTap}
title="连续点击 10 次切换测试价格"
>
异度星球会员中心
</p>