Build a website with LEGO building instructions
Use AI to build a complete website with four builds, interactive 3D instructions, building animations and inventories. This detailed prompt specifies the design, controls, models and checks.
For this prompt, currently use only ChatGPT 6.1 Sol, GPT 6 Astra, Claude Opus 5.5 or Claude Fable 5.1.
Prompt
Create a complete, working website with interactive 3D building instructions for children who have a box of ordinary LEGO bricks at home. A child should be able to choose a build, see the finished model first, and then follow along at their own pace, both step by step and one piece at a time. Implement the actual website, including all files, models and controls. Deliver a runnable project.
Use a general name such as “The Building Club”. Write the interface and instructions in clear English. Use general wording and relative paths so the project can run on any domain or in a subdirectory. The result must be understandable on its own, without additional explanations or an external reference website.
1. TWO TYPES OF PAGES
Create a collection page and a separate interactive guide for each build. Every build has its own URL. Each guide has a clear link back to the collection. Both page types share one visual design.
The collection page has a compact header with a simple original brick icon and the site name. Below it, show a large, friendly heading about building, a short introduction and the catalogue. Display two cards per row on desktop and one per row on a phone. Each card contains:
- A large preview of the actual 3D model against a soft pastel background.
- A set number, title, short description, number of building steps and number of pieces.
- A note that the design uses ordinary bricks and plates.
- A working button that opens the building guide.
Finish with three short explanations: choose a build, rotate and follow along, use your own colours. Calculate all displayed counts from the model data.
2. FOUR COMPLETE BUILDS
Create four recognisable, distinct designs:
- Treehouse: green baseplate, brown trunk and supports, raised platform, brick staircase, a cabin with open doorway and windows, an orange stepped roof and a canopy made from green bricks and plates.
- Unicorn: baseplate, four legs with hooves, a securely connected body, neck and head, ears, colourful mane, tail and a gold-yellow horn built from ordinary blocks.
- Bunker: baseplate, thick walls, accessible entrance, viewing openings, interior space and a roof built as a separate removable section.
- Monkey: baseplate, feet, legs, body, arms, large hands, a head with contrasting eyes and muzzle, a block-built curved tail and a small banana.
Aim for approximately 15 to 30 manageable steps and 80 to 160 pieces per model. Use the counts that make the design work; sound construction takes priority over an arbitrary target. Use existing, common rectangular LEGO bricks and plates. Make windows as openings and sloped forms as stepped constructions, so special moulded parts are unnecessary. Treat colours as suggestions and tell the child that different colours are welcome.
3. THE BUILDING GUIDE PAGE
On desktop, use two columns: a calm instruction panel approximately 300 pixels wide on the left and a large 3D view on the right, with its controls directly below. Place the full building timeline underneath. On mobile, arrange the model, current instruction and controls in a sensible vertical order, with large touch targets and no horizontal scrolling of the entire page.
Initially show the complete finished model. The instruction panel contains the title, a short introduction, “Start building” and, when saved progress exists, “Continue where you left off”. Once building starts, replace the introduction with the current step:
- Step number and title.
- One or two short sentences explaining exactly what to do.
- Required pieces for that step, including stud dimensions, colour and quantity.
- One practical tip about position, orientation or attachment.
Write meaningful instructions, such as which corner stays empty or where a piece sits on the stud grid. Every instruction must describe the pieces actually displayed.
4. A REAL, INTERACTIVE 3D MODEL
Use Three.js with OrbitControls. Construct bricks as real geometry with separate studs, subtly bevelled edges, a plastic-like finish and soft contact shadows. Use an orthographic camera for a calm isometric starting view. Keep the whole model in frame and adjust the camera target to the relevant portion as the build grows.
Support mouse and finger rotation, scroll-wheel and pinch zoom, and appropriate mouse or touch panning. Add buttons for isometric view, front view, top view, zoom in, zoom out and restoring the initial view. Rotating and zooming must preserve building progress.
Include a toggleable stud grid. Label columns with letters and rows with numbers, with A1 at the front-left corner. For the most recently placed piece, show its colour, dimensions and grid position. Temporarily identify it with a clear arrow or outline.
Add “See through”: previously built pieces become translucent while pieces in the current step remain clear. “Finished model” temporarily shows the complete build; the user can then return to their exact previous building position.
5. BUILD BY STEP AND BY INDIVIDUAL PIECE
Use one coherent state for the selected build, current step, number of pieces placed within that step, playback status, speed and viewing mode. All controls operate on this state.
Support previous and next step, automatic play and pause, replaying the current step, and playback speeds of 0.5×, 1× and 2×. “One piece” places exactly the next piece. A slider lets users add and remove pieces within the current step.
During animation, earlier pieces stay in position, each new piece moves briefly down from above into its exact final position, and future pieces remain hidden. Playing a single step stops after its final piece; playing all steps continues automatically. Pausing stops construction while leaving camera controls available.
Show both “Step x of y” and progress by piece count. The horizontal timeline contains a clickable button for every step, with clear current and completed states. Jumping directly, moving backwards and replaying must always produce the same correct model. Disable the appropriate navigation controls at the first and last step. Show a short, friendly completion message at the end.
6. A CONSISTENT PIECE DATA MODEL
Store each design as inspectable data, separately from the renderer. Every piece has a unique id, building step, brick or plate type, colour, width, depth, height and position. Use whole-stud coordinates for x and z. Position refers to the front-left corner of the piece at its bottom surface; define the axes consistently.
Use one stud as the horizontal unit. A plate is 0.4 units high and a standard brick is 1.2 units high, so one brick equals three plates. All vertical positions align to the plate-height grid. Keep visible studs separate from the nominal solid volume used for placement checks.
Begin every model with a 16 by 16 stud baseplate. Keep pieces within its footprint. Pieces must attach to existing studs. Build from the bottom up and stagger seams where possible. Each step specifies the new pieces in their placement order, plus a title, instruction and tip.
Use the same data for rendering, animation, step counts, pieces needed for each step and the full inventory. Group inventory by type, dimensions and colour; a rotated 2 by 4 and a 4 by 2 represent the same part type. All displayed counts must therefore agree.
7. INVENTORY, HELP AND SAVED PROGRESS
Implement “All pieces” as a readable dialog containing the total piece count, number of distinct type/dimension/colour combinations, a small visual symbol for each part and quantities. Provide a working text-file download. Explain studs and the difference between bricks and plates. Mention that a rectangle can sometimes be filled with smaller pieces of the same height, with staggered seams.
Provide a help dialog covering rotation, zoom, playback, the grid and see-through mode. Support left and right arrow keys for steps and space for play/pause. These shortcuts must not interfere while someone is using an input field or dialog.
Save the current step and placed-piece count locally in the browser, using a separate stable storage key for each build. After a reload, users can resume their exact position. Visiting another build preserves progress in the previous one. The website must remain usable when browser storage is blocked. Accounts and a backend are unnecessary.
8. VISUAL DESIGN AND ACCESSIBILITY
Create a warm, calm and polished design: cream background around #f5f4ed, dark green text around #223e31, green buttons around #284f3e, pale green surfaces and occasional muted orange accents. Use large rounded model windows and cards, thin borders, generous spacing and clear typographic hierarchy. For example, use Manrope for headings and DM Sans for body text, with suitable system-font fallbacks.
Give each build its own soft accent colour and an authentic model preview. The 3D viewport has a light background and subtle dotted-grid texture. Controls must be understandable to a child, with readable labels, visible keyboard focus and sufficient contrast. Adapt the layout to small screens. Respect reduced-motion preferences. If WebGL is unavailable, display a helpful message and keep instructions and inventory accessible.
9. PROJECT STRUCTURE AND ADDING BUILDS
Use a static frontend project with HTML, CSS, JavaScript modules, Three.js and a simple build tool such as Vite. Keep catalogue data, model data for each build, shared rendering and building controls, styles and images clearly separated. Register all four builds in one catalogue. Adding another build should require model data and a catalogue record, rather than copying the shared application controls.
Use relative asset paths and working navigation. Bundle runtime files for publication, including the licences of libraries used. The catalogue contains fixed, fully implemented designs. Generate preview images from the same actual 3D models. Briefly state that these are original designs rather than official LEGO sets.
10. VERIFY AND DELIVER THE WORKING RESULT
Programmatically check every model for valid part dimensions, correct stud and plate-height alignment, placement within the base, unique ids, no overlapping solid volumes and attachment to previously placed pieces. Each new piece must have at least two supporting studs, or one for a 1 by 1 piece. The sum of all steps, inventory and rendered pieces must match exactly. Fix errors in the designs.
In the browser, check all four catalogue links, back navigation, every camera view, rotation and zoom, play/pause, previous/next step, one-piece placement, the slider, speed, grid, see-through mode, finished-model view, inventory dialog, download and resuming after reload. Check desktop and mobile and resolve problems you find. Report honestly which checks you performed: geometric checks do not establish physically tested strength.
Deliver all project files, four complete models, concise run/build instructions and an explanation of how to add another build. If your environment supports it, create the files, build the project and open a working preview. Make reasonable decisions where details are unspecified and continue until the result is usable.