's'
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user