GoodCase.aiAI 动态 · Radar↗图谱 · AI Map↗课程 · LearnPrompt↗
出品GoodCase.aiAI News Radar ↗AI Map ↗LearnPrompt ↗
GoodCase.aiGoodCase.aiAI提示语案例合集
GoodCase.ai
排行榜案例Skills收藏投稿早报加入我们
中文EN
Agent 接入 →

出品

AI 动态 · Radar ↗图谱 · AI Map ↗课程 · LearnPrompt ↗
GoodCase.aiGoodCase.aiAI提示语案例合集
排行榜案例Skills收藏投稿早报加入我们
中文EN
Agent 接入 →

加载中…

GoodCase.ai · AI提示语案例合集
DSH 插件榜更新日志反馈
模型创作者Seedance 2.5Seedance 2.0GPT Image 2GeminiNano Banana ProClaudeClaude Opus 5.5Grok ImagineVeoKling 可灵Qwen ImageGPT Image 1.5MiniMax H3
Rocket 定价

Rocket 定价

创作者 · MotionSites

AI 编程(UI)MotionSites收录 2026/08/13已有人复测#not-rerun#web-ui
查看原始来源 ↗

Prompt

复刻提示词保留原文,另附运行环境、素材与验收要求;附加说明不是原作者原话。

构建一个与以下规范完全一致的 `PricingSection` React 组件。

## 技术栈与全局设置

- React 18 + Vite + TypeScript、TailwindCSS、`framer-motion`、`clsx` + `tailwind-merge`,通过 `@/lib/utils` 中的 `cn()` 暴露。
- 深色主题。页面背景 `#000000`。字体:Inter(`font-inter`)。图标:Google **Material Symbols Outlined**(全局加载)。
- Tailwind 配置必须包含语义化 HSL token,以及:
  ```ts
  theme.extend.colors.landing = {
    surface: "rgba(255,255,255,0.10)",
    "surface-hover": "rgba(255,255,255,0.16)",
    border: "rgba(255,255,255,0.10)",
  }
  ```
- `--background` / `--foreground` HSL token 驱动 `bg-background`(深色)和 `text-foreground`(近白色)。

## 辅助组件(完全复用其行为)

### `MIcon`
Material Symbols span。Props:`name`、`size=20`、`weight=400`、`fill=0`、`grade=0`、`opticalSize=24`、`className`。
```tsx
<span
  className={cn("material-symbols-outlined select-none leading-none", className)}
  style={{
    fontSize: size,
    fontVariationSettings: `'FILL' ${fill}, 'wght' ${weight}, 'GRAD' ${grade}, 'opsz' ${opticalSize}`,
  }}
>{name}</span>
```

### `FadeUp`
`framer-motion` wrapper:`initial={{opacity:0, y:24}}`、`whileInView={{opacity:1, y:0}}`、`viewport={{once:true, amount:0.3}}`、`transition={{duration:0.6, delay, ease:[0.22,1,0.36,1]}}`。Props:`children`、`delay=0`、`className`。

### `SpotlightBorder`
通过 CSS masks 实现跟随光标的 1px 渐变边框。
- Props:`children`、`className`、`radius="2xl"`、`size=520`、`intensity=0.5`。
- Wrapper 设置 CSS vars `--spot-x`、`--spot-y`(默认值为 `-9999px`),并在 `pointermove` 时根据元素的相对位置更新。
- 两个堆叠层使用 `-webkit-mask` + `mask`:`linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)`,并通过 `mask-composite: exclude` 生成 1px 圆环;圆环使用 `radial-gradient(circle var(--size) at var(--spot-x) var(--spot-y), rgba(255,255,255, var(--intensity)), transparent 60%)` 绘制。
- 外环:`rounded-2xl border border-white/10`。内部高亮环:更细,hover 时更亮。仅内部内容启用 pointer events。

### `PrimaryButton` / `SecondaryButton`
- 两者均为:`inline-flex items-center justify-center rounded-full`、Inter、leading-none,并带有 hover 时文字从下方向上移动的动画(`AnimatedText`)。
- PrimaryButton:`bg-white/80 hover:bg-white text-black`。尺寸 `sm` = `h-8 px-4 text-sm`。
- SecondaryButton:`bg-landing-surface hover:bg-landing-surface-hover border border-landing-border text-foreground backdrop-blur-[2.5px] font-medium`。尺寸 `sm` = `h-8 px-4 text-sm`。

## 区块结构 — `PricingSection`

