Communitygithub.com

ZeroSum-Solutions/mishmash

为“Astra”打造的单页太空旅行着陆页面,包含两个全高部分——英雄区和能力展示区——均通过自定义的 rAF 驱动的 JavaScript 例程实现循环背景视频的交叉淡入淡出(无 CSS 过渡)。页面为所有镀铬元素(导航、标签、卡片、行动号召按钮)采用“液态玻璃”设计系统;所有文字均为白色,显示在全出血视频上,无暗色叠加层,对比度完全来自玻璃镀铬效果。

mishmash 是什么?

该技能用于生成一个名为“Astra”的沉浸式单页太空旅行着陆页面。它包含两个全高部分:一个英雄区和能力展示区,两者都覆盖在循环播放的背景视频上,视频通过自定义的 `requestAnimationFrame` (rAF) 驱动的 JavaScript 例程实现交叉淡入淡出,不使用 CSS 过渡。页面采用“液态玻璃”设计系统,应用于所有界面元素(如导航栏、标签、卡片和行动号召按钮),所有文本均为白色,直接显示在全出血视频上,不添加暗色叠加层;对比度完全来自玻璃效果元素。该技能支持生成独立的 HTML 文件,可在任何现代浏览器中运行。它使用 React 18.3.1(UMD 版本,内联在页面中)、Babel Standalone(用于 JSX 编译)、Framer Motion(用于入场动画,如逐词模糊进入标题)以及 Tailwind CSS(通过 CDN 加载)。构建规范要求只使用给定的技术栈,禁止引入外部打包工具或修改核心设计系统。输出通过 `<artifact>` 标签封装为完整的 HTML 文件。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ZeroSum-Solutions/mishmash/tree/HEAD/design-templates/space-voyage-landing

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Astra —— 沉浸式太空旅行登陆页

源于 MIT 许可的 pulkitxm/claude-directory 图库中的登陆页。

为“Astra”打造的单一页面太空旅行登陆网站,包含两个全高部分——英雄区和能力展示区——两者都覆盖在循环播放的背景视频上,视频通过自定义的 rAF 驱动的 JavaScript 例程实现交叉淡入淡出(无 CSS 过渡)。页面为所有镀铬元素(导航、标签、卡片、行动号召按钮)采用“液态玻璃”设计系统;所有文字均为白色,显示在全出血视频上,无暗色叠加层,对比度完全来自玻璃镀铬效果。

工作流程

  1. 将 example.html 克隆到用户的工作区作为工作文件。
  2. 替换占位内容为用户真实的品牌名称、标题、正文内容、数字和图像。更换资源时保持图像尺寸一致。
  3. 保留设计系统。 下方构建规范中的调色板、字阶、间距节奏和动效是核心特征——不要替换字体、改变调色板或移除装饰元素。
  4. 通过复制现有部分来扩展,绝不要从其他模板导入布局。如果缺少某个部分,请用此模板自己的设计语言从头开始设计。
  5. 保持动效可访问。 根据构建规范要求,每个动画都必须遵守 prefers-reduced-motion。

输出约定

在 <artifact> 标签之间输出:

<artifact identifier="space-voyage-landing" type="text/html" title="Astra —— 沉浸式太空旅行登陆页">
<!doctype html>
<html>...</html>
</artifact>

构建规范

以下是生成此设计的原始提示,逐字呈现。

Astra —— 沉浸式太空旅行登陆页

概述

构建一个单一页面的太空旅行登陆网站,包含两个全高部分——英雄区和能力展示区——两者都覆盖在循环播放的背景视频上,视频通过自定义的 rAF 驱动的 JavaScript 例程实现交叉淡入淡出(无 CSS 过渡)。页面为所有镀铬元素(导航、标签、卡片、行动号召按钮)采用“液态玻璃”设计系统,并使用 Motion(Framer Motion)实现入场动画,包括逐词模糊进入的标题。所有文字均为白色,显示在全出血视频上,无暗色叠加层;对比度完全来自液态玻璃镀铬效果。

