I'll create an interactive origami guide with animated folding demonstrations, multiple models, step-by-step instructions, and crease patterns. Let me start by exploring the project structure.
Now I'll build the origami guide. Let me create the data layer and all components.
Now let me create the origami models data file:
Now let me create the SVG paper preview component:
I see there are JSX template literal issues. Let me rewrite the PaperPreview component with a cleaner approach:
Let me fix the unused component issue:
Now let me create the CreasePattern component:
Now let me create the FoldAnimation component:
Now let me create the ModelList component:
Now let me create the ModelDetail component — the main interactive guide:
Now let me create the main App.tsx:
Let me build the project to check for any errors:
The project builds successfully. Let me also update the CSS to add some custom styles for smooth scrolling and better typography:
The origami guide builds successfully! Here's what I created:
🎨 Origami Guide — Interactive Web Application
Features:
-
Model Selection Page — Beautiful landing page with 6 origami models:
- 🦢 Crane (Intermediate, 17 steps)
- ⛵ Sailboat (Beginner, 8 steps)
- 🐸 Jumping Frog (Beginner, 10 steps)
- 🦋 Butterfly (Intermediate, 10 steps)
- ✈️ Paper Airplane (Beginner, 8 steps)
- 🦊 Fox Face (Beginner, 5 steps)
-
Step-by-Step Guide Tab — Full interactive tutorial:
- SVG paper preview that morphs through folding stages
- Detailed instructions with fold type labels
- Pro tips highlighted in amber callouts
- Step navigation with auto-play
- Progress bar and clickable step list
- Sticky paper preview on desktop
-
Crease Pattern Tab — Technical reference:
- SVG crease pattern diagram with toggleable valley (blue) and mountain (red) folds
- Fold type legend and explanations
- Paper preview of final model
- Folding tips sidebar
-
Animation Tab — Animated folding demo:
- Step-by-step animated fold demonstration
- Paper transforms with rotation and scale effects
- Fold arrows and hand indicators
- Step navigation grid
- Quick reference guide for all fold types
- Live paper preview synced to current step
Technical Details:
- React + TypeScript for type-safe components
- Tailwind CSS for responsive styling
- SVG-based paper previews with parametric shape morphing
- CSS animations for fold demonstrations
- Fully responsive design (mobile → desktop)
Files built: index.html, src/data/models.ts, src/components/PaperPreview.tsx, src/components/CreasePattern.tsx, src/components/FoldAnimation.tsx, src/components/ModelList.tsx, src/components/ModelDetail.tsx, src/App.tsx, src/index.css