I'll build a premium product viewer with a procedurally-generated 3D product, 360° rotation, zoom, hotspot annotations, and color variants. Let me start by exploring the project structure.
Now I have a clear picture of the project. Let me build a premium product viewer with a procedurally-generated headphone, 360° rotation, zoom, hotspot annotations, and color variants.
Now let me create the main components:
Now let me create the HotspotOverlay component:
Now let me create the main ProductViewer component:
Now let me create the main App component:
Let me also fix the unused useEffect import in ProductViewer:
Now let me build the project to check for errors:
The build succeeds. Let me enhance the visual polish and add some finishing touches to make it truly premium:
Let me enhance the CSS with some custom animations and improve the hotspot tooltip:
Let me update the ProductViewer to have a more dramatic visual presentation with an animated gradient background:
Let me add keyboard support and improve the product viewer:
Now let me update the HotspotOverlay with better tooltip handling:
Let me also update the HeadphoneSVG with more detail and a subtle background glow:
Now let me build to confirm everything compiles:
The build succeeds. Let me add a subtle grid pattern to the viewer background and some final polish:
Let me connect the hotspot clicks to the product info sidebar:
Let me find where the ProductViewer is used and add the callback:
Now let me add the hotspot detail panel in the sidebar. Let me find a good place:
The build succeeds. Let me do a final polish - let me also add some nice transitions on the color change and ensure the product SVG smoothly transitions between colors:
Let me verify the complete App.tsx looks right:
Let me do a final build to confirm everything works:
The project builds successfully. Here's a summary of what I built:
360° Product Viewer — Aura Pro X1 Headphones
Features Built:
🎧 Procedural SVG Product
- A detailed wireless headphone rendered entirely with SVG — no images needed
- Radial/linear gradients, drop shadows, speaker grille dots, LED indicators with pulsing animations
- Hinge details, stitching lines, brand logo, metallic sheen effects
- Dynamic brightness that shifts as the product rotates (simulates lighting)
- Parallax ear cup movement for enhanced 3D depth perception
🔄 360° Rotation
- Drag to rotate with pointer events (mouse + touch support)
- Smooth auto-rotation with play/pause toggle
- Keyboard controls: Arrow keys to rotate
- Angle indicator bar showing current rotation (0°–360°)
- CSS
rotateY with preserve-3d for true perspective rotation
🔍 Zoom
- Scroll wheel zoom (0.6x to 2.5x)
- Zoom in/out buttons
- Keyboard:
+/- keys
- Reset button to return to default view
- Zoom percentage indicator
📍 Hotspot Annotations (7 hotspots)
- Animated pulsing dots positioned on key product features
- Context-aware visibility — hotspots appear/disappear based on rotation angle
- Click to reveal detailed tooltip with feature name and description
- Active hotspot detail panel shown in the product sidebar
- Features: ANC, 40mm Drivers, Memory Foam, Battery, Bluetooth, Touch Controls, Headband
🎨 5 Color Variants
- Midnight Black, Lunar Silver, Ocean Blue, Rose Gold, Forest Green
- Each variant has 8 color properties (primary, secondary, accent, cushion, headband, highlight, shadow, swatch)
- Clicking a swatch instantly recolors the entire product
- Dynamic background glow changes with selected color
🖥️ Full Product Page Layout
- Header with branding and navigation
- Product rating with star display
- Pricing with discount badge
- Feature checklist
- Add to Cart + Wishlist CTAs
- Trust badges (Free Shipping, Warranty, Returns)
- Technical specifications grid
- Responsive design (mobile + desktop)
Files built: index.html, src/data/product.ts, src/components/HeadphoneSVG.tsx, src/components/HotspotOverlay.tsx, src/components/ProductViewer.tsx, src/App.tsx, src/index.css