Mindloop — 深色單色電子報落地頁面
從 MIT 授權的
pulkitxm/claude-directory資源庫中取得的落地頁面。
一個純黑 (#000) 單色落地頁面,專為 Mindloop(電子報與內容平台)設計,白色字體是主要溝通工具 — 使用 Inter 做結構、Instrument Serif 斜體用來強調重點字詞。七個區塊包含:固定玻璃導覽列、全視窗 MP4 英雄區附電子郵件收集、AI 平台意識區塊、滾動驅動的逐字透明度揭示、解決方案功能網格(附 3:1 影片面板)、透過 hls.js 串流 HLS 的行動呼籲區塊(含原生 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 斜體用於強調重點字詞。頁面是一個垂直滾動的七區塊(導覽列、英雄區、"搜尋已改變"、使命、解決方案、行動呼籲、頁尾),包含循環背景影片、液態玻璃 UI 效果、Framer Motion 進場動畫以及滾動驅動的逐字揭示。
技術棧
- 框架: React + Vite + TypeScript
- 樣式: Tailwind CSS 搭配
tailwindcss-animate插件;shadcn/ui 基礎元件 (Input) - 動畫: Framer Motion — 進場動畫、滾動驅動的逐字揭示、微互動
- 影片串流:
hls.js(延遲載入)用於行動呼籲區塊的 HLS 背景影片 - 字體:
@fontsource/inter(無襯線,字重 400, 500, 600, 700)和@fontsource/instrument-serif(襯線,字重 400 和 400-斜體,用於斜體重點字詞) - 圖示:
lucide-react - 值得注意的技術:
useScroll+useTransform滾動驅動的逐字透明度揭示;延遲動態import("hls.js")搭配 Safari 原生 HLS 備援;透過mask-composite實現液態玻璃效果及遮罩漸層邊框
設計系統
CSS 變數 (src/index.css)
所有設計記號均為 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 通道值)
| 記號 | 值 | 說明 |
|---|---|---|
--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"],內容 glob 包含./index.html和./src/**/*.{ts,tsx},插件tailwindcss-animate。- 字體:
sans: ["Inter", "ui-sans-serif", "system-ui", "sans-serif"];serif: ["'Instrument Serif'", "ui-serif", "Georgia", "serif"]。 - 顏色: 將每個記號對應到
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 />,接著 <Footer /> 在 <main> 之外。
共用元件
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。
Input (src/components/ui/input.tsx)
一個 shadcn/ui 的 Input 基礎元件,用於英雄區訂閱表單的電子郵件欄位。
頁面結構(由上到下)
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,運作方式→#how-it-works,理念→#philosophy,使用案例→#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(alt訂閱者頭像),來源為@/assets/avatar-1.png、avatar-2.png、avatar-3.png。接著是<p className="text-sm text-muted-foreground">已有 7,000+ 人訂閱</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。內文:加入我們的資訊流,獲取有意義的更新、科技新聞,以及一段邁向深度與方向的共同旅程。 - 電子郵件表單(
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",文字電子郵件地址)位於<Input>之前(id="hero-email" type="email" required,佔位符輸入您的電子郵件),類別為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。預設顯示訂閱;一旦subscribed,則顯示一個Check圖示(className="h-4 w-4" strokeWidth={3})加上已訂閱。
- 透過
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。內文:人們不再瀏覽 — 他們直接提問。您的受眾正在從 AI 獲取答案,而那些答案所引用的聲音正在此刻被選定。 - 平台卡片:
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} 圖示`)、一個<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):數億人現在會先問 ChatGPT。如果您的想法不是答案的一部分,它們就會被隱沒。 - Perplexity(圖示
@/assets/icon-perplexity.png):答案引擎即時引用來源。深度與權威決定誰會被引用 — 以及誰會被跳過。 - Google AI(圖示
@/assets/icon-google.png):AI 概述在任何人點擊之前就給出答案。開放網路獎勵那些值得被呈現的創作者。
- ChatGPT(圖示
- 底部標語(
motion.p,{...fadeUp(0.2)}):text-center text-sm text-muted-foreground。內文:如果您不回答問題,別人就會。
4. 使命 (src/components/sections/Mission.tsx)
區塊 id philosophy:px-6 pb-32 pt-0 md:pb-44。
- 影片
…
(原文遭截斷,以上為已翻譯的完整部分。)