```tsx
<section id="pricing" className="relative w-full bg-background py-12 sm:py-16">
  <div className="mx-auto max-w-[1080px] px-4 sm:px-6">
    {/* 页眉 */}
    <div className="mb-14 flex flex-col items-start gap-10 lg:flex-row lg:items-end lg:justify-between">
      <div className="max-w-2xl">
        <FadeUp>
          <span className="mb-6 inline-flex items-center gap-2 rounded-full bg-landing-surface border border-white/10 px-3 py-1 text-xs text-foreground/80 backdrop-blur">
            <span className="h-1.5 w-1.5 rounded-full bg-foreground/70" />
            定价
          </span>
        </FadeUp>
        <FadeUp delay={0.1}>
          <h2 className="text-3xl sm:text-4xl font-normal tracking-[-0.02em] leading-[1.05] text-foreground">
            清晰明了的定价方案
            <br className="hidden sm:block" /> 随你一同扩展。
          </h2>
        </FadeUp>
      </div>
      <FadeUp delay={0.2}>
        <p className="max-w-sm text-sm sm:text-base text-foreground/60">
          一次付款,终身使用。根据你想走多远,选择适合你的方案。
        </p>
      </FadeUp>
    </div>

    {/* 卡片 */}
    <div className="mx-auto grid max-w-3xl grid-cols-1 gap-6 md:grid-cols-2">
      {plans.map(p => <PricingCard key={p.name} plan={p} />)}
    </div>
  </div>
</section>
```

## 方案数据(精确如下)

```ts
type Feature = { text: string; included: boolean };
type Plan = {
  name: string; price: string; originalPrice?: string; description: string;
  features: Feature[]; featured?: boolean; badge?: string; bg: string;
};

const plans: Plan[] = [
  {
    name: "课程",
    price: "159", originalPrice: "497",
    description: "一次付款。终身使用。立省 68%。",
    bg: "#161616",
    features: [
      { text: "所有课程和视频", included: true },
      { text: "所有模块。终身使用。", included: true },
      { text: "AI Builder", included: true },
      { text: "无限量模板", included: false },
      { text: "无限量动态视频", included: false },
    ],
  },
  {
    name: "课程 + Lovable 模板",
    price: "239", originalPrice: "697",
    description: "一次付款。终身使用。最超值。",
    bg: "#252525",
    features: [
      { text: "所有课程和视频", included: true },
      { text: "所有模块。终身使用。", included: true },
      { text: "AI Builder", included: true },
      { text: "无限量模板", included: true },
      { text: "无限量动态视频", included: true },
    ],
    featured: true,
    badge: "最超值",
  },
];
```

## `PricingCard`

```tsx
<SpotlightBorder radius="2xl" size={460} intensity={0.5}
  className="relative h-full p-2 sm:p-3">
  <div
    className="relative flex h-full flex-col rounded-2xl border border-white/10 p-7 sm:p-8"
    style={{ backgroundColor: plan.bg }}
  >
    {plan.badge && (
      <div className="absolute -top-3 left-1/2 -translate-x-1/2 rounded-full border border-white/15 bg-white px-3 py-1 text-xs font-medium text-black">
        {plan.badge}
      </div>
    )}

    <FadeUp delay={0}>
      <div className="text-[11px] uppercase tracking-[0.2em] text-foreground/60">
        {plan.name}
      </div>
    </FadeUp>
    <div className="mt-3 border-t border-white/10" />

    <FadeUp delay={0.1}>
      <div className="mt-10 flex items-baseline gap-2">
        <span className="text-[2.75rem] leading-none font-normal tracking-tight text-foreground">${plan.price}</span>
        {plan.originalPrice && (
          <span className="text-lg text-foreground/40 line-through">${plan.originalPrice}</span>
        )}
      </div>
    </FadeUp>

    <FadeUp delay={0.2}>
      <p className="mt-4 text-sm leading-relaxed text-foreground/60">{plan.description}</p>
    </FadeUp>

    <FadeUp delay={0.3}>
      <div className="mt-7">
        {plan.featured
          ? <PrimaryButton href="/auth?mode=signup" size="sm">立即开始</PrimaryButton>
          : <SecondaryButton href="/auth?mode=signup" size="sm">立即开始</SecondaryButton>}
      </div>
    </FadeUp>

    <FadeUp delay={0.4}>
      <ul className="mt-7 flex flex-1 flex-col gap-2">
        {plan.features.map((f, i) => (
          <li key={f.text}
            className={cn(
              "flex items-center gap-3 py-4 text-sm",
              i !== 0 && "border-t border-white/10",
              f.included ? "text-foreground/85" : "text-foreground/40"
            )}>
            <span className={cn(
              "flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full border",
              f.included ? "border-white/20 bg-white/[0.06]" : "border-white/10 bg-transparent"
            )}>
              {f.included
                ? <MIcon name="check" size={12} className="text-foreground" />
                : <MIcon name="close" size={12} className="text-foreground/50" />}
            </span>
            {f.text}
          </li>
        ))}
      </ul>
    </FadeUp>
  </div>
</SpotlightBorder>
```

## 验收清单

