make a highly detailed Megadrive controller in svg
- User
make a highly detailed Megadrive controller in svg
Assistant
I'll create a highly detailed Sega Mega Drive controller in SVG, embedded in a showcase page. Let me start by exploring the project structure, then build out the SVG with rich detail — gradients, shadows, highlights, and subtle interactivity.
Now I'll create a detailed Mega Drive controller SVG component. I'll include rich gradients, highlights, shadows, a cable with plug, D-pad with pivot, three staggered action buttons (A/B/C), a START button, screws, and subtle interactivity.
Now I'll update the page title and create a polished showcase page for the controller.
Now let me build to verify everything compiles.
Build succeeded. Let me fix a small interactivity bug — the D-pad's outer group wraps all directions but only registers UP, so clicking DOWN/LEFT/RIGHT would also fire UP. I'll restructure the D-pad click zones.
Build succeeds. Here's what I made:
A highly detailed Mega Drive controller rendered entirely in SVG, embedded in a retro-styled showcase page.
SVG details (in
src/components/MegaDriveController.tsx)- Cable & DE-9 plug — curved cable with strain relief at the body, metallic plug with 9 pins arranged in the classic 5+4 layout and tiny flanking screws.
- Body — boomerang-shaped path with a multi-stop radial gradient, a top sheen layer, a darker rim along the bottom, a subtle highlight arc along the crown, and a soft drop-shadow filter.
- D-pad — recessed circular well (dark gradient + inset shadow), cross formed by two overlapping rounded rectangles with top-edge highlights, a center pivot, and etched directional arrows. Each direction is its own clickable zone.
- A / B / C buttons — staggered diagonally (classic layout), each sitting in a recessed well with a red radial gradient, a shadow rim, two specular highlights (a broad one + a tight bright one), and an engraved letter. They scale down on press.
- START button — pill-shaped black button in its own well with label above.
- Branding — "MEGA DRIVE" and "CONTROL PAD" on the top face, "— 16-BIT —" etched near the bottom.
- Screws — four Phillips-head screws at the corners of the body, plus two on the plug.
- Vent dots — row of small dots along the bottom edge for texture.
- Interactivity — clicking any button or D-pad direction briefly lights it up / presses it in.
Showcase page (
src/App.tsx)Dark background with purple/red/blue ambient radial glows, a subtle scanline overlay, a "16-Bit Era · 1988" badge, a big gradient-text "MEGA DRIVE" title, the controller with a soft reflection beneath it, and a spec chip row (DE-9 Connector, Conductive Rubber, 2.4 m Cable, ABS Shell).
Files built:
src/components/MegaDriveController.tsx,index.html,src/App.tsx