@@ -7,6 +7,7 @@ These rules define how to create a **modern 3D landing page** with Webflow-like
77---
88
99## Core Tech Stack
10+
1011- ** React + TypeScript** (strict mode).
1112- ** React Three Fiber (r3f)** for Three.js integration.
1213- ** @react-three/drei ** for helpers, controls, and loaders.
@@ -20,6 +21,7 @@ These rules define how to create a **modern 3D landing page** with Webflow-like
2021---
2122
2223## File & Code Organization
24+
2325- ` src/pages/ ` → All main page layouts.
2426- ` src/components/ ` → UI components (Hero, Navbar, Footer, CTA).
2527- ` src/components/3d/ ` → 3D scene components (CanvasWrapper, HeroScene, Models).
@@ -30,6 +32,7 @@ These rules define how to create a **modern 3D landing page** with Webflow-like
3032---
3133
3234## 3D & Animation Rules
35+
33361 . Use ** React Three Fiber** for all 3D rendering.
34372 . Use ** drei helpers** (OrbitControls, Environment, Text, ContactShadows).
35383 . Optimize 3D models before adding (Blender, glTF compression).
@@ -43,6 +46,7 @@ These rules define how to create a **modern 3D landing page** with Webflow-like
4346---
4447
4548## Modern Design Guidelines
49+
4650- ** Hero Section** → Fullscreen 3D canvas with a call-to-action overlay.
4751- ** Navigation** → Sticky navbar with smooth scroll + animated underline.
4852- ** Sections** → Use gradient backgrounds + glassmorphism cards.
@@ -54,6 +58,7 @@ These rules define how to create a **modern 3D landing page** with Webflow-like
5458---
5559
5660## Performance Rules
61+
57621 . Use ** GLTF/GLB** optimized models only.
58632 . Use ` useMemo ` and ` useFrame ` wisely for animations.
59643 . Leverage ` drei/PerformanceMonitor ` for adaptive quality.
@@ -64,6 +69,7 @@ These rules define how to create a **modern 3D landing page** with Webflow-like
6469---
6570
6671## Deployment & Build
72+
6773- Deploy via ** Vercel/Netlify** with CDN asset hosting.
6874- Preload critical assets but lazy load non-essentials.
6975- Ensure PWA support (manifest.json, service worker).
@@ -72,9 +78,10 @@ These rules define how to create a **modern 3D landing page** with Webflow-like
7278---
7379
7480## TL;DR Quick Setup
81+
7582- ` CanvasWrapper ` + ` HeroScene ` in ` src/components/3d/ ` .
7683- Navbar, Hero, Features, CTA, Footer inside ` src/pages/Index.tsx ` .
7784- Use ** r3f + drei** for 3D, ** Framer Motion** for UI, ** Tailwind** for styling.
7885- Optimize models and test performance with Lighthouse.
7986
80- ---
87+ ---
0 commit comments