Prompt para AI Studio — CHRONOS Luxury Watch Experience… · The Chat Archive
Explore Prompt para AI Studio — CHRONOS Luxury Watch Experience Como usar 1. Copie todo o bloco… Save Share Download ▾ ReportPrompt para AI Studio — CHRONOS Luxury Watch Experience
Como usar
Copie todo o bloco abaixo (após o separador ---)
Cole no AI Studio (ou qualquer IAs de código como Cursor, Windsurf, etc.)
O AI irá gerar o código React + TypeScript completo
PROMPT COMPLETO
Você é um Senior Frontend Engineer especializado em experiências digitais imersivas de nível Awwwards. Abaixo está o Build Spec completo de um site de relógios de luxo com 3D, partículas generativas e scroll interativo. Sua tarefa é escrever o código React + TypeScript seguindo EXATAMENTE cada especificação. Use as dependências, classes Tailwind, parâmetros de animação e comportamentos descritos. Não invente nada — siga o spec literalmente.
Build a single-page immersive landing site for "CHRONOS" — a luxury watch experience where visitors explore watch mechanisms in 3D with generative golden particles.
The entire site uses deep black (#0A0A0A) with ivory text (#FFFFF0) and golden accents (#D4AF37).
The primary font is "Cormorant Garamond" (serif) for headings and "Inter" (sans-serif) for body.
Use React + TypeScript + Vite + Tailwind CSS v4 + Framer Motion + React Three Fiber.
Fonts & External Assets
Primary font (Display): "Cormorant Garamond" (weights: 300, 400, 600) from Google Fonts
Secondary font (Body): "Inter" (weights: 300, 400, 500) from Google Fonts
Data font (Mono): "JetBrains Mono" (weights: 300, 400) from Google Fonts
Icons: Lucide React (size 16-24, strokeWidth 1.5)
All Tailwind fontFamily keys: sans: "Inter", serif: "Cormorant Garamond", mono: "JetBrains Mono"
External Resources
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400&display=swap" rel="stylesheet">
Image URLs (Pollinations.ai)
Hero Watch: https://image.pollinations.ai/prompt/luxury%20watch%20macro%20mechanism%2C%20golden%20gears%2C%20dark%20background%2C%20cinematic%20lighting%2C%208k
Collection Heritage: https://image.pollinations.ai/prompt/classic%20gold%20watch%20on%20dark%20velvet%2C%20studio%20lighting%2C%20product%20photography
I'll create this comprehensive luxury watch experience website. Let me start by exploring the current project structure and then build all the components.
Now let me install all the required dependencies for this project:
Now let me update the necessary files. First, let me update the index.html with Google Fonts:
Now let me update the index.css with the theme configuration:
Copy first prompt
Other models, same or similar prompt Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Details
Provider unknown
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language pt
Added to archive Nov 24, 2026
ID 01m87gvvsaxvp2v9qnnb8nqrnsSource & license Imported from Arena WebDev Preferences (2026) (source ). Imported records earn no Research Points.
Upstream record: 019f6dd5-4ee9-71ba-9654-ca4378d41349:a
lmarena-ai/arena-webdev-preferences, revision f7f123807f6713ff86912758bff9cea597c0503e
License: CC-BY-4.0 (prompts); model outputs under provider terms
Dataset releases Not yet included in a published release.
Collection Modern: https://image.pollinations.ai/prompt/modern%20steel%20watch%20minimalist%2C%20dark%20background%2C%20product%20shot
Collection Avant-Garde: https://image.pollinations.ai/prompt/avant%20garde%20skeleton%20watch%2C%20visible%20movement%2C%20dark%20dramatic%20lighting
Video URLs (Pexels — placeholder)
Hero Background: https://videos.pexels.com/video-files/3129671/3129671-uhd_2560_1440_30fps.mp4 (abstract dark particles)
Mechanism Section: https://videos.pexels.com/video-files/3194277/3194277-uhd_2560_1440_30fps.mp4 (clockwork close-up)
Dependencies {
"dependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0",
"@react-three/fiber": "^9.0.0",
"@react-three/drei": "^10.0.0",
"three": "^0.171.0",
"framer-motion": "^12.0.0",
"gsap": "^3.12.0",
"zustand": "^5.0.0",
"lucide-react": "^0.400.0",
"@types/three": "^0.171.0"
},
"devDependencies": {
"typescript": "^5.7.0",
"vite": "^6.0.0",
"@vitejs/plugin-react": "^4.0.0",
"tailwindcss": "^4.0.0",
"@tailwindcss/vite": "^4.0.0"
}
}
Global CSS (index.css) @import "tailwindcss";
@theme {
--color-void: #0A0A0A;
--color-gold: #D4AF37;
--color-gold-dark: #8B7536;
--color-gold-light: #F5D060;
--color-steel: #C0C0C0;
--color-obsidian: #1A1A2E;
--color-ivory: #FFFFF0;
--color-ruby: #9B111E;
--color-sapphire: #0F3460;
--color-slate: #2C2C3A;
--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
--font-serif: "Cormorant Garamond", Georgia, serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
background: #0A0A0A;
color: #FFFFF0;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
::selection {
background: #D4AF37;
color: #0A0A0A;
}
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
background: #D4AF37;
border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
Custom Text Animation Components
1. ScrambleIn — Text reveal with random characters
Props: text: string, delay: number (ms), triggered: boolean, className?: string
Character set: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+~|}{[]:;?><
On trigger (after delay): runs interval every 25ms, revealing characters left-to-right at 0.5 chars/frame
Characters not yet revealed show random chars (up to 3 ahead of reveal cursor)
Characters beyond that are empty
Spaces always show as spaces
Before triggered: renders
const ScrambleIn: React.FC<{text: string, delay: number, triggered: boolean, className?: string}> = ({text, delay, triggered, className}) => {
const [display, setDisplay] = useState(' ');
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+~|}{[]:;?><';
useEffect(() => {
if (!triggered) return;
const timeout = setTimeout(() => {
let frame = 0;
const interval = setInterval(() => {
const revealed = Math.floor(frame * 0.5);
const result = text.split('').map((char, i) => {
if (char === ' ') return ' ';
if (i < revealed) return char;
if (i < revealed + 3) return chars[Math.floor(Math.random() * chars.length)];
return '';
}).join('');
setDisplay(result);
frame++;
if (revealed >= text.length) clearInterval(interval);
}, 25);
return () => clearInterval(interval);
}, delay);
return () => clearTimeout(timeout);
}, [text, delay, triggered]);
return <span className={className} dangerouslySetInnerHTML={{__html: display}} />;
};
2. GoldGlow — Text with golden glow effect
Props: children: ReactNode, intensity?: number (0-1, default 0.5)
Applies text-shadow with golden color
Intensity controls blur radius (2px to 12px)
const GoldGlow: React.FC<{children: ReactNode, intensity?: number}> = ({children, intensity = 0.5}) => {
const blur = 2 + intensity * 10;
return (
<span style={{textShadow: `0 0 ${blur}px #D4AF37, 0 0 ${blur * 2}px #D4AF3740`}}>
{children}
</span>
);
};
3. MagneticButton — Button with magnetic cursor effect
Props: children: ReactNode, onClick?: () => void, className?: string
Tracks mouse position relative to button center
Applies translate3d transform divided by strength factor (3)
Activates when cursor is within 150px padding
Smooth transition in (0.3s ease-out) and out (0.6s ease-in-out)
const MagneticButton: React.FC<{children: ReactNode, onClick?: () => void, className?: string}> = ({children, onClick, className}) => {
const ref = useRef<HTMLButtonElement>(null);
const [transform, setTransform] = useState('translate3d(0, 0, 0)');
const handleMouseMove = (e: React.MouseEvent) => {
if (!ref.current) return;
const rect = ref.current.getBoundingClientRect();
const x = e.clientX - rect.left - rect.width / 2;
const y = e.clientY - rect.top - rect.height / 2;
setTransform(`translate3d(${x / 3}px, ${y / 3}px, 0)`);
};
const handleMouseLeave = () => setTransform('translate3d(0, 0, 0)');
return (
<button
ref={ref}
className={`transition-transform duration-300 ease-out ${className}`}
style={{transform, willChange: 'transform'}}
onMouseMove={handleMouseMove}
onMouseLeave={handleMouseLeave}
onClick={onClick}
>
{children}
</button>
);
};
Custom SVG Logo (ChronosLogo) A minimal geometric logo representing a watch escapement mechanism:
<svg viewBox="0 0 120 120" className="w-8 h-8">
<circle cx="60" cy="60" r="55" fill="none" stroke="#D4AF37" strokeWidth="1.5"/>
<circle cx="60" cy="60" r="45" fill="none" stroke="#D4AF37" strokeWidth="0.5" opacity="0.5"/>
<line x1="60" y1="15" x2="60" y2="40" stroke="#D4AF37" strokeWidth="1.5" strokeLinecap="round"/>
<circle cx="60" cy="60" r="4" fill="#D4AF37"/>
<path d="M60 20 L62 55 L60 58 L58 55 Z" fill="#D4AF37" opacity="0.8"/>
</svg>
Animated Golden Particles (GoldenParticles)
5000 point sprites (WebGPU Compute Shader)
Each particle: position (vec3), velocity (vec3), life (float), size (float)
Color: #D4AF37 with ±10% HSL variation
Behavior: attracted to watch centers, spiral flow
Speed: varies with system clock seconds (0-59 → 0.2x-1.0x)
Size attenuation: larger when closer to camera
Fade: opacity 0 at life boundaries
Page Sections (in order)
SECTION 0: Preloader (full viewport height, fixed z-[100])
Background: #0A0A0A solid
Layout: Fixed overlay, flex items-center justify-center
Content:
Counter number: text-[clamp(3rem,8vw,8rem)] font-serif font-300 tabular-nums text-[#D4AF37]
Counts from 0 to 100 over 2000ms (20ms per step, 100 steps)
After reaching 100: wait 200ms, then opacity-0 with duration-700
After 900ms total, remove from DOM via onComplete callback
Animation: None (static counter)
Reduced Motion: If reduced motion, skip to onComplete immediately
SECTION 1: Hero (full viewport height, overflow-hidden)
Background: Video #1 (abstract dark particles), object-cover, opacity-0.3, paused, playsInline
Entrance animation: Video fades in over 2s after preloader completes
Overlay: Radial gradient from center #0A0A0A00 to edges #0A0A0A, z-[1]
3D Canvas: Absolute positioned, inset-0, z-[2], contains <Canvas> from R3F
Camera: position={[0, 0, 15]}, fov: 50
Lighting: ambient #1A1A2E intensity 0.3, spot #D4AF37 intensity 1.2 position [10, 10, 5]
Watch model: <WatchModel /> component (loaded via useGLTF)
Particles: <GoldenParticles /> component
Layout: Absolute inset-0, flex flex-col justify-end, px-[clamp(24px,4vw,80px)] pb-[clamp(40px,8vh,100px)]
Content:
Logo: Fixed top-6 left-6 z-[20], mix-blend-mode exclusion
<ChronosLogo /> + "CHRONOS" text: font-serif text-sm tracking-[0.3em] uppercase text-[#FFFFF0]
Nav: Fixed top-6 right-6 z-[20], flex gap-8
Links: "Coleções", "Mecanismo", "Ateliê", "Contato"
Style: font-sans text-xs tracking-[0.2em] uppercase text-[#FFFFF0]/70 hover:text-[#FFFFF0] transition-colors duration-300
h1: "Tempo É Sua Obra" — font-serif font-300 text-[clamp(3rem,8vw,8rem)] leading-[0.9] tracking-[-0.03em] text-[#FFFFF0]
Entrance: whileInView={{ opacity: 1, y: 0 }} from { opacity: 0, y: 40 }, duration 1.2s, ease [0.16, 1, 0.3, 1], delay 0.5s
Subtitle: "Explore the soul of haute horlogerie in three dimensions" — font-sans text-[clamp(0.875rem,1.2vw,1.1rem)] font-300 tracking-wide text-[#C0C0C0] mt-6 max-w-lg
Entrance: fade-up, delay 0.8s, duration 1s
Scroll Indicator: Absolute bottom-8 left-1/2 -translate-x-1/2
Animated chevron: animate-bounce with text-[#D4AF37]/50
Text: "Scroll to explore" — font-mono text-[10px] tracking-[0.3em] uppercase text-[#D4AF37]/30
Responsive: On mobile (<640px), hide nav links, show hamburger button
SECTION 2: Philosophy (min-h-screen, py-[clamp(80px,12vh,160px)])
Background: #0A0A0A
Layout: Max-w-7xl mx-auto, px-[clamp(24px,4vw,80px)]
Content:
Left column (60%):
Subtitle: "A filosofia" — font-mono text-xs tracking-[0.3em] uppercase text-[#D4AF37] mb-4
Heading: "Cada segundo é uma obra de arte" — font-serif font-300 text-[clamp(2rem,5vw,5rem)] leading-[1.1] text-[#FFFFF0]
Staggered word reveal animation: each word wraps in overflow-hidden, inner span animates from translateY(100%) + blur(4px) to visible, staggered delays 0.3s, 0.4s, 0.5s...
Body text: "Há mais de dois séculos, artesãos transformam metal e cristal em instrumentos que desafiam o tempo. Não é apenas engenharia — é poesia mecânica." — font-sans text-[clamp(0.95rem,1.2vw,1.1rem)] font-300 leading-relaxed text-[#C0C0C0] mt-8 max-w-xl
Entrance: fade-up, delay 0.6s, duration 1s
Right column (40%):
Image: Pollinations.ai watch mechanism, rounded-2xl, width w-full
Animation: whileInView={{ scale: 1, opacity: 1 }} from { scale: 0.9, opacity: 0 }, duration 1.4s, ease easeOut
Decorative gold line: absolute -left-8 top-0 w-[1px] h-full bg-gradient-to-b from-transparent via-[#D4AF37] to-transparent
Responsive: Stack columns on mobile, image moves below text
SECTION 3: Collections (min-h-screen, py-[clamp(80px,12vh,160px)])
Background: #0A0A0A
Layout: Max-w-7xl mx-auto, px-[clamp(24px,4vw,80px)]
Content:
SECTION 4: Mechanism 3D (height: 300vh, scroll-driven)
Background: #0A0A0A
Layout: Fixed canvas covering viewport during scroll
3D Content (scroll-linked):
Watch model starts at z:15, zooms to z:2 over 300vh scroll
Camera orbits based on scroll position (0° to 360°)
Lighting changes: warm → cool → warm as scroll progresses
Particles increase density during zoom
Text Overlays (scroll-triggered):
Phase 1 (0-100vh): "A engrenagem" — fades in at 30vh, fades out at 80vh
font-serif text-[clamp(2rem,5vw,5rem)] text-[#FFFFF0] fixed top-1/2 left-[clamp(24px,4vw,80px)] -translate-y-1/2 pointer-events-none z-[10] mix-blend-mode exclusion
Phase 2 (100-200vh): "O rubi" — same positioning
Text: "Cada ponto de fricção é protegido por um rubi — dureza que desafia o tempo"
Phase 3 (200-300vh): "O equilíbrio" — same positioning
Text: "28.800 vibrações por hora. O coração que nunca para."
Scroll Logic (RAF-based):
Track scrollY via requestAnimationFrame (NOT scroll events)
Calculate phase based on scrollY / window.innerHeight
Map scroll to camera z: 15 - (scrollProgress * 13)
Map scroll to camera orbit: scrollProgress * Math.PI * 2
Dynamic spacer height: 300vh
Responsive: On mobile, simplify to 2 phases, reduce particles to 2000
SECTION 5: Escapement Climax (min-h-screen, overflow-hidden)
SECTION 6: Atelier (min-h-screen, py-[clamp(80px,12vh,160px)])
Background: Linear gradient from #0A0A0A to #1A1A2E
Layout: Max-w-7xl mx-auto, px-[clamp(24px,4vw,80px)]
Content:
Two-column layout:
Left (55%):
Subtitle: "O ateliê" — font-mono text-xs tracking-[0.3em] uppercase text-[#D4AF37] mb-4
Heading: "Onde o tempo ganha forma" — font-serif font-300 text-[clamp(2rem,5vw,5rem)] leading-[1.1] text-[#FFFFF0]
Body: "Cada componente é montado à mão por mestres relojoeiros com décadas de experiência. O silêncio do ateliê é quebrado apenas pelo tic-tac de centenas de corações mecânicos." — font-sans text-[clamp(0.95rem,1.2vw,1.1rem)] font-300 leading-relaxed text-[#C0C0C0] mt-8
Stats grid: grid grid-cols-3 gap-8 mt-12
"247" — "Peças por movimento" — font-serif text-4xl text-[#D4AF37] + font-sans text-xs text-[#C0C0C0]
"18" — "Meses de fabricação" — same style
"0.001mm" — "Tolerância" — same style
Each stat: whileInView={{ opacity: 1, y: 0 }} staggered 0.15s
Right (45%):
Image: Pollinations atelier, rounded-2xl
Animation: whileInView={{ x: 0, opacity: 1 }} from { x: 40, opacity: 0 }, duration 1.2s
Responsive: Stack on mobile
SECTION 7: Contact CTA (min-h-screen, flex items-center)
Background: Radial gradient from #D4AF3710 center to #0A0A0A edges
Layout: Flex col items-center text-center, px-[clamp(24px,4vw,80px)]
Content:
Heading: "Agende sua experiência" — font-serif font-300 text-[clamp(2rem,5vw,5rem)] leading-[1.1] text-[#FFFFF0]
Entrance: whileInView, fade-up, delay 0.3s
Subtitle: "Visite nosso ateliê e descubra o mecanismo que fará seu coração bater mais rápido" — font-sans text-[clamp(0.95rem,1.2vw,1.1rem)] font-300 text-[#C0C0C0] mt-6 max-w-lg
Entrance: fade-up, delay 0.5s
CTA Button: MagneticButton
Style: bg-[#D4AF37] text-[#0A0A0A] font-sans text-xs tracking-[0.2em] uppercase px-10 py-5 rounded-full mt-12 hover:bg-[#F5D060] transition-colors duration-300
Text: "Agendar Visita"
Entrance: fade-up, delay 0.7s
Decorative: Horizontal gold line w-24 h-[1px] bg-[#D4AF37]/30 above button
Responsive: Adjust padding and font sizes
FOOTER
Background: #0A0A0A
Border: border-t border-[#2C2C3A]
Layout: Max-w-7xl mx-auto, px-[clamp(24px,4vw,80px)] py-16
Content:
Left: Logo + "CHRONOS" — font-serif text-sm tracking-[0.3em] uppercase text-[#FFFFF0]
Center: Links — "Privacidade", "Termos", "Imprensa" — font-sans text-xs text-[#C0C0C0] hover:text-[#D4AF37] transition-colors
Right: Social icons (Instagram, LinkedIn) — text-[#C0C0C0] hover:text-[#D4AF37]
Bottom: "© 2026 CHRONOS. Todos os direitos reservados." — font-mono text-[10px] text-[#2C2C3A] mt-8 text-center
Key Technical Details
Hero video is NOT autoplay — starts paused, plays on user interaction or after 5s timeout
Framer Motion useScroll tracks section with offset ["start end", "end start"] for mechanism section
No external state management except Zustand for global app state (reduced motion, GPU tier)
All 3D models loaded via useGLTF with Draco compression
IntersectionObserver triggers text animations (staggered reveal pattern)
requestAnimationFrame for all scroll-based calculations (NOT scroll event listeners)
Videos: muted, playsInline, preload="auto" always
All overlaid UI: pointer-events-none except interactive elements
Root container: user-select: none
Scroll Logic (Mechanism Section) RAF-based (NOT scroll events):
All scroll calculations in requestAnimationFrame for 60fps
No scroll event listeners — entirely RAF-driven position tracking
Dynamic spacer height: 300vh
Phase 1 (scrollY 0 to vh): Camera at z:15, watch overview, text "A engrenagem" fades in
Phase 2 (scrollY vh to 2vh): Camera zooms to z:8, orbit 120°, text "O rubi" appears
Phase 3 (scrollY 2vh to 3vh): Camera at z:2, full orbit, text "O equilíbrio" appears
Outro (scrollY > 3vh): Section 5 (Escapement) takes over
Custom Cursor (Desktop Only)
Hidden on mobile/tablet (< 1024px)
A fixed, pointer-events-none, z-index: 50 div
Positioned via direct DOM manipulation (style.left/top = clientX/clientY)
transform: translate(-50%, -50%) to center on pointer
mix-blend-mode: exclusion
Contains SVG: circle with stroke + watch icon path, all filled white
Size: 48x48 desktop, 32x32 mobile
On hover over interactive elements: scales to 1.5, gold color
const CustomCursor: React.FC = () => {
const cursorRef = useRef<HTMLDivElement>(null);
useEffect(() => {
const move = (e: MouseEvent) => {
if (cursorRef.current) {
cursorRef.current.style.left = `${e.clientX}px`;
cursorRef.current.style.top = `${e.clientY}px`;
}
};
window.addEventListener('mousemove', move);
return () => window.removeEventListener('mousemove', move);
}, []);
return (
<div
ref={cursorRef}
className="fixed pointer-events-none z-[50] mix-blend-mode exclusion -translate-x-1/2 -translate-y-1/2 hidden lg:block"
style={{willChange: 'transform'}}
>
<svg width="48" height="48" viewBox="0 0 48 48">
<circle cx="24" cy="24" r="22" fill="none" stroke="white" strokeWidth="1.5"/>
<circle cx="24" cy="24" r="2" fill="white"/>
</svg>
</div>
);
};
Z-Index System
z-index: 0 — Video/Background
z-index: 1 — Gradient overlays
z-index: 2 — 3D Canvas
z-index: 10 — Scroll-triggered text overlays
z-index: 20 — Fixed UI (Logo, Nav)
z-index: 50 — Custom Cursor
z-index: 100 — Preloader
Performance Notes
Only update currentTime when !video.seeking — prevents jittery playback
Use requestAnimationFrame for all scroll-based animations, NOT scroll events
will-change: transform on animated elements, remove on prefers-reduced-motion
Videos: muted, playsInline, preload="auto"
All overlaid UI: pointer-events-none
Root container: user-select: none
Lazy load 3D models with useGLTF.preload()
Implement level-of-detail (LOD) for watch model based on camera distance
Use React.memo for particle system to prevent re-renders
Implement FPS monitor in dev mode, auto-reduce particles if FPS < 30
Reduced Motion Support function useReducedMotion() {
const [reduced, setReduced] = useState(false);
useEffect(() => {
const mql = window.matchMedia('(prefers-reduced-motion: reduce)');
setReduced(mql.matches);
const handler = (e: MediaQueryListEvent) => setReduced(e.matches);
mql.addEventListener('change', handler);
return () => mql.removeEventListener('change', handler);
}, []);
return reduced;
}
If reduced motion: disable custom cursor, disable 3D canvas, show static images instead, simplify all animations to simple fades
Tailwind v4 Theme Configuration @import "tailwindcss";
@theme {
--color-void: #0A0A0A;
--color-gold: #D4AF37;
--color-gold-dark: #8B7536;
--color-gold-light: #F5D060;
--color-steel: #C0C0C0;
--color-obsidian: #1A1A2E;
--color-ivory: #FFFFF0;
--color-ruby: #9B111E;
--color-sapphire: #0F3460;
--color-slate: #2C2C3A;
--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
--font-serif: "Cormorant Garamond", Georgia, serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}
@layer utilities {
.text-mega {
font-size: clamp(3rem, 8vw, 8rem);
line-height: 0.9;
letter-spacing: -0.03em;
}
}
State Management (Zustand) interface AppState {
reducedMotion: boolean;
gpuTier: 'high' | 'medium' | 'low';
scrollProgress: number;
activeSection: number;
cursorPosition: { x: number; y: number };
isLoaded: boolean;
setReducedMotion: (value: boolean) => void;
setGpuTier: (tier: 'high' | 'medium' | 'low') => void;
setScrollProgress: (progress: number) => void;
setActiveSection: (section: number) => void;
setCursorPosition: (pos: { x: number; y: number }) => void;
setIsLoaded: (loaded: boolean) => void;
}
const useAppStore = create<AppState>((set) => ({
reducedMotion: false,
gpuTier: 'medium',
scrollProgress: 0,
activeSection: 0,
cursorPosition: { x: 0, y: 0 },
isLoaded: false,
setReducedMotion: (value) => set({ reducedMotion: value }),
setGpuTier: (tier) => set({ gpuTier: tier }),
setScrollProgress: (progress) => set({ scrollProgress: progress }),
setActiveSection: (section) => set({ activeSection: section }),
setCursorPosition: (pos) => set({ cursorPosition: pos }),
setIsLoaded: (loaded) => set({ isLoaded: loaded }),
}));
Video Interaction Logic
Hero video is NOT auto-played — starts paused at currentTime = 0
On first user interaction (click/touch): video plays
If no interaction after 5s: video auto-plays with fade-in
Mechanism section video: scrubbed based on scroll position
Progress: scrollY / sectionHeight mapped to 0...video.duration
CRITICAL: Only update currentTime when !video.seeking
Hero video auto-plays on page load
Mechanism video: auto-plays in loop
Respects prefers-reduced-motion (all videos paused)
Audio Logic (Tone.js) import * as Tone from 'tone';
// Tick-tock sound (escapement)
const tickOsc = new Tone.Oscillator({
frequency: 4,
type: 'square',
volume: -20
}).toDestination();
// Freeze sound
const freezeSynth = new Tone.Synth({
oscillator: { type: 'sine' },
envelope: { attack: 0, decay: 0.2, sustain: 0, release: 0.1 }
}).toDestination();
// Explosion sound
const noise = new Tone.Noise('white').toDestination();
const noiseEnv = new Tone.AmplitudeEnvelope({
attack: 0,
decay: 0.5,
sustain: 0,
release: 0.5
}).toDestination();
Component Tree App
├── Preloader (conditional, removed after load)
├── CustomCursor (desktop only)
├── Layout
│ ├── Logo (fixed)
│ ├── Navigation (fixed)
│ └── Main
│ ├── HeroSection
│ │ ├── VideoBackground
│ │ ├── Canvas3D
│ │ │ ├── WatchModel
│ │ │ └── GoldenParticles
│ │ └── HeroContent
│ ├── PhilosophySection
│ │ ├── TextContent (staggered reveal)
│ │ └── WatchImage
│ ├── CollectionsSection
│ │ └── CollectionCard ×3
│ ├── MechanismSection (scroll-driven)
│ │ ├── FixedCanvas3D
│ │ │ ├── WatchModel (zooming)
│ │ │ └── GoldenParticles (increasing)
│ │ └── ScrollText ×3
│ ├── EscapementSection
│ │ ├── Canvas3D
│ │ │ └── EscapementModel
│ │ └── TextOverlay
│ ├── AtelierSection
│ │ ├── TextContent
│ │ ├── StatsGrid
│ │ └── AtelierImage
│ └── ContactSection
│ ├── Heading
│ └── CTAButton
└── Footer
Now let me create the Zustand store:
Now let me create the hook for reduced motion:
Now let me create the ScrambleIn component:
Let me fix the GoldenParticles component with a simpler implementation:
Let me create the WatchModel component:
Now let me create all the section components. First, let me create the Preloader:
Now let me create the HeroSection:
Let me create the PhilosophySection:
Now let me create the CollectionsSection:
Now let me create the MechanismSection:
Let me create the EscapementSection:
Let me create the AtelierSection and ContactSection:
Now let me create the ContactSection:
Now let me create the Footer component:
Now let me create the CustomCursor component:
Now let me create the main App.tsx:
Let me fix the import in App.tsx and clean up the components:
Let me rewrite the App.tsx with proper types:
Let me try building the project to see if it compiles:
The build succeeded! Let me verify the output and check if there are any issues with the components. Let me also check the dist folder:
Let me fix the EscapementSection which has issues with textGeometry:
Let me update the App.tsx to include the EscapementSection:
Files built: index.html, src/index.css, src/store/appStore.ts, src/hooks/useReducedMotion.ts, src/components/ScrambleIn.tsx, src/components/GoldGlow.tsx, src/components/MagneticButton.tsx, src/components/ChronosLogo.tsx, src/components/GoldenParticles.tsx, src/components/WatchModel.tsx, src/components/Preloader.tsx, src/components/HeroSection.tsx, src/components/PhilosophySection.tsx, src/components/CollectionsSection.tsx, src/components/MechanismSection.tsx, src/components/EscapementSection.tsx, src/components/AtelierSection.tsx, src/components/ContactSection.tsx, src/components/Footer.tsx, src/components/CustomCursor.tsx, src/App.tsx
Copy first response