Mindloop — 深色單色調內容平台登陸頁
產生一個高級、純黑色單色調的登陸頁面,用於 Mindloop(一個新聞信 / 內容平台)。完整的渲染參考實作與此技能一同附在 example.html 中 — 從它開始。複製 example.html,然後調整文案與資料;不得改寫 CSS 或發明新的視覺語言。種子檔案已編碼了精確的 HSL tokens、液態玻璃處理、字型、區塊佈局、fadeUp 揭示、捲動驅動的任務揭示以及 HLS 行動呼籲按鈕。
這是權威的建置簡報。請嚴格遵循 — HSL 變數、字型、影片 URL 和動畫模式都已鎖定。
單色調已硬鎖。 背景是純黑色 #000(0 0% 0%),前景是純白色。除了單色調之外沒有其他顏色或漸層 — 唯一的非灰色 token 是 --accent: 170 15% 45%(一種柔和的藍灰色),且在可見的 UI 中基本上未使用。請勿引入品牌顏色、藍色、紫色或鮮豔的漸層。
資產(重要): example.html 已將 3 個英雄頭像和 3 個平台圖示(ChatGPT / Perplexity / Google AI)作為內嵌 data:image/svg+xml;base64,… URI 附上。請保持它們原樣。請勿將它們替換為 i.pravatar.cc、api.dicebear.com、dicebear 或任何其他遠端頭像 / 圖示主機 — 外部主機在預覽沙箱內會速率限制或回傳 403 錯誤並渲染損壞。僅在使用者提供真實圖片時才替換資產,且優先使用 data URI 而非遠端 URL。四個大型背景影片則保留在其穩定的 cloudfront.net / stream.mux.com CDN 上。
技術棧
- 預設輸出:單一自包含 HTML 檔案(
example.html種子)。它已包含所有內嵌內容。 - 若使用者明確要求完整專案,則將種子忠實移植至 React + Vite + TypeScript + Tailwind CSS + shadcn/ui + Framer Motion。相同的 tokens,相同的標記結構。安裝
hls.js和framer-motion。字型透過@fontsource/inter(400、500、600、700)和@fontsource/instrument-serif(400、400-italic)。使用lucide-react處理圖示。使用tailwindcss-animate外掛。移植時不得更改設計。 - 動畫載入(已鎖定)。 如果你釋出單一自包含內嵌 JSX 檔案而非 Vite 專案,Motion 的 React hooks(
useScroll、useTransform、useAnimationFrame…)僅存在於 React UMD 建置中:載入<script src="https://unpkg.com/[email protected]/dist/framer-motion.js"></script>並從window.Motion讀取它們 — 絕不要使用 vanillahttps://unpkg.com/motion@.../dist/motion.jsDOM 套件,因為缺少useScroll且會渲染出空白頁面。(Vite 專案從 npm 匯入,不受影響。)
字型
- Inter(無襯線) — 主體與 UI,字重 400/500/600/700。
- Instrument Serif(襯線、斜體) — 僅用於標題內的斜體強調詞(
.serif:font-style: italic; font-weight: 400)。在種子中從 Google Fonts 載入;React 移植版則使用@fontsource/instrument-serif。
設計系統 — 已鎖定 HSL tokens(:root,僅數值,不含 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%
透過 hsl(var(--token)) / hsl(var(--token) / 0.3) 使用 tokens。
液態玻璃(.liquid-glass)— 已鎖定
.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;
}
用於:3 個導覽列社群按鈕(圓形 w-10 h-10)、英雄區電子郵件表單容器(rounded-full)以及「開始寫作」行動呼籲按鈕(rounded-lg)。
動畫模式 — fadeUp(Framer-Motion whileInView)
可重複使用的交錯揭示。在 React 中:
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" },
});
在種子中,這對應到一個 IntersectionObserver(threshold ~0.08,rootMargin: -100px),會添加一個 .in 類別;父層中的同層元素會獲得交錯的 transition-delay(約 0.08 秒步長)。保持 once: true 語意(揭示後取消觀察)。
頁面結構(從上到下)
導覽列 — 固定、透明、top-0 z-50、內距 px-8 md:px-28 py-4
- 左側:同心圓標誌(外圈
w-7 h-7border-2 border-foreground/60,內圈w-3 h-3border border-foreground/60)+ 粗體「Mindloop」。 - 左中:導覽連結
["Home", "How It Works", "Philosophy", "Use Cases"],以•點分隔;連結使用text-muted-foreground hover:text-foreground。在行動裝置上隱藏。 - 右側:3 個社群圖示(Instagram、LinkedIn、Twitter — 在移植版中使用
lucide-react,種子中使用內嵌 SVG),放在液態玻璃圓形w-10 h-10 rounded-full按鈕內。
英雄區 — 滿視口高度
- 背景:自動播放/循環/靜音/playsInline MP4 影片,覆蓋該區塊,
object-cover。- URL:
https://plugin-assets.open-design.ai/plugins/mindloop-landing/hf_20260325_120549_0cd82c36-56b3-4dd9-b190-069cfc3a623f-9b476a.mp4
- URL:
- 底部漸層:
h-64(256px)bg-gradient-to-t from-background to-transparent,用於平滑淡出至黑色。 - 內容(置中、
z-10、pt-28 md:pt-32):- 頭像列:3 個重疊的圓形頭像(
-space-x-2、w-8 h-8 rounded-full border-2 border-background、內嵌 data URI)+「已有 7,000+ 人訂閱」(text-muted-foreground text-sm)。 - 標題:
text-5xl md:text-7xl lg:text-8xl font-medium tracking-[-2px]—「Get Inspired with Us」,其中 「Inspired」 使用.serif(Instrument Serif 斜體,font-normal)。 - 副標題:
text-lg,顏色hsl(var(--hero-subtitle))—「Join our feed for meaningful updates, news around technology and a shared journey toward depth and direction.」 - 電子郵件表單:
liquid-glass rounded-full p-2 max-w-lg,包含一個電子郵件輸入框和一個bg-foreground text-background rounded-full px-8 py-3的「SUBSCRIBE」按鈕(whileHover scale 1.03、whileTap scale 0.98)。
- 頭像列:3 個重疊的圓形頭像(
「搜尋已經改變」區段 — pt-52 md:pt-64 pb-6 md:pb-9、置中
- 標題:
text-5xl md:text-7xl lg:text-8xl—「Search has changed. Have you?」其中 「changed.」 使用襯線斜體。 - 副標題:
text-muted-foreground text-lg max-w-2xl mx-auto mb-24。 - 3 個平台卡片(
grid md:grid-cols-3 gap-12 md:gap-8 mb-20):每個 = 一個約 200×200 的圖示圖片置中、平台名稱(font-semibold text-base)、描述(text-muted-foreground text-sm)。- ChatGPT → 內嵌
icon-chatgptdata URI。Perplexity → 內嵌icon-perplexitydata URI。Google AI → 內嵌icon-googledata URI。
- ChatGPT → 內嵌
- 底部標語:「If you don't answer the questions, someone else will.」(
text-muted-foreground text-sm text-center)。
任務區段 — pt-0 pb-32 md:pb-44、置中
- 大型約 800×800 循環自動播放靜音影片,置中。
- URL:
https://plugin-assets.open-design.ai/plugins/mindloop-landing/hf_20260325_132944_a0d124bb-eaa1-4082-aa30-2310efb42b4b-d0e30d.mp4
- URL:
- 捲動驅動的逐字揭示(在移植版中使用
useScroll+useTransform;在種子中使用被動scroll監聽器,將每個單詞的視口位置映射到透明度0.15 → 1)。- 段落 1(
text-2xl md:text-4xl lg:text-5xl font-medium tracking-[-1px]):「We're building a space where curiosity meets clarity — where readers find depth, writers find reach, and every newsletter becomes a conversation worth having.」單詞 「curiosity」、「meets」、「clarity」 使用--foreground;其餘使用--hero-subtitle。 - 段落 2(
text-xl md:text-2xl lg:text-3xl font-medium mt-10):「A platform where content, community, and insight flow together — with less noise, less friction, and more meaning for everyone involved.」
- 段落 1(
解決方案區段 — py-32 md:py-44、border-t border-border/30
- 標籤:「SOLUTION」(
text-xs tracking-[3px] uppercase text-muted-foreground)。 - 標題:
text-4xl md:text-6xl—「The platform for meaningful content」(在 「meaningful」 上使用襯線斜體)。 - 影片:
rounded-2xl aspect-[3/1] object-cover。- URL:
https://plugin-assets.open-design.ai/plugins/mindloop-landing/hf_20260325_125119_8e5ae31c-0021-4396-bc08-f7aebeb877a2-1f0a78.mp4
- URL:
- 4 欄功能網格(
md:grid-cols-4 gap-8):精選內容、寫作工具、社群、發布 — 每個標題(font-semibold text-base)+ 描述(text-muted-foreground text-sm)。
行動呼籲區段 — py-32 md:py-44、border-t border-border/30、overflow-hidden
- 透過 HLS(hls.js) 的背景影片:
absolute inset-0 object-cover z-0。- HLS URL:
https://stream.mux.com/8wrHPCX2dC3msyYU9ObwqNdm00u3ViXvOSHUMRYSEe5Q.m3u8 - 使用
Hls.isSupported();對 Safari 則回退至原生 HLS(canPlayType('application/vnd.apple.mpegurl'))。
- HLS URL:
- 覆蓋層:
absolute inset-0 bg-background/45 z-[1]。 - 內容(
z-10、置中):同心圓標誌(外圈w-10 h-10,內圈w-5 h-5);標題「Start Your Journey」(在「Journey」上使用襯線斜體);副標題text-muted-foreground;兩個按鈕 —「Subscribe Now」(bg-foreground text-background rounded-lg px-8 py-3.5)和「Start Writing」(liquid-glass rounded-lg)。
頁尾 — py-12 px-8 md:px-28
- 左側:「© 2026 Mindloop. All rights reserved.」(
text-muted-foreground text-sm)。 - 右側:隱私權、條款、聯絡我們(
text-muted-foreground text-sm hover:text-foreground)。
響應式
- 標題使用 clamped /
md:/lg:斷點,完全按照列表;行動版移除導覽列中央連結。 platform-grid和feature-grid在md以下會折疊為單一(或 2)欄。- 任務影片和英雄影片為
object-cover,絕不加黑邊。
顏色規則 — 嚴格
僅限純黑/白單色調。唯一使用的 tokens 是灰階漸層加上 --hero-subtitle(接近白色的 210 17% 95%),用於英雄/任務主體文字。可見 UI 中沒有強調色 — 沒有藍色、紫色、藍綠色塊,沒有鮮豔的漸層。 唯一允許的漸層是英雄區黑色到透明的底部淡出以及液態玻璃邊框高光。保持單色調。