技术栈

  • 运行时 / 框架: React 18.3.1(UMD 开发构建,从 CDN 加载——无打包器)。
  • JSX 编译: 通过 Babel Standalone 7.29.0 在浏览器中进行;每个组件都是一个 <script type="text/babel"> 文件,将自身导出到 window.X = X。
  • 动画: Framer Motion 11.11.17(UMD 构建,暴露为 window.Motion)。
  • 样式: Tailwind CSS 通过 CDN <script>(https://cdn.tailwindcss.com)加载,带有内联的 tailwind.config,外加一个手写的 <style> 块用于液态玻璃工具类。
  • 字体: Google Fonts —— 标题使用 Instrument Serif(ital@0;1),正文使用 Barlow(wght@300;400;500;600)。
  • 挂载点: 通过 ReactDOM.createRoot 将 React 应用挂载到 #root 上。
  • 显著技术: 自定义 rAF 交叉淡入淡出循环视频、IntersectionObserver 触发的模糊进入文字、通过遮罩 ::before 伪元素实现的液态玻璃渐变边框。

全局设置

index.html

  • <html lang="en">,charset UTF-8,响应式 viewport meta。
  • <title>:astra —— Venture Past Our Sky。
  • Favicon:一个内联的 SVG data URI —— 一个黑色 rounded 矩形(rx='16')内居中放置一个白色的斜体 Georgia 衬线小写字母 a。
  • Body:<body class="bg-black antialiased"> 仅包含 <div id="root"></div>,后跟所有 script 标签。
  • html, body { background: #000; } 设置在 <style> 块中。

CDN 脚本(固定版本,仅 CDN)

按以下顺序加载在 <head> 内部:

<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/[email protected]/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/dist/framer-motion.js"></script>
<script>window.Motion = window.FramerMotion;</script>

字体

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Barlow:wght@300;400;500;600&display=swap" rel="stylesheet" />

Tailwind 配置

在组件之前内联,扩展主题:

tailwind.config = {
  theme: {
    extend: {
      fontFamily: {
        heading: ['"Instrument Serif"', 'serif'],
        body: ['Barlow', 'sans-serif'],
      },
      borderRadius: {
        DEFAULT: '9999px',
      },
    },
  },
};
  • font-heading → 'Instrument Serif', serif(始终使用斜体)。
  • font-body → 'Barlow', sans-serif。
  • 默认 border-radius 覆盖 DEFAULT: '9999px',使得单独使用 rounded 变成药丸形。

Framer Motion 开发警告抑制

Framer Motion 关于列表键的开发警告是无害的,使用 console.error 包装器过滤掉:

(function () {
  var origError = console.error;
  console.error = function () {
    var first = arguments[0];
    if (typeof first === 'string' && (first.indexOf('unique "key" prop') !== -1 || first.indexOf('Each child in a list') !== -1)) return;
    origError.apply(console, arguments);
  };
})();

组件脚本加载顺序

在 <body> 末尾,按顺序加载每个 Babel 组件文件:

<script type="text/babel" src="js/icons.js"></script>
<script type="text/babel" src="js/FadingVideo.js"></script>
<script type="text/babel" src="js/BlurText.js"></script>
<script type="text/babel" src="js/Navbar.js"></script>
<script type="text/babel" src="js/Hero.js"></script>
<script type="text/babel" src="js/Capabilities.js"></script>
<script type="text/babel" src="js/App.js"></script>

液态玻璃工具类

在 <style> 块中有两种变体 —— .liquid-glass(细腻,用于导航 / 标签 / 卡片)和 .liquid-glass-strong(更重的模糊,用于主要行动号召按钮)。每个变体都通过遮罩的 ::before 伪元素绘制渐变边框。

.liquid-glass {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-strong {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.liquid-glass-strong::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.5) 0%,
    rgba(255,255,255,0.2) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.2) 80%,
    rgba(255,255,255,0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
  • 强变体与细腻变体完全相同,除了:backdrop-filter: blur(50px),box-shadow(4px 4px 4px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15)),以及 ::before 渐变停止点(0.5 / 0.2 / 0 / 0 / 0.2 / 0.5)。

图标 —— js/icons.js

内联的类似 Lucide 的 SVG 图标(currentColor 描边)加上 Material 图标字形。每个都分配给 window。将所有内容包装在 IIFE 中。

  • ArrowUpRight({ className }) —— 24×24,viewBox="0 0 24 24",fill="none",stroke="currentColor",strokeWidth="2",圆头端点/连接,aria-hidden。两条路径:M7 17L17 7 和 M7 7h10v10。
  • PlayIcon({ className }) —— 24×24,viewBox="0 0 24 24",fill="currentColor",stroke="none",aria-hidden。填充多边形 points="6 4 20 12 6 20 6 4"。
  • ClockIcon —— 一个白色 28×28 轮廓 SVG 图标(时钟),用于统计卡片 1。
  • GlobeIcon —— 一个白色 28×28 轮廓 SVG 图标(地球),用于统计卡片 2。
  • Material Icons SVG —— 一个白色 Material Icons SVG(fill currentColor,h-6 w-6 text-white),用于能力卡片内部。

FadingVideo —— js/FadingVideo.js

自定义 JS 交叉淡入淡出循环视频。无 CSS 过渡:每个淡入淡出都由 rAF 驱动,循环通过 ended 事件手动实现(原生 loop 属性关闭)。

  • 常量:FADE_MS = 500,FADE_OUT_LEAD = 0.55(结束前开始淡出的秒数)。
  • FadingVideo({ src, className, style }) 渲染 <video ref muted autoPlay playsInline preload="auto" />,带有 style={{ opacity: 0, ...style }}(从 opacity: 0 开始)。
  • 通过 React.useRef 使用的引用:videoRef,rafRef(当前 rAF id),fadingOutRef(布尔值)。
  • 所有逻辑都在 React.useEffect(..., [src]) 中。

fadeTo(target, duration = FADE_MS):

  • 如果 rafRef.current !== null,在开始前调用 cancelAnimationFrame(rafRef.current)(这样新的淡入淡出会打断之前的)。
  • 使用 parseFloat(video.style.opacity || '0') 读取起始值,以便每个新的淡入淡出从上一个结束的地方继续。
  • 使用 performance.now() 获取开始时间;在每个 requestAnimationFrame 滴答中计算 t = Math.min((now - start) / duration, 1),设置 video.style.opacity = String(from + (target - from) * t),并继续请求帧直到 t >= 1,然后设置 rafRef.current = null。

事件处理器:

  • loadeddata:设置 opacity = '0',video.play().catch(() => {}),然后 fadeTo(1)。
  • timeupdate:remaining = video.duration - video.currentTime;如果 !fadingOutRef.current && remaining <= FADE_OUT_LEAD && remaining > 0,设置 fadingOutRef.current = true 并 fadeTo(0)。
  • ended:设置 opacity = '0',然后经过 setTimeout(..., 100) 后重置 currentTime = 0,play(),清除 fadingOutRef.current = false,并 fadeTo(1)。
  • 如果在附加监听器时 video.readyState >= 2,立即调用 onLoadedData()。

卸载时清理: 取消 rAF(cancelAnimationFrame(rafRef.current))并移除所有三个监听器。

BlurText —— js/BlurText.js

逐词模糊进入的标题,在 10% 可见度时触发。引入 const { motion } = window.Motion。常量 STEP_DURATION = 0.35。

  • BlurText({ text, className, delay = 100 })。
  • 一个 IntersectionObserver,使用 { threshold: 0.1 },在首次交叉时设置 inView = true,然后 observer.unobserve(el);清理时断开连接。
  • 按空格分割文本:const words = text.split(' ')。
  • 渲染一个 <p ref className>,样式为 display: flex; flexWrap: wrap; justifyContent: center; rowGap: 0.1em。
  • 每个单词是一个 motion.span,带有 key={${word}-${i}}:
    • initial={{ filter: 'blur(10px)', opacity: 0, y: 50 }}。
    • 当可见时,动画关键帧:
      {
        filter: ['blur(10px)', 'blur(5px)', 'blur(0px)'],
        opacity: [0, 0.5, 1],
        y: [50, -5, 0],
      }
      
      否则保持 { filter: 'blur(10px)', opacity: 0, y: 50 }。
    • transition={{ duration: STEP_DURATION * 2, times: [0, 0.5, 1], ease: 'easeOut', delay: (i * delay) / 1000 }}。
    • style={{ display: 'inline-block', marginRight: '0.28em' }} —— 使用 marginRight 而不是不换行空格,因为 -4px 的字母间距会吃掉不换行空格。

Navbar —— js/Navbar.js

浮动的液态玻璃镀铬元素。引入 const { ArrowUpRight } = window。NAV_LINKS = ['Home', 'Voyages', 'Worlds', 'Innovation', 'Plan Launch']。

  • <nav> 类:fixed top-4 left-0 right-0 z-50 px-8 lg:px-16 flex items-center justify-between。
  • Logo(左侧): 一个 <a href="#" aria-label="astra home">,带有 liquid-glass rounded-full w-12 h-12 flex items-center justify-center shrink-0。内部:<span class="font-heading italic text-white text-2xl leading-none -translate-y-px">a</span>(斜体衬线小写字母“a”)。
  • 中心药丸(仅桌面端): <div class="hidden md:flex items-center liquid-glass rounded-full px-1.5 py-1.5"> 包含:
    • 5 个导航链接,每个 <a href="#" key={link}>,带有 px-3 py-2 text-sm font-medium text-white/90 font-body whitespace-nowrap hover:text-white。
    • 一个白色药丸按钮:<a href="#" class="flex items-center gap-1.5 bg-white text-black rounded-full px-4 py-2 text-sm font-medium font-body whitespace-nowrap">,文本为 Claim a Spot,后跟 <ArrowUpRight className="h-4 w-4" />。
  • 右侧: 一个不可见的 48×48 间隔元素用于平衡 logo —— <div class="w-12 h-12 invisible shrink-0" aria-hidden="true" />。

第 1 部分 —— 英雄区(js/Hero.js)

全视口部分:交叉淡入淡出视频、导航栏、模糊进入标题、行动号召按钮、统计卡片、合作伙伴行。引入 const { motion } = window.Motion 和 const { FadingVideo, BlurText, Navbar, ArrowUpRight, PlayIcon, ClockIcon, GlobeIcon } = window。

  • HERO_VIDEO = 'assets/hf_20260418_080021_d598092b-c4c2-4e53-8e46-94cf9064cd50.mp4'。

入场动画辅助: 所有英雄内容使用 Motion 进行动画,使用:

const HIDDEN = { filter: 'blur(10px)'

...

const VISIBLE = { filter: 'blur(0px)' }(稍后在代码中实际使用)。

  • 布局: <section class="relative h-screen w-full overflow-hidden">。
    • <FadingVideo src={HERO_VIDEO} className="absolute inset-0 w-full h-full object-cover" />。
    • <Navbar />。
    • 标题(居中):<div class="relative z-10 flex flex-col items-center justify-center h-full text-center px-4">。
      • <BlurText text="Venture Past Our Sky" className="text-6xl lg:text-8xl font-heading italic text-white leading-tight" />。
      • <p class="mt-6 text-lg lg:text-xl text-white/80 font-body max-w-2xl">Embark on a journey beyond the stars. Book your seat on the next voyage to the unknown.</p>。
      • 行动号召按钮: <div class="mt-10 flex items-center gap-6">。
        • <a href="#" class="liquid-glass-strong rounded-full px-8 py-4 text-white text-lg font-medium font-body flex items-center gap-2 hover:bg-white/10 transition-colors"> 带有文本 Watch the Trailer 和 <PlayIcon className="h-5 w-5" />。
        • <a href="#" class="text-white/80 font-body text-sm flex items-center gap-2 hover:text-white transition-colors"> 带有文本 Explore Voyages 和 <ArrowUpRight className="h-4 w-4" />。
    • 统计卡片(底部):<div class="absolute bottom-8 left-0 right-0 flex justify-center gap-6 px-4">。
      • <div class="liquid-glass rounded-2xl px-6 py-4 flex items-center gap-4">。
        • <ClockIcon />。
        • <div><p class="text-2xl font-heading italic text-white">2.5M</p><p class="text-sm text-white/60 font-body">Light Years Traveled</p></div>。
      • <div class="liquid-glass rounded-2xl px-6 py-4 flex items-center gap-4">。
        • <GlobeIcon />。
        • <div><p class="text-2xl font-heading italic text-white">1,247</p><p class="text-sm text-white/60 font-body">Worlds Explored</p></div>。
      • <div class="liquid-glass rounded-2xl px-6 py-4 flex items-center gap-4">。
        • <div><p class="text-2xl font-heading italic text-white">99.8%</p><p class="text-sm text-white/60 font-body">Safety Rating</p></div>。
    • 合作伙伴行(底部,统计卡片下方):<div class="absolute bottom-4 left-0 right-0 flex justify-center gap-8 px-4 opacity-50">。
      • 5 个 <span class="text-white/40 text-sm font-body tracking-widest uppercase">Partner Logo</span>。

第 2 部分 —— 能力展示区(js/Capabilities.js)

第二个全视口部分:交叉淡入淡出视频、标题、能力网格。引入 const { motion } = window.Motion 和 const { FadingVideo, BlurText, ArrowUpRight } = window。

  • CAPABILITIES_VIDEO = 'assets/hf_20260418_080021_d598092b-c4c2-4e53-8e46-94cf9064cd50.mp4'(与英雄区视频相同,但可以不同)。
  • CAPABILITIES = [...] —— 数组包含 6 个能力对象,每个具有 { title, description, icon }。

能力定义:

  1. Interstellar Navigation —— Advanced AI-driven navigation systems that chart the safest routes through unknown galaxies. 图标 Material Icons:nearby_error。
  2. Quantum Communication —— Instantaneous communication across light-years using quantum entanglement technology. 图标 Material Icons:cell_tower。
  3. Gravity Generation —— Artificial gravity systems that ensure comfort and safety during extended space voyages. 图标 Material Icons:gravity。
  4. Life Support Systems —— Self-sustaining ecosystems that provide air, water, and food for long-duration missions. 图标 Material Icons:ecosystem。
  5. Shield Technology —— Advanced energy shields that protect against cosmic radiation and space debris. 图标 Material Icons:shield。
  6. Warp Drive —— Revolutionary propulsion technology enabling faster-than-light travel across the cosmos. 图标 Material Icons:speed。
  • 布局: 英雄区之后的 <section class="relative h-screen w-full overflow-hidden">。
    • <FadingVideo src={CAPABILITIES_VIDEO} className="absolute inset-0 w-full h-full object-cover" />。
    • 内容:<div class="relative z-10 flex flex-col items-center justify-center h-full px-8 lg:px-16">。
      • <BlurText text="Capabilities" className="text-5xl lg:text-7xl font-heading italic text-white mb-12" />。
      • <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl w-full">。
        • 对于每个能力,<div class="liquid-glass rounded-2xl p-6 flex flex-col items-start text-left">。
          • <div class="w-12 h-12 rounded-full bg-white/10 flex items-center justify-center mb-4">,内部包含 Material Icons SVG(<svg class="h-6 w-6 text-white" fill="currentColor" viewBox="0 0 24 24">...</svg>)或者一个占位符。
          • <h3 class="text-2xl font-heading italic text-white mb-2">{title}</h3>。
          • <p class="text-sm text-white/70 font-body leading-relaxed">{description}</p>。
          • <a href="#" class="mt-4 text-white/60 font-body text-sm flex items-center gap-1 hover:text-white transition-colors">Learn More <ArrowUpRight className="h-3 w-3" /></a>。

App —— js/App.js

根组件,导入 Hero 和 Capabilities,渲染它们。引入 const { Hero, Capabilities } = window。

  • function App() { return <><Hero /><Capabilities /></>; }。
  • 导出:window.App = App。

index.html 结构(用于渲染)

<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>astra — Venture Past Our Sky</title>
  <!-- Favicon (内联 SVG data URI) -->
  <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='16' fill='black'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='central' text-anchor='middle' font-family='Georgia' font-style='italic' font-weight='400' font-size='20' fill='white'%3Ea%3C/text%3E%3C/svg%3E" />
  <!-- Tailwind CSS -->
  <script src="https://cdn.tailwindcss.com"></script>
  <!-- React -->
  <script src="https://unpkg.com/[email protected]/umd/react.development.js"></script>
  <script src="https://unpkg.com/[email protected]/umd/react-dom.development.js"></script>
  <!-- Babel Standalone -->
  <script src="https://unpkg.com/@babel/[email protected]/babel.min.js"></script>
  <!-- Framer Motion -->
  <script src="https://unpkg.com/[email protected]/dist/framer-motion.js"></script>
  <script>window.Motion = window.FramerMotion;</script>
  <!-- 字体 -->
  <link rel="preconnect" href="https://fonts.googleapis.com" />
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Barlow:wght@300;400;500;600&display=swap" rel="stylesheet" />
  <!-- 全局样式 -->
  <style>
    html, body { background: #000; margin: 0; }
    /* 液态玻璃样式 ... */
  </style>
  <!-- Tailwind 配置 -->
  <script>
    tailwind.config = {
      theme: {
        extend: {
          fontFamily: {
            heading: ['"Instrument Serif"', 'serif'],
            body: ['Barlow', 'sans-serif'],
          },
          borderRadius: {
            DEFAULT: '9999px',
          },
        },
      },
    };
    // Framer Motion 警告抑制
    (function () {
      var origError = console.error;
      console.error = function () {
        var first = arguments[0];
        if (typeof first === 'string' && (first.indexOf('unique "key" prop') !== -1 || first.indexOf('Each child in a list') !== -1)) return;
        origError.apply(console, arguments);
      };
    })();
  </script>
</head>
<body class="bg-black antialiased">
  <div id="root"></div>
  <!-- 组件脚本 -->
  <script type="text/babel" src="js/icons.js"></script>
  <script type="text/babel" src="js/FadingVideo.js"></script>
  <script type="text/babel" src="js/BlurText.js"></script>
  <script type="text/babel" src="js/Navbar.js"></script>
  <script type="text/babel" src="js/Hero.js"></script>
  <script type="text/babel" src="js/Capabilities.js"></script>
  <script type="text/babel" src="js/App.js"></script>
  <script type="text/babel">
    const root = ReactDOM.createRoot(document.getElementById('root'));
    root.render(React.createElement(window.App));
  </script>
</body>
</html>

此结构是输出的模板。所有组件脚本应直接内联在 HTML 文件中以保持自包含。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ZeroSum-Solutions/mishmash

Two-section scroll landing for **S.P.D**, a fictional daily-operations automation platform. Section one is a full-bleed black hero: a muted, looping period-painting video plays edge to edge behind a top-left wordmark and tagline, a top-right pill CTA, and a large right-aligned serif headline low in the frame. A cloud-plume image straddles the seam into section two, a saturated red panel holding a centered monogram, an uppercase mission line, a large script signature, two closing lines of copy, and a second looping video with a soft fade into the red. Motion is a staggered load-in fade on the hero, an IntersectionObserver reveal on the red section's content, and a scroll-linked parallax on the cloud plume — all degrading to a static, fully-visible layout under reduced motion.

ZeroSum-Solutions/mishmash

Full-screen, single-viewport (100vh, no scroll) dark hero landing page for **Asme**, a fictional no-code AI app platform. The fullscreen background is an HLS video stream from Mux, playing natively on Safari and via hls.js MediaSource on other browsers. A liquid-glass pill navbar (luminosity-blended glass with a masked `::before` gradient border) floats above an Instrument Serif hero heading and an animated email-capture CTA — "Get early access" expands to a form with a 60 ms/char typewriter placeholder, flips `ArrowRight` to `Check` on submit, and auto-resets after 4 seconds. All elements animate in on load with Motion (Framer Motion).

ZeroSum-Solutions/mishmash

A pixel-spec, dark-themed single-page marketing landing site for **Asme**, a fictional knowledge and insights platform, featuring a signature reusable `.liquid-glass` surface treatment — luminosity-blended translucent fill, 4px backdrop blur, inset top highlight, and a masked `::before` gradient border — applied consistently across the navbar pill, email capture, buttons, cards, and icon chips. The full-viewport hero loops a locally vendored `.mp4` video via a vanilla `requestAnimationFrame` opacity crossfade (fade in on `canplay`, fade out at 0.55s remaining, 100ms gap restart). Four scroll-triggered sections animate in with Framer Motion `useInView`: About, Featured Video, Innovation × Vision (video + two columns sliding from opposite sides), and Services (two glass cards with hover-zoom video). Instrument Serif display type sits against pure black throughout.

ZeroSum-Solutions/mishmash

A premium, dark-cinematic landing page for **Aura**, a fictional AI-native email client, featuring a looping fullscreen background video, a gradient-clip shiny headline, a macOS-style menu bar mockup, a realistic inbox preview, and a custom liquid-glass card treatment. The multi-section layout covers navbar, hero, menu bar, inbox mockup, feature triage, logo cloud, testimonials, pricing, and a final CTA — targeting the AI productivity app and SaaS landing page use case.

ZeroSum-Solutions/mishmash

A modern React landing page for a fictional broadcast-grade live video platform featuring a full-screen adaptive HLS video background, a glassmorphic navigation header, and hero content pinned to the bottom-left corner. Dark cinematic aesthetic with Gloock display serif, Archivo body, JetBrains Mono telemetry labels, and an aurora-green signal accent — ideal as a live streaming platform or video SaaS landing page template.

ZeroSum-Solutions/mishmash

A single-screen marketing landing page for "dot.", a calm-messaging product that links you with one anonymous peer for a single message each day. The hero is a full-screen looping background video of a phone, fronted by an animated Instrument Serif headline and a typewriter effect that types and deletes short messages ("Are you here?", "Yes, I am.", "Speak soon.") positioned to sit on the phone's on-screen display — evoking a quiet, analog rhythm. A floating pill navbar with a glinting "Link up" CTA completes the single-screen composition.

ZeroSum-Solutions/mishmash

A single-page "scrollytelling" landing page called Step Into Wonder: a 4.8-screen pinned scroll sequence where painted curtains part over a glowing crystal-cave portal, the world zooms and the portal irises open toward a sky beyond, then a giant arc of nine pastel destination cards sweeps across the closing scroll like a slow ferris wheel. Serif display headlines (Viaoda Libre) pair with a plain sans body face (Imprima) over a near-black stage, with mouse parallax on every layer and a dignified static fallback under reduced motion.

ZeroSum-Solutions/mishmash

Full landing page for the fictional AI workflow-automation platform **FlowMate** — a fixed left sidebar with a logo mark and section nav, a translucent blurred navbar, a large serif hero headline, a liquid-glass chat-composer card overlaid on a looping ambient video, a six-card feature grid, and an auto-rotating three-up cards carousel, all on an off-white minimalist palette with one indigo-violet chromatic accent.

ZeroSum-Solutions/mishmash

A single-page landing page for GroundAI, an interior-design AI product, built with TanStack Start v1 on file-based routing, React 19, TypeScript, Tailwind CSS v4, framer-motion for all animation, and lucide-react for icons. The page is composed of four stacked sections: a full-bleed autoplaying video hero with spring-animated header, expanding glass nav pill, and word-by-word animated description; a CSS marquee of partner brand wordmarks; a CraftExperiences section with a spring-driven style carousel, a skeleton-morphing chat card, and a staggered adaptable list; and a two-column testimonials block with animated word reveals.

ZeroSum-Solutions/mishmash

Produce a print-grade single-page kami (紙 / 纸) document — warm parchment canvas, ink-blue accent, serif at one weight, no italic, no cool grays. The output reads like a professional white paper or studio one-pager, not an app UI. Multilingual by design (EN · zh-CN · ja). One self-contained HTML file, zero dependencies.

ZeroSum-Solutions/mishmash

A single-page, desktop-only dark hero landing for the fictional studio **Kubric™**, built on **TanStack Start v1 + React 19 + Vite 7 + Tailwind v4** with file-based routing. Features a looping background video with a progressive 8-layer `backdrop-filter` blur at the bottom, an animated SVG logo with arc stroke-dashoffset reveals, a glass nav pill, a character-by-character headline reveal, a vertical right-side section nav, and a white "About us" card. Everything animates in on first load once the background video is ready.

ZeroSum-Solutions/mishmash

ProFolioX is a static reproduction of the current Lexington Themes portfolio template. It combines a fixed desktop sidebar, responsive mobile navigation, Geist typography, light and dark themes, animated project cards, searchable content, and editorial portfolio layouts.

ZeroSum-Solutions/mishmash

Warm, editorial single-page landing for **Velar.**, a fictional luxury real-estate brand. A deep-teal typewriter preloader gives way to a sky-backdrop hero ("Live in Irreplaceable") with a cutout building image that rises from below on load, then a scroll-driven centerpiece: as the user scrolls, that same building drifts upward and scales to 1.45x while pinning toward the bottom of a sticky black statement section with count-up stats. A hover-expand five-tile video gallery slides up over the statement section, and a bronze-gradient "Inquire" close finishes the page. Syne (display) pairs with Inter (body) throughout, on a warm off-white ground with one chromatic bronze accent.

ZeroSum-Solutions/mishmash

A full-screen, cinematic hero landing page for a creative agency called Mainframe, featuring a fixed background video that scrubs forward and backward in response to horizontal mouse movement, an AI-assistant-themed blurred intro label, a typewriter-animated headline, and a row of pill-shaped action buttons with a clipboard copy email link. The design pairs HelveticaNowDisplay-Medium headings with HelveticaNowDisplayW01-Rg body text, both vendored locally for offline use. Built with React 19, TypeScript, Vite, and Tailwind CSS v3.

ZeroSum-Solutions/mishmash

A cinematic, single-section landing hero for mėntality, a fictional mental-health resources product. The page pairs a full-bleed background video that gradient-masks into a soft `#edeef5` base with a glassmorphic, fixed navigation bar, built in React 19 + Vite and animated with Motion (formerly Framer Motion). Notable techniques include `backdrop-blur` glassmorphism, a gradient mask that blends the video top into the base color, `clamp()` fluid headline sizing, an animated SVG hamburger that morphs into an X, an inline blinking "eye/pupil" pill in the headline, and an animated `pl`/`en` language toggle. Styling is Tailwind CSS 4 via the `@tailwindcss/vite` plugin (CSS-first `@theme`, no config file), with Inter and Outfit from Google Fonts.

ZeroSum-Solutions/mishmash

A pure-black (#000) monochrome landing page for Mindloop, a newsletter and content platform, where white typography does the talking — Inter for structure and Instrument Serif italics for accent words. The seven-section page flows through a fixed glass navbar, a full-viewport MP4 hero with email capture, an AI-platform awareness section, a scroll-driven word-by-word opacity reveal, a solution feature grid with a 3:1 video panel, an HLS-streamed CTA section via hls.js (with native Safari fallback), and a minimal footer — with Framer Motion entrances and a liquid-glass CSS border effect throughout.

ZeroSum-Solutions/mishmash

Cinematic single-page landing for the fictional neural-AI platform **SynapseX**. A fixed, full-viewport background video scrubs frame-by-frame as the page scrolls and progressively blurs, sitting behind a scramble-in split-corner hero headline, a 3D-tilted cinematic paragraph reveal, and a frosted-glass horizontal metrics carousel. Pure black-and-white scaffolding is punctuated by one neon-green "synaptic" accent that ties the UI to the glowing footage underneath it.

ZeroSum-Solutions/mishmash

A dark, full-bleed landing page for Neuralyn, a fictional analytics-dashboard SaaS, featuring a full-viewport hero with a scroll-linked parallax dashboard composited over a looping background video and a scroll-driven testimonial where each word lights up as you scroll. The aesthetic is pure-black background, white type, a single italic serif accent word, and a liquid-glass tag pill. Built with React 18 + Vite and TypeScript, styled with Tailwind CSS 3 and shadcn/ui-style primitives, animated via Framer Motion (`useScroll`/`useTransform`) for scroll-linked parallax and the word-by-word color reveal, with fonts self-hosted via Fontsource.

ZeroSum-Solutions/mishmash

A monochrome, editorial landing page for a fictional Natural History Museum paleontology collection, featuring a three-section continuous scroll: a full-viewport hero with a delayed background video reveal and an animated geometric "NHM" SVG logotype (per-polygon slide-up reveal), an "Explore Our World" section with scroll-revealed display heading and action pills, and a dark "Ancient Collection" chapter browser with auto-cycling fossil images and a custom SVG `feTurbulence`/`feDisplacementMap` sand-dissolve transition effect. Built with React 19, Vite 6, Tailwind CSS 4 (CSS-first config), and Motion (Framer Motion), in a strictly monochrome black/white/gray palette — no color accents.

ZeroSum-Solutions/mishmash

A single-page NFT landing site with four full-bleed sections (Hero, About, Collection, CTA) on a dark space theme. The page uses looping muted background videos, a CSS liquid-glass UI effect, a fixed grain texture overlay, and a tight color system (deep navy `#010828`, off-white `#EFF4FF`, neon green `#6FFF00`; Anton headings, Condiment cursive accents, system mono body). Showcases a three-card NFT collection grid with rarity scores and video previews.

相关技能