Viktor Oddy — 創意工作室登陸頁面
此登陸頁面來自 MIT 許可證的
pulkitxm/claude-directory圖庫。
一個虛構創意設計工作室 Viktor Oddy 的單頁式登陸頁面,採用 React + TypeScript + Vite + Tailwind CSS 和 lucide-react 圖示。設計以極簡白色背景貫穿全頁,搭配 PP Neue Montreal(內文,使用 Webflow CDN)與 PP Mondwest(襯線強調字型,由本機 /PPMondwest-Regular.woff2 提供)。特色包括:交錯的 IntersectionObserver 滾動揭示、無限圖片跑馬燈、視差推薦人像、定價卡片、自動滾動推薦輪播、作品展示,以及游標軌跡 GIF 行動呼籲。
工作流程
- 將
example.html複製到使用者的工作區,作為工作檔案。 - 取代預留內容,將使用者的真實品牌名稱、標題、內文、數字和圖片一一換上。更換素材時,請維持原有圖片尺寸。
- 保留設計系統。 下方建構規格中的調色盤、字型比例、間距節奏與動態效果是品牌識別的核心——請勿替換字型、更改調色盤顏色,或移除任何裝飾元素。
- 透過複製區段來擴充,切勿從其他範本匯入版面。若缺少某個區塊,請以此範本自身的設計語言從頭打造。
- 確保動畫的無障礙性。 根據建構規格,所有動畫都必須遵守
prefers-reduced-motion設定。
輸出規範
請在 <artifact> 標籤內輸出:
<artifact identifier="viktor-oddy-landing" type="text/html" title="Viktor Oddy — 創意工作室登陸頁面">
<!doctype html>
<html>...</html>
</artifact>
建構規格
以下是產生此設計的提示原文,逐字保留。
Viktor Oddy — 創意工作室登陸頁面
概述
為名為「Viktor Oddy」的創意設計工作室,建立一個單頁式行銷登陸頁面。頁面背景全白,使用兩種自訂字型,包含:置中英雄區塊、無限圖片跑馬燈、視差推薦區塊、定價網格、自動滾動推薦輪播、作品展示、互動合作夥伴行動呼籲、頁尾、版權宣告列,以及固定的浮動底部導覽列。全頁使用觸發於滾動的淡入動畫效果。
技術棧
- 框架: React 18(
react^18.3.1、react-dom^18.3.1)搭配 TypeScript(typescript^5.7.3)。 - 建構工具: Vite(
vite^5.4.14)搭配@vitejs/plugin-react(^4.3.4)。建構腳本:tsc -b && vite build。 - 樣式: Tailwind CSS(
tailwindcss^3.4.17)搭配postcss(^8.5.1)與autoprefixer(^10.4.20)。 - 圖示:
lucide-react(^0.469.0)—Quote、Star、ChevronLeft、ChevronRight、ArrowUpRight。 - 字型: PP Neue Montreal(內文,從 Webflow CDN 載入)與 PP Mondwest(襯線強調字型,從本機
/PPMondwest-Regular.woff2檔案載入)。預設內文字型為 PP Neue Montreal,附帶系統後備字型(font-sans)。 - 關鍵技術: 以
IntersectionObserver驅動的滾動揭示、CSS 跑馬燈、requestAnimationFrame視差圖片、自動播放的無限輪播(含回彈效果),以及在滑鼠移動時於游標後方生成圖片縮圖的游標軌跡效果。
全域設定
index.html
lang="en"、UTF-8 字元編碼、viewport meta 標籤。- 描述 meta:
Viktor Oddy — the creative studio of Viktor Oddy. Build the next wave, the bold way. - 標題:
Viktor Oddy — Creative Studio。 - 內嵌 SVG favicon(data URI):一個圓角矩形
fill='%23051A24',內部包含一個襯線字體的「V」,顏色為fill='%23F6FCFF'。 - 預載字型:
<link rel="preload" href="/PPMondwest-Regular.woff2" as="font" type="font/woff2" crossorigin />。 - 根元素
<div id="root"></div>由/src/main.tsx掛載。
src/main.tsx
標準的 React 18 進入點。在 <StrictMode> 中渲染 <App />,並匯入 ./index.css。
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App';
import './index.css';
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
</StrictMode>,
);
src/index.css — 字型與全域基礎樣式
包含三個 @tailwind 指令、@font-face 宣告、基礎層(base layer),以及關鍵影格動畫。
@tailwind base;
@tailwind components;
@tailwind utilities;
@font-face {
font-family: 'PP Neue Montreal';
src: url('https://assets.website-files.com/6009ec8cda7f305645c9d91b/60176f9bb43e36419997ecfe_PPNeueMontreal-Book.otf')
format('opentype');
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: 'PP Neue Montreal';
src: url('https://assets.website-files.com/6009ec8cda7f305645c9d91b/60176f9b39c5673e51a86f5a_PPNeueMontreal-Medium.otf')
format('opentype');
font-weight: 500;
font-display: swap;
}
@font-face {
font-family: 'PP Mondwest';
src: url('/PPMondwest-Regular.woff2') format('woff2');
font-weight: 400;
font-display: swap;
}
@layer base {
html {
scroll-behavior: smooth;
}
body {
@apply bg-white font-sans text-[#051A24] antialiased;
}
}
設定 Tailwind,使 font-serif 對應到 PP Mondwest,而 font-sans 對應到 PP Neue Montreal(附帶系統後備字型)。
版面配置 (src/App.tsx)
根元素 <div id="top"> 使用 min-h-screen bg-white pb-32。區段依下列順序渲染:
HeroMarqueeTestimonialSectionPricingSectionTestimonialCarouselProjectsSectionPartnerSection(接收images={MARQUEE_IMAGES})FooterCopyrightBarBottomNav
共用常數
BOOK_URL = 'https://halaskastudio.com/./book'— 主/次行動呼籲按鈕使用。MARQUEE_IMAGES— 八個 GIF 路徑(也供PartnerSection使用):
const MARQUEE_IMAGES = [
'/assets/hero-space-voyage-preview-eECLH3Yc.gif',
'/assets/hero-portfolio-cosmic-preview-BpvWJ3Nc.gif',
'/assets/hero-velorah-preview-CJNTtbpd.gif',
'/assets/hero-asme-preview-B_nGDnTP.gif',
'/assets/hero-transform-data-preview-Cx5OU29N.gif',
'/assets/hero-aethera-preview-DknSlcTa.gif',
'/assets/hero-orbit-web3-preview-BXt4OttD.gif',
'/assets/hero-nexora-preview-cx5HmUgo.gif',
];
素材注意: 這些 GIF(以及下方的大頭貼 / 視差圖片)已在本機端的
public/assets/目錄下。它們原始來源為https://motionsites.ai/assets/...(例如https://motionsites.ai/assets/hero-space-voyage-preview-eECLH3Yc.gif),檔名大小寫需與本機路徑完全一致。
英雄區塊 (Hero 位於 src/App.tsx)
置中、窄欄位:<section id="about">,使用 mx-auto w-full max-w-[440px] px-6 pt-12 md:pt-16。利用 useInViewAnimation 掛勾實現交錯揭示效果。
- 標誌文字:
Viktor Oddy位於<h1>,類別為mb-4 font-serif text-[32px] font-semibold tracking-tight text-[#051A24] md:text-[40px] lg:text-[44px]。動畫延遲0.1s。 - 標語:
The creative studio of Viktor Oddy位於<p>,類別為mb-2 font-mono text-xs text-[#051A24] md:text-sm。動畫延遲0.2s。 - 主要標題(
<h2>): 兩行 —Build the next wave,/the bold way.— 其中next wave與bold way.以<span className="font-serif">包覆。類別為whitespace-nowrap text-[32px] leading-[1.1] tracking-tight text-[#0D212C] md:text-[40px] lg:text-[44px]。兩行之間以<br />分隔。動畫延遲0.3s。 - 描述: 一個
flex flex-col gap-6容器,類別為mt-5 ... text-sm leading-relaxed text-[#051A24] md:mt-6 md:text-base,包含三個段落。動畫延遲0.4s:- 第 1 段:
I spent seven years at Apple crafting products used by over a billion people. I founded Vortex Studio to bring that same level of thinking to innovators shaping what comes next. - 第 2 段:
The studio is deliberately small. I guide the creative vision on every project, backed by a veteran design crew that moves fast without cutting corners. - 第 3 段:
Projects start at $5,000 per month.
- 第 1 段:
- 按鈕: 一個
flex flex-col gap-3 sm:flex-row md:mt-6 md:gap-4容器,置於mt-5,動畫延遲0.5s:Start a chat—variant="primary",href={BOOK_URL}。View projects—variant="secondary",href="#work"。
無限跑馬燈 (Marquee 位於 src/App.tsx)
全寬水平捲動圖片條帶。
- 外層容器:
mb-16 mt-16 w-full overflow-hidden md:mt-20。 - 軌道:
animate-marquee flex w-max。 - 八張
MARQUEE_IMAGES圖片重複一次([...MARQUEE_IMAGES, ...MARQUEE_IMAGES],共 16 張)。每個<img>具有key={i}、alt=""、aria-hidden={i >= MARQUEE_IMAGES.length}(重複的副本對輔助技術隱藏),以及類別mx-3 h-[280px] w-auto rounded-2xl object-cover shadow-lg md:h-[500px]。 - 動畫(CSS):從
translateX(0)到translateX(-50%),桌機版30s linear infinite,手機版10s。
推薦 / 視差區塊 (src/components/TestimonialSection.tsx)
<section>,使用 mx-auto max-w-2xl px-6 py-12 text-center。利用 useInViewAnimation 掛勾以及自訂的 useParallax 掛勾。
- 引言圖示: Lucide
Quote,類別為mx-auto h-6 w-6 text-slate-900,包在<div>中,動畫延遲0.1s。 - 大段引言(
<blockquote>):‘I left+<span className="font-serif">Apple</span>+to build the studio I always wanted to work with’(使用‘/’彎引號)。類別為mt-6 text-[32px] leading-[1.1] tracking-tight text-[#0D212C] md:text-[40px] lg:text-[44px]。動畫延遲0.2s。 - 作者:
Viktor Oddy位於<p>,類別為mt-6 text-sm italic text-[#273C46]。動畫延遲0.3s。 - 公司標誌(文字形式): 一個
mt-12 flex items-center justify-center gap-8列,動畫延遲0.4s。每個都使用<span>,類別為text-[24px] font-medium text-slate-900,並包含內聯width:Apple—80pxIDEO—83pxPolygon—110px
- 視差圖片: 一個
<div ref={parallaxRef}>,具有mt-16及動畫延遲0.5s,內含一個<img>:src=/assets/hf_20260330_103804_7aa5494f-4d5b-432e-9dc7-20715275f143.webpalt="Chris Halaska",loading="lazy"- 類別
mx-auto w-full max-w-xs rounded-2xl shadow-lg will-change-transform - 內聯
style={{ transform: \translateY(${offset.toFixed(2)}px)` }}`
素材注意: 視差圖片已在本機端以上述
.webp檔案存在。原始來源為https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzzbokvigwjottwixh07lwa1p%2Fhf_20260330_103804_7aa5494f-4d5b-432e-9dc7-20715275f143.png&w=1280&q=85。
useParallax 掛勾
const PARALLAX_MAX_OFFSET = 200;
- 使用
IntersectionObserver追蹤一個元素(設定visible旗標),並附加被動的scroll與resize事件監聽器。 - 更新時,計算進度
(viewportHeight - rect.top) / (viewportHeight + rect.height),並限制在[0, 1]範圍內,接著next = (clamped - 0.5) * 2 * PARALLAX_MAX_OFFSET,再限制在[-200, 200]像素之間。 - 更新透過
requestAnimationFrame排程,且僅在元素可見時執行;在元件卸載時,會清除影格與事件監聽器。
定價區塊 (src/components/PricingSection.tsx)
<section id="services">,使用 w-full px-6 py-12。內部容器 md:flex md:justify-end;網格為 grid grid-cols-1 gap-8 md:max-w-4xl md:grid-cols-2(桌機版靠右對齊)。使用 useInViewAnimation 掛勾。BOOK_URL = 'https://halaskastudio.com/./book'。
卡片 1 — 月度合作(深色)
<article> 類別:rounded-[40px] bg-[#051A24] pb-10 pl-10 pr-10 pt-3 shadow-[inset_0_2px_16px_0_rgba(246,252,255,0.12)] md:pr-24。動畫延遲 0.1s。
- 標題(
<h3>):Monthly Partnership—mt-7 text-[22px] font-medium text-[#F6FCFF]。 - 描述(
<p>):A dedicated creative design team.<br />You work directly with Viktor.—mt-3 text-sm leading-relaxed text-[#E0EBF0]。 - 價格:
$5,000位於mt-8 text-2xl text-[#F6FCFF],接著Monthly位於mt-1 text-sm text-[#E0EBF0]。 - 按鈕(
mt-8 flex flex-col gap-3 sm:flex-row):Start a chat(variant="primary")與How it works(variant="secondary"),兩者href={BOOK_URL}。
卡片 2 — 客製化專案(淺色)
<article> 類別:rounded-[40px] bg-white pb-10 pl-10 pr-10 pt-3 shadow-[0_4px_16px_rgba(0,0,0,0.08)] md:pr-24。動畫延遲 0.2s。
- 標題(
<h3>):Custom Project—mt-7 text-[22px] font-medium text-[#0D212C]。 - 描述(
<p>):Fixed scope, fixed timeline.<br />Same team, same standards.—mt-3 text-sm leading-relaxed text-[#273C46]。 - 價格:
$5,000位於mt-8 text-2xl text-[#0D212C],接著Minimum位於mt-1 text-sm text-[#273C46]。 - 按鈕(
mt-8 flex):Start a chat(variant="tertiary"),href={BOOK_URL}。
推薦輪播 (src/components/TestimonialCarousel.tsx)
<section>,使用 w-full overflow-hidden py-20。使用 useInViewAnimation 掛勾。
標題列
一個 flex flex-col gap-8 md:ml-auto md:max-w-4xl md:flex-row md:items-end md:justify-between 容器(動畫延遲 0.1s):
- 標題(
<h2>):What+<span className="font-serif">builders</span>+say,類別text-[32px] leading-[1.1] tracking-tight text-[#0D212C] md:text-[40px] lg:text-[44px]。 - 右側群組(
flex flex-col items-start gap-4 md:items-end):- 五個 Lucide
Star圖示(h-5 w-5 fill-black text-black),置於一個flex容器中,標記aria-label="5 out of 5 stars",後接Clutch 5/5,文字類別text-sm text-[#051A24]。 - 上一個 / 下一個按鈕,置於
flex gap-3中:每個按鈕為flex h-12 w-12 items-center justify-center rounded-full border border-[#0D212C]/20 text-[#0D212C] transition-colors hover:bg-[#0D212C]/5,內含 LucideChevronLeft/ChevronRight(h-5 w-5),並分別帶有aria-label="Previous testimonial"/"Next testimonial"。
- 五個 Lucide
輪播機制
const COUNT = TESTIMONIALS.length;
const TRIPLED = [...TESTIMONIALS, ...TESTIMONIALS, ...TESTIMONIALS];
const GAP = 24; // gap-6
const DESKTOP_CARD_
[其餘內容因長度限制被截斷]