Mindloop —— 深色单色新闻通讯落地页
从 MIT 许可的
pulkitxm/claude-directory图库中提取的落地页。
一款纯黑(#000)单色落地页,专为新闻通讯与内容平台 Mindloop 设计,白色排版为主要视觉元素——Inter 字体用于结构,Instrument Serif 斜体用于重点词汇。七节页面依次包含固定玻璃导航栏、全视口 MP4 英雄区(含邮件捕获)、AI 平台认知区、滚动驱动的逐字不透明度显现、解决方案功能网格(含 3:1 视频面板)、基于 hls.js 的 HLS 流式 CTA 区(内置 Safari 原生回退)以及极简页脚——搭配 Framer Motion 入场动画和贯穿全页的液态玻璃 CSS 边框效果。
工作流程
- 将
example.html克隆到用户的工作区作为工作文件。 - 替换占位内容为用户的真实品牌名称、标题、正文、数字和图像。替换资源时保持图像尺寸一致。
- 保留设计系统。 以下构建规范中的调色板、字号比例、间距节奏和动效是页面的核心身份——不要替换字体、重新着色或移除装饰元素。
- 通过复制现有部分来扩展,切勿从其他模板导入布局。如果缺少某个部分,请使用本模板的视觉语言从头设计。
- 保持动效无障碍。 根据构建规范的要求,所有动画必须仅在
prefers-reduced-motion条件下启用。
输出约束
在 <artifact> 标签内输出:
<artifact identifier="mindloop-mono-landing" type="text/html" title="Mindloop —— 深色单色新闻通讯落地页">
<!doctype html>
<html>...</html>
</artifact>
构建规范
以下为生成此设计的上游提示,一字不差。
Mindloop —— 深色单色新闻通讯落地页
概述
为 Mindloop(一个新闻通讯/内容平台)构建一个纯黑色单色营销站点。整体主题为纯黑(#000)背景搭配白色前景——没有颜色或渐变色,仅使用单色。排版是视觉核心:Inter 用于结构,Instrument Serif 斜体用于重点词汇。页面由七个部分垂直滚动组成(导航栏、英雄区、“搜索已改变”、使命、解决方案、CTA、页脚),包含循环背景视频、液态玻璃 UI 处理、Framer Motion 入场动画以及滚动驱动的逐字显现效果。
技术栈
- 框架: React + Vite + TypeScript
- 样式: Tailwind CSS 及
tailwindcss-animate插件;shadcn/ui 基础组件(Input) - 动画: Framer Motion —— 入场动画、滚动驱动的逐字显现、微交互
- 视频流:
hls.js(懒加载)用于 CTA 部分的 HLS 背景视频 - 字体:
@fontsource/inter(无衬线,字重 400、500、600、700)和@fontsource/instrument-serif(衬线,字重 400 及 400-italic,用于斜体重点词汇) - 图标:
lucide-react - 值得注意的技术: 使用
useScroll+useTransform实现滚动驱动的逐字不透明度显现;使用懒加载import("hls.js")配合 Safari 原生 HLS 回退;使用mask-composite创建带遮罩渐变边框的 CSS 液态玻璃效果
设计系统
CSS 变量(src/index.css)
所有设计 Token 均为 HSL 通道值(变量中不含 hsl() 包装——仅值本身),定义在 @layer base 内的 :root 上:
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 0 0% 0%;
--foreground: 0 0% 100%;
--card: 0 0% 5%;
--card-foreground: 0 0% 100%;
--primary: 0 0% 100%;
--primary-foreground: 0 0% 0%;
--secondary: 0 0% 12%;
--secondary-foreground: 0 0% 85%;
--muted: 0 0% 15%;
--muted-foreground: 0 0% 65%;
--accent: 170 15% 45%;
--accent-foreground: 0 0% 100%;
--border: 0 0% 20%;
--input: 0 0% 18%;
--ring: 0 0% 40%;
--hero-subtitle: 210 17% 95%;
}
* {
@apply border-border;
}
html {
scroll-behavior: smooth;
}
body {
@apply bg-background font-sans text-foreground antialiased;
text-rendering: optimizeLegibility;
}
::selection {
@apply bg-foreground text-background;
}
}
调色板(HSL 通道值)
| Token | 值 | 说明 |
|---|---|---|
--background | 0 0% 0% | 纯黑 |
--foreground | 0 0% 100% | 白色 |
--card | 0 0% 5% | |
--card-foreground | 0 0% 100% | |
--primary | 0 0% 100% | |
--primary-foreground | 0 0% 0% | |
--secondary | 0 0% 12% | |
--secondary-foreground | 0 0% 85% | |
--muted | 0 0% 15% | |
--muted-foreground | 0 0% 65% | |
--accent | 170 15% 45% | |
--accent-foreground | 0 0% 100% | |
--border | 0 0% 20% | |
--input | 0 0% 18% | |
--ring | 0 0% 40% | |
--hero-subtitle | 210 17% 95% | 近白色,略带冷感 |
Tailwind 配置(tailwind.config.ts)
darkMode: ["class"],内容路径./index.html和./src/**/*.{ts,tsx},插件tailwindcss-animate。- 字体:
sans: ["Inter", "ui-sans-serif", "system-ui", "sans-serif"];serif: ["'Instrument Serif'", "ui-serif", "Georgia", "serif"]。 - 颜色: 将每个 Token 映射为
hsl(var(--token)),包括"hero-subtitle": "hsl(var(--hero-subtitle))",以及card、primary、secondary、muted、accent的嵌套DEFAULT/foreground对。
液态玻璃效果(.liquid-glass)
一个全局 CSS 类,包含半透明填充、模糊效果以及通过 ::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;
}
动画模式
每个部分都使用一个可复用的淡入辅助函数,并带有交错延迟。定义在 src/lib/motion.ts 中,并展开到 motion.* 元素上(<motion.div {...fadeUp(0.1)} />):
/**
* 可复用的淡入入场效果,每个部分共享。
* 展开到 `motion.*` 元素上:`<motion.div {...fadeUp(0.1)} />`
*/
export const fadeUp = (delay: number) => ({
initial: { opacity: 0, y: 20 },
whileInView: { opacity: 1, y: 0 },
viewport: { once: true, margin: "-100px" },
transition: { duration: 0.6, delay, ease: "easeOut" },
});
应用结构(src/App.tsx)
一个min-h-screen bg-background text-foreground 包装器。包含 <Navbar />,然后是一个 <main>,其中包含 <Hero />、<SearchChanged />、<Mission />、<Solution />、<CtaSection />,最后在 <main> 外部放置 <Footer />。
共享组件
Logo 标志(src/components/Logo.tsx)
同心圆 Mindloop 标志——一个居中的 flex span(外层)包裹一个较小的 span(内层)。接受 className、outerClassName、innerClassName,并通过 cn 组合它们。标记为 aria-hidden。
- 外层:
flex items-center justify-center rounded-full h-7 w-7 border-2 border-foreground/60。 - 内层:
block rounded-full h-3 w-3 border border-foreground/60。
输入框(src/components/ui/input.tsx)
一个 shadcn/ui 的 Input 基本组件,用于 Hero 订阅表单中的邮箱字段。
页面结构(从上到下)
1. 导航栏(src/components/sections/Navbar.tsx)
固定且完全透明——无背景。一个 motion.header,动画入场:initial={{ opacity: 0, y: -16 }}、animate={{ opacity: 1, y: 0 }}、transition={{ duration: 0.8, ease: "easeOut" }}。容器类:fixed inset-x-0 top-0 z-50 px-8 py-4 md:px-28。内部 <nav> 为 flex items-center,带有 aria-label="Primary"。
- 左侧——品牌:
<a href="#home" className="flex items-center gap-2.5">,包含<LogoMark />和<span className="text-lg font-bold tracking-tight">Mindloop</span>。 - 中左——导航链接:
ml-12 hidden items-center gap-4 lg:flex。链接:Home→#home、How It Works→#how-it-works、Philosophy→#philosophy、Use Cases→#use-cases。每个链接前(第一个除外)用•点分隔(<span aria-hidden className="text-[10px] text-muted-foreground/50">•</span>)。每个链接:text-sm text-muted-foreground transition-colors hover:text-foreground。 - 右侧——社交图标:
ml-auto flex items-center gap-3。三个液态玻璃圆形按钮,分别对应Instagram(https://instagram.com)、LinkedIn(https://linkedin.com)、Twitter(https://twitter.com),使用对应的lucide-react图标。每个链接在新标签页中打开(target="_blank" rel="noreferrer"),带有aria-label,类为liquid-glass flex h-10 w-10 items-center justify-center rounded-full text-foreground/80 transition-colors hover:text-foreground;每个图标为className="h-4 w-4" strokeWidth={1.75}。
2. 英雄区(src/components/sections/Hero.tsx)
全视口部分,id home:relative flex min-h-screen items-center justify-center overflow-hidden。
- 背景视频: 一个自动播放、循环、静音的
<video>覆盖整个部分——absolute inset-0 h-full w-full object-cover,带有autoPlay loop muted playsInline aria-hidden。来源:/assets/hf_20260325_120549_0cd82c36-56b3-4dd9-b190-069cfc3a623f.mp4。 - 底部渐变: 一个非交互渐变,用于平滑过渡到下方黑色页面——
pointer-events-none absolute inset-x-0 bottom-0 h-64 bg-gradient-to-t from-background to-transparent。 - 内容包装器:
relative z-10 flex w-full flex-col items-center px-6 pt-28 text-center md:pt-32。 - 头像/社交证明行(
{...fadeUp(0)}、mb-8 flex items-center gap-3):三个重叠的圆形头像,位于flex -space-x-2组中——每个<img>width={32} height={32},类为h-8 w-8 rounded-full border-2 border-background object-cover(altSubscriber avatar),来源@/assets/avatar-1.png、avatar-2.png、avatar-3.png。随后是<p className="text-sm text-muted-foreground">7,000+ people already subscribed</p>。 - 标题(
motion.h1、{...fadeUp(0.1)}):text-5xl font-medium tracking-[-2px] md:text-7xl lg:text-8xl。文案:Get <em className="font-serif font-normal italic">Inspired</em> with Us——即“Inspired”以 Instrument Serif 斜体、正常字重显示。 - 副标题(
motion.p、{...fadeUp(0.2)}):mt-6 max-w-xl text-lg text-hero-subtitle。文案:Join our feed for meaningful updates, news around technology and a shared journey toward depth and direction. - 邮箱表单(
motion.form、{...fadeUp(0.3)}):液态玻璃药丸容器liquid-glass mt-10 flex w-full max-w-lg items-center gap-2 rounded-full p-2。- 通过
useState管理状态:email字符串和subscribed布尔值。handleSubmit调用event.preventDefault(),如果!email.trim()则退出,否则将subscribed设为true。 - 一个
sr-only标签(htmlFor="hero-email",文字Email address)位于<Input>之前(id="hero-email" type="email" required,占位符Enter your email),类为h-auto flex-1 border-0 bg-transparent px-5 py-3 text-base text-foreground placeholder:text-muted-foreground focus-visible:ring-0。输入变化时重置subscribed为false。 - 提交
motion.button:whileHover={{ scale: 1.03 }}、whileTap={{ scale: 0.98 }},类为flex shrink-0 items-center gap-2 rounded-full bg-foreground px-8 py-3 text-sm font-semibold tracking-wide text-background。默认显示SUBSCRIBE;一旦subscribed,显示一个Check图标(className="h-4 w-4" strokeWidth={3})加SUBSCRIBED。
- 通过
3. “搜索已改变”(src/components/sections/SearchChanged.tsx)
部分 id how-it-works:px-6 pb-6 pt-52 md:pb-9 md:pt-64。内部包装器 mx-auto max-w-6xl text-center。
- 标题(
motion.h2、{...fadeUp(0)}):text-5xl font-medium tracking-[-2px] md:text-7xl lg:text-8xl。文案:Search has <em className="font-serif font-normal italic">changed.</em>然后是<br />然后是Have you?——“changed.” 以衬线斜体显示。 - 副标题(
motion.p、{...fadeUp(0.1)}):mx-auto mb-24 mt-6 max-w-2xl text-lg text-muted-foreground。文案:People no longer browse — they ask. Your audience is getting its answers from AI, and the voices those answers draw on are being chosen right now. - 平台卡片:
mb-20 grid gap-12 md:grid-cols-3 md:gap-8。每个卡片是一个motion.article({...fadeUp(0.15 + i * 0.1)}、flex flex-col items-center),包含一个200×200的图标<img>(width={200} height={200},类mb-8 h-[200px] w-[200px],alt`${name} icon`)、一个<h3 className="text-base font-semibold">名称,以及一个<p className="mt-2 max-w-xs text-sm leading-relaxed text-muted-foreground">描述:- ChatGPT(图标
@/assets/icon-chatgpt.png):Hundreds of millions of people now ask ChatGPT first. If your ideas aren't part of the answer, they're invisible. - Perplexity(图标
@/assets/icon-perplexity.png):Answer engines cite sources in real time. Depth and authority decide who gets referenced — and who gets skipped. - Google AI(图标
@/assets/icon-google.png):AI Overviews answer before anyone clicks. The open web rewards creators whose writing is worth surfacing.
- ChatGPT(图标
- 底部标语(
motion.p、{...fadeUp(0.2)}):text-center text-sm text-muted-foreground。文案:If you don't answer the questions, someone else will.
4. 使命(src/components/sections/Mission.tsx)
部分 id philosophy:px-6 pb-32 pt-0 md:pb-44。
- 视频(...因翻译需要而截断)