Aura — AI 原生電子郵件用戶端登陸頁面
此登陸頁面源自 MIT 授權的
pulkitxm/claude-directory畫廊。
一個高質感、暗黑電影風格的登陸頁面,專為虛構的 AI 原生電子郵件用戶端 Aura 而設計。包含循環全螢幕背景影片、漸層剪裁閃亮標題、macOS 風格選單列、逼真的收件匣預覽,以及自訂的液態玻璃卡片效果。多區塊佈局涵蓋了導覽列、英雄區、選單列、收件匣模擬、功能分類、Logo 雲、客戶推薦、定價和最終行動呼籲 — 針對 AI 生產力應用程式和 SaaS 登陸頁面用例。
工作流程
- 將
example.html複製到使用者的工作區作為工作檔案。 - 取代佔位內容為使用者真實的品牌名稱、標題、正文、數字和圖片。更換素材時請符合現有圖片的尺寸。
- 保留設計系統。 下方建構規範中的色板、字體級數、間距韻律和動畫效果是核心識別 — 請勿替換字型、重新著色板或移除裝飾元素。
- 透過複製區塊來延伸,切勿從其他模板匯入佈局。如果缺少某個區塊,請使用此模板本身的設計語言從頭開始設計。
- 保持動畫的可及性。 根據建構規範要求,每個動畫都必須遵循
prefers-reduced-motion。
輸出契約
在 <artifact> 標籤內輸出:
<artifact identifier="aura-email-landing" type="text/html" title="Aura — AI-Native Email Client Landing Page">
<!doctype html>
<html>...</html>
</artifact>
建構規範
以下是產生此設計的原始提示,逐字照錄。
Aura — AI 原生電子郵件用戶端登陸頁面
概述
建立一個名為 Aura 的高質感、AI 原生電子郵件用戶端登陸頁面。美學風格為暗黑(底色 #0c0c0c)、電影感和玻璃質感,包含循環全螢幕背景影片、閃亮漸層標題、macOS 風格選單列、逼真的收件匣模擬,以及自訂的「液態玻璃」卡片效果。完全複製以下內容 — 字型、漸層色標、雜訊濾鏡、複製文字、動畫延遲以及所有數值。
技術棧
- 框架: React 18(
react^18.3.1、react-dom^18.3.1)搭配 TypeScript(typescript~5.6.3),並使用StrictMode。 - 建構工具: Vite(
vite^5.4.11)搭配@vitejs/plugin-react^4.3.4。建構腳本:tsc --noEmit && vite build。 - 樣式: Tailwind CSS
^3.4.17搭配postcss^8.4.49和autoprefixer^10.4.20。 - 動畫: Motion / Framer Motion(
motion^12.0.0,從motion/react匯入)。 - 圖示: Lucide(
lucide-react^0.468.0)。 - 其他依賴項:
@supabase/supabase-js^2.47.10(在package.json中列出;未連接到 UI)。 - 字型: Google Fonts Inter,字重 400、500、600、700、800、900。
- 值得注意的技術: SVG 雜訊濾鏡(
feTurbulence)、漸層剪裁閃亮文字動畫、用於玻璃卡片的 CSS mask-composite 邊框、固定全螢幕背景影片。
全域設定
package.json
- 名稱
aura-email-landing,版本1.0.0,"type": "module","private": true。 - 腳本:
dev: vite、build: tsc --noEmit && vite build、preview: vite preview。 - 依賴項:
@supabase/supabase-js、lucide-react、motion、react、react-dom。 - 開發依賴項:
@types/react、@types/react-dom、@vitejs/plugin-react、autoprefixer、postcss、tailwindcss、typescript、vite。
index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Aura — the premier AI-native inbox platform. Your email. Revitalized." />
<title>Aura — Your email. Revitalized</title>
<style>html { background-color: #0c0c0c; }</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
tailwind.config.js
content: ['./index.html', './src/**/*.{ts,tsx}']。theme.extend.colors新增brand: '#3D81E3'。theme.extend.fontFamily設定sans: ['Inter', 'system-ui', 'sans-serif']。- 無外掛。
src/main.tsx
透過 createRoot(document.getElementById('root')!) 在 <StrictMode> 內掛載 <App />,並匯入 ./index.css。
src/index.css
- 第一行匯入 Inter:
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap'); - 然後
@tailwind base; @tailwind components; @tailwind utilities;。 - 基礎樣式:
html, body { font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; } body { @apply bg-[#0c0c0c] text-white; } ::selection { @apply bg-brand/30; } - 加上下述的閃亮標題動畫、液態玻璃實用類別和定價 CSS。
佈局 (src/App.tsx)
根容器:relative min-h-screen overflow-x-hidden bg-[#0c0c0c] text-white。
根容器內的渲染順序:
- 固定背景影片(在所有元素後方)。
- 兩條固定垂直引導線位於 36rem 容器邊緣。
- 根 SVG 雜訊濾鏡(
c3-noise,色彩增值混合)用於閃亮標題。 - 內容容器
relative z-10包含<Navbar />,然後是<main>,依次包含:<Hero />、<MenuBar />、<InboxMockup />、<FeatureTriage />、<LogoCloud />、<Testimonials />、<Pricing />、<FinalCTA />。
全域背景影片(固定,在所有元素後方)
影片來源是存儲在 public/assets/hf_20260508_064122_c4750c0e-7476-4b44-94a2-a85a65c63bf2.mp4 的本地供應素材,並透過 VIDEO_URL 常數引用:
const VIDEO_URL =
'/assets/hf_20260508_064122_c4750c0e-7476-4b44-94a2-a85a65c63bf2.mp4'
注意: 原始簡報曾引用一個外部 CloudFront URL
https://d8j0ntlcm91z4.cloudfront.net/user_38xzzbokvigwjottwixh07lwa1p/hf_20260508_064122_c4750c0e-7476-4b44-94a2-a85a65c63bf2.mp4。在實際原始碼中,素材是本地供應在/assets/…下(檔案名稱相同,小寫),因此請使用本地路徑。
<div className="fixed inset-0 z-0 pointer-events-none">
<video
autoPlay
loop
muted
playsInline
className="w-full h-full object-cover pointer-events-none"
src={VIDEO_URL}
/>
</div>
固定垂直引導線
兩條線,在行動裝置上隱藏,位於 36rem 容器邊緣:
<div className="hidden md:block pointer-events-none fixed inset-y-0 left-1/2 -translate-x-[calc(50%+36rem)] w-px bg-white/10 z-[5]" />
<div className="hidden md:block pointer-events-none fixed inset-y-0 left-1/2 translate-x-[calc(-50%+36rem)] w-px bg-white/10 z-[5]" />
全域 SVG 雜訊濾鏡(兩個,均為 id="c3-noise")
- 根層級(細微顆粒感,色彩增值混合)— 由閃亮標題使用。
- 定價區塊內(分形雜訊,疊加混合)— 由水印使用。
根濾鏡(在 App.tsx 中)
包裹在 <svg className="absolute w-0 h-0" aria-hidden="true"> 中:
<filter id="c3-noise">
<feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch" />
<feColorMatrix
type="matrix"
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0"
/>
<feComposite in2="SourceGraphic" operator="in" result="noise" />
<feBlend in="SourceGraphic" in2="noise" mode="multiply" />
</filter>
定價濾鏡(在 Pricing.tsx 中)
也包裹在 <svg className="absolute w-0 h-0" aria-hidden="true"> 中:
<filter id="c3-noise">
<feTurbulence type="fractalNoise" baseFrequency="0.5" numOctaves="2" stitchTiles="stitch" />
<feComponentTransfer>
<feFuncA type="linear" slope="0.075" />
</feComponentTransfer>
<feComposite in2="SourceGraphic" operator="in" result="noise" />
<feBlend in="SourceGraphic" in2="noise" mode="overlay" />
</filter>
共享基本元件
AppleLogo (src/components/AppleLogo.tsx)
內聯 SVG Apple 標誌,viewBox="0 0 384 512",fill="currentColor",aria-hidden="true"。接受一個預設為 w-4 h-4 的 className 屬性。路徑:
M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z
LogoMark (src/components/LogoMark.tsx)
抽象四象限曲線標誌,viewBox="0 0 256 256",fill="#fff",aria-label="Aura"。接受一個預設為 w-8 h-8 的 className 屬性。路徑:
M 0 128 C 70.692 128 128 185.308 128 256 L 64 256 C 64 220.654 35.346 192 0 192 Z M 256 192 C 220.654 192 192 220.654 192 256 L 128 256 C 128 185.308 185.308 128 256 128 Z M 128 0 C 128 70.692 70.692 128 0 128 L 0 64 C 35.346 64 64 35.346 64 0 Z M 192 0 C 192 35.346 220.654 64 256 64 L 256 128 C 185.308 128 128 70.692 128 0 Z
AppleButton (src/components/AppleButton.tsx)
圓潤的全白藥丸按鈕,包含 Apple 標誌、一個 label 和一個 ChevronRight(來自 lucide-react)。當滑鼠懸停在群組上時,箭頭會向右移動 +1px。接受 label(預設為 'Download Aura')和 full(預設為 false)屬性;當 full 為 true 時,會在 class 字串後附加 ' w-full'。
<button
type="button"
className={`group inline-flex items-center justify-center gap-2 rounded-full bg-white text-black font-medium text-sm px-5 py-3 transition-all hover:bg-white/90 active:scale-[0.98]${full ? ' w-full' : ''}`}
>
<AppleLogo />
<span>{label}</span>
<ChevronRight className="w-4 h-4 transition-transform group-hover:translate-x-[1px]" />
</button>
SectionEyebrow (src/components/SectionEyebrow.tsx)
接受 label(必要)和 tag(可選)。外層 div:inline-flex items-center gap-2.5。包含:
<span className="w-1.5 h-1.5 rounded-full bg-white" /><span className="text-sm font-medium text-white/80">{label}</span>- 可選的標籤藥丸:
<span className="text-xs px-2 py-0.5 rounded-full border border-white/10 text-white/50">{tag}</span>
漸層樣式(閃亮標題單詞 "Revitalized")
在 Hero.tsx 中定義為內聯 CSSProperties 物件:
const gradientStyle: CSSProperties = {
backgroundImage:
'linear-gradient(to right, #091020 0%, #0B2551 12.5%, #A4F4FD 32.5%, #00d2ff 50%, #0B2551 67.5%, #091020 87.5%, #091020 100%)',
backgroundSize: '200% auto',
WebkitBackgroundClip: 'text',
backgroundClip: 'text',
color: 'transparent',
WebkitTextFillColor: 'transparent',
filter: 'url(#c3-noise)',
}
閃亮動畫 (.animate-shiny)
.animate-shiny {
animation: shiny 6s linear infinite;
}
@keyframes shiny {
0% {
background-position: -200% center;
}
100% {
background-position: 200% center;
}
}
液態玻璃實用類別(用於卡片)
.liquid-glass {
background: rgba(255, 255, 255, 0.01);
background-blend-mode: luminosity;
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;
}
區塊 1 — 導覽列 (src/components/Navbar.tsx)
motion.nav,帶有 className="relative z-20";以淡出/滑入方式進入(initial={{ opacity: 0, y: -10 }}、animate={{ opacity: 1, y: 0 }}、transition={{ duration: 0.6, ease: 'easeOut' }})。
內部容器:max-w-6xl mx-auto px-6 h-20 flex items-center justify-between。
- 左側: 錨點(
aria-label="Aura home")僅包裹<LogoMark />(沒有 "Aura" 文字)。 - 中央(
hidden md:flex gap-8):連結['Solutions', 'Pricing', 'Blog', 'Documentation', 'Careers'],每個都是一個motion.a,帶有className="text-white/70 text-sm font-medium hover:text-white transition-colors"和交錯進入效果(initial={{ opacity: 0, y: -8 }}、animate={{ opacity: 1, y: 0 }}、transition={{ duration: 0.5, delay: 0.1 + i * 0.05, ease: 'easeOut' }})。 - 右側(桌上型):
hidden md:block包裹<AppleButton />(預設標籤 "Download Aura")。 - 右側(行動裝置):
md:hidden w-10 h-10 rounded-full border border-white/10 bg-white/5 inline-flex items-center justify-center按鈕(aria-label="Open menu")包含一個Menu圖示(w-4 h-4 text-white)。
區塊 2 — 英雄區 (src/components/Hero.tsx)
區段:pt-16 md:pt-28 pb-20 text-center flex flex-col items-center px-6。共享緩動函數:const EASE: [number, number, number, number] = [0.22, 1, 0.36, 1]。
motion.h1(initial={{ opacity: 0, y: 20 }}、animate={{ opacity: 1, y: 0 }}、transition={{ duration: 0.8, delay: 0.3, ease: EASE }}),className="text-4xl md:text-7xl font-semibold tracking-tight leading-[0.9]":- 第 1 行:
<span className="block">Your email.</span> - 第 2 行:
<span className="block animate-shiny" style={gradientStyle}>Revitalized</span>
- 第 1 行:
motion.p(延遲0.5,其他轉場相同),className="mt-8 text-white/60 max-w-md text-base leading-[1.5]":Aura is the premier inbox platform for the current era. It leverages powerful AI to organize, prioritize, and refine your messages into total clarity.
motion.div(延遲0.7),className="mt-10 flex flex-col items-center gap-3"包含<AppleButton />和 `Download for Intel / Apple Silico
…
[因篇幅限制而截斷]