- 区块 id 为 `pricing`,使用 `bg-background`、垂直内边距 `py-12 sm:py-16`、最大宽度 `1080px`。
- 页眉:胶囊标签(带圆点的“定价”)、标题“清晰明了的定价方案 / 随你一同扩展。”(≥sm 时换行),在 `lg+` 上右对齐的段落(max-w-sm)。三者均使用依次错开的 `FadeUp` delay:0、0.1、0.2。
- 卡片网格:`max-w-3xl mx-auto`、`gap-6`,1 列 → 在 `md` 时为 2 列。
- 卡片 1 背景为 `#161616`,卡片 2 背景为 `#252525`,并带“最超值”胶囊标签(`-top-3`、白色背景、黑色文字);featured 方案使用 `PrimaryButton`,另一方案使用 `SecondaryButton`。
- 每张卡片带有跟随光标的 `SpotlightBorder` 1px 圆环(size 460、intensity 0.5)。
- 卡片内容顺序:眉题(uppercase、`text-[11px] tracking-[0.2em]`)、分隔线、价格行(`$2.75rem` + 带删除线的原价 `text-foreground/40`)、描述、按钮、功能列表。
- 功能行:`py-4`,除第一行外均由 `border-t border-white/10` 分隔。已包含 = 20px 圆形 `border-white/20 bg-white/[0.06]`,内含 check;未包含 = 带 close 的透明圆形,文字使用 `text-foreground/40`。
- 卡片内部 `FadeUp` 依次错开:0、0.1、0.2、0.3、0.4。
- 按钮链接到 `/auth?mode=signup`。
- 所有颜色均通过 HSL token / 已声明的 landing surface token 设置;除两张卡片背景和 `#000000` 外,绝不硬编码十六进制颜色。
≡溯源 · 已核对已发布案例的 prompt 均经人工核对与原帖一致;平台逆向重构的 prompt 不予收录。核对原帖 ↗

适用模型与稳定度

建议模型

待补充模型
稳定度
95 / 100
成本
中
对应 Skill网页区块像素复刻 ↗

多人复现

1 个人用同一段 Prompt 跑出了自己的作品。

复现作品 · 非作者原作
卡尔
复现者卡尔
2026年10月15日
卡尔 的复现作品打开复现作品 ↗
glm-5.3

GLM-5.3 单次生成;Codex 人工修复运行依赖、必要源码及移动布局,未重新生成。桌面/手机真实渲染和资源检查通过;完整功能与视觉还原尚未全部验收。源码、截图和修复记录见复现出处。

复现出处 ↗

继续探索

继续看相关 Case。

查看全部 AI 编程(UI) Case →
3D Jack 作品集
AI 编程(UI)MotionSites收录 2026/08/13

3D Jack 作品集

3D 创作者 Jack 的作品集落地页,React + TypeScript + Framer Motion,#0C0C0C 暗底。

Skill · 3D / 动效 HeroSkill · 个人作品集叙事

提示语

使用 React、TypeScript、Tailwind CSS、Framer Motion 和 Lucide React,为「Jack」构建一个 3D 创作者作品集落地页。页面采用深色主题(背景为 #0C0C0C),字体使用 Kanit(Google Fonts,字重 300-900)。页面标题为「Jack -- 3D Creator」。 全局样式 html、body、#root 和主容器的背景:#0C0C0C 字体族:'Kanit', sans-serif 全局重置:b

来源热度 · MotionSites
—
稳定度
65
查看 Case →
404 星球
AI 编程(UI)MotionSites收录 2026/08/13

404 星球

主机商 NEXOVA 的 404 页,循环视频背景加导航,错误页做出了落地页的完成度。

Skill · 网页区块像素复刻

提示语

为一家名为“NEXOVA”的托管公司构建一个全屏 404 错误页面。整个页面采用单视口高度布局,包含循环播放的背景视频、导航栏、居中的 hero/404 区域和多栏页脚。使用 React + Tailwind CSS + Lucide React icons。不要使用其他 UI 库。 --- **字体** 在 `index.html` 中通过以下样式表加载“Helvetica Now Var”: ``` <link href="https://db.onlinewebf

来源热度 · MotionSites
—
稳定度
94
查看 Case →
ADHD 规划器
AI 编程(UI)MotionSites收录 2026/08/13

ADHD 规划器

ADHD 友好的日程应用 Drift 落地站,React + Vite + TypeScript + Tailwind,安静低刺激的视觉方向本身就是产品卖点。

Skill · 网页区块像素复刻

提示语

为 "Drift" 构建一个单页落地网站——这是一款平静、对 ADHD 友好的规划应用。使用 React + Vite + TypeScript + Tailwind CSS + lucide-react 提供图标。不要使用其他 UI 库。 ### 字体 通过 Google Fonts 在 `index.css` 中导入: - **Inter**(字重 400、500、600)——用作基础正文字体 - **Instrument Serif**(仅斜体)——用于首屏标题中的

来源热度 · MotionSites
—
稳定度
91
查看 Case →

同作者

同作者更多 · MotionSites →

  • Quantum LucidAI 编程(UI) · 2026-09-18
  • 珍稀画廊AI 编程(UI) · 2026-08-30
  • Palomar LabsAI 编程(UI) · 2026-08-30
  • Quantum CoreAI 编程(UI) · 2026-08-30
  • Agent WaveAI 编程(UI) · 2026-08-19
  • Aurex FinanceAI 编程(UI) · 2026-08-19

Case 详情页把原帖效果、Prompt 与复测证据放在同一条阅读路径里。