Skip to content

Commit c1ae13d

Browse files
committed
feat: add 3D Landing Page template with React Three Fiber
- Create scaffold-3d directory with Next.js template - Add React Three Fiber, Drei, and Framer Motion dependencies - Include comprehensive AI_RULES_3D.md for 3D development guidelines - Template available in hub for creating interactive 3D landing pages
1 parent f857684 commit c1ae13d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

AI_RULES_3D.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
3336
1. Use **React Three Fiber** for all 3D rendering.
3437
2. Use **drei helpers** (OrbitControls, Environment, Text, ContactShadows).
3538
3. 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+
5762
1. Use **GLTF/GLB** optimized models only.
5863
2. Use `useMemo` and `useFrame` wisely for animations.
5964
3. 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,6 +78,7 @@ 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.

scaffold-3d/AI_RULES.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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+
3336
1. Use **React Three Fiber** for all 3D rendering.
3437
2. Use **drei helpers** (OrbitControls, Environment, Text, ContactShadows).
3538
3. 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+
5762
1. Use **GLTF/GLB** optimized models only.
5863
2. Use `useMemo` and `useFrame` wisely for animations.
5964
3. 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

Comments
 (0)