I'll build an authentic Windows 3.1 desktop simulation with draggable windows, Program Manager with groups, File Manager, and several working apps. Let me start by exploring the project structure.
Let me check the exact file structure of the react95 font package via the jsdelivr API.
One more check for the font file paths in that package.
The font package exists. Now I'll build the foundation: update the HTML title and create the Windows 3.1 CSS design system with authentic 3D borders, window chrome, scrollbars, and the pixelated MS Sans Serif font.
Now the core Windows 3.1 stylesheet — 3D bevels, title bars, buttons, menus, fields, and period-accurate scrollbars.
Now the pixel-art icon library — hand-drawn 32×32 authentic Windows 3.1 icons (Program Manager, File Manager, Notepad, Paintbrush, Minesweeper, Calculator, etc.) rendered on canvas.
Now the PixelIcon renderer component that draws these bitmaps on canvas.
Now the WindowFrame component — the draggable, minimizable, maximizable window chrome with title bar, system menu, and dropdown menu bar.
Now the window-manager context and Program Manager with its group windows.
Fixing the buggy cascade function with a clean implementation.
Let me check what's actually at line 70.
The launch function takes an unused group parameter. I'll remove it.
Now I'll refactor WindowFrame to export a reusable MenuBar, since Program Manager needs to render its own menu bar inside a shared chrome. Rewriting the file cleanly.
Now updating Program Manager to render as content (menu bar + client + status bar) inside the shared chrome, with group windows nested in its client area.
Program Manager fixed. Now creating the first batch of apps: Notepad, Calculator, Clock, and the dialog boxes (About, Message Box, Run, Exit).
Restructuring Notepad to keep imports at the top and merge the split components.
Now the Calculator app.
Now the Clock app and the dialog components (About, Message Box, Run, Exit confirmation) in one batch.
Now Minesweeper — fully playable with the classic smiley button, mine counters, flood-fill reveal, and difficulty levels.
Now File Manager with the directory tree, drive bar, and file list that can actually open documents and programs.
Now the Paintbrush app with drawing tools, color palette, and flood fill — plus the MS-DOS Prompt with working commands.
Now Solitaire (full Klondike) and Control Panel.
Cleaning up the double-click foundation logic in Solitaire.
Now Control Panel with desktop color schemes and dithered patterns that actually change the desktop.
Now the main App orchestrator: boot splash, desktop, window manager state, app registry, minimized-window icons, and the MS-DOS exit screen.
All files are created. Let me verify main.tsx and then build the project.
The build succeeds. Let me fix two visual issues I spotted: Solitaire's content width (foundations could overflow) and the minimized-icons row z-index (classic minimized icons sit behind windows).
One more robustness fix: initialize the active window from state on mount (avoids StrictMode key drift), then rebuild.
Let me use a cleaner approach — compute the effective active window when none is set.
Now updating the render logic to use the computed active key.
The build is successful. The Windows 3.1 desktop simulation is complete.
What I built
Core windowing system — authentic classic gray (#c0c0c0) interface with hard-edged 3D bevels (raised/sunken inset shadows), solid navy active title bars, white inactive ones, triangle min/max buttons, and the control-menu box (click for the system menu, double-click to close — just like the original). Windows drag by title bar, focus-to-front, maximize on double-click, and minimize to captioned icons along the bottom of the desktop. Custom Win 3.1-style scrollbars with arrow buttons and dithered tracks, plus the pixelated MS Sans Serif font.
Program Manager — opens at boot with Main and Accessories group windows open, Games and Startup minimized to group icons at the bottom. Group windows are fully draggable/minimizable/maximizable inside Program Manager. Working menus: File (Run... dialog that actually launches apps by name, Exit Windows...), Options (Minimize on Use toggle), Window (Cascade/Tile, group list), and Help (opens WINHELP.TXT in Notepad, About box).
Applications, all with real functionality:
- File Manager — drive bar (A:/B: give "not ready" errors), directory tree with [+]/[−] boxes, file list; double-click to open documents in Notepad or launch programs
- Minesweeper — flood-fill reveal, flags, safe first click, timer/counter LCDs, four smiley face states, three difficulty levels that resize the window
- Solitaire — complete Klondike rules, draw 1/3 modes, clicking, double-click to foundations, all 52-card deck
- Paintbrush — pencil/line/rectangle/filled-rect/ellipse/eraser/flood-fill tools, 20-color palette with right-click background color
- Calculator, Clock (analog canvas + digital), Notepad (cut/copy/paste, word wrap, F5 time/date), MS-DOS Prompt (dir/ver/cls/help/exit...), Control Panel (really changes desktop color & dithered patterns)
Extras — Windows splash boot screen, and "Exit Windows" drops you to a genuine C:\> prompt where typing WIN restarts the session. All 17 icons are hand-drawn 32×32 pixel art rendered on canvas.
Files built: index.html, src/index.css, src/lib/icons.ts, src/components/PixelIcon.tsx, src/components/WindowFrame.tsx, src/wm.ts, src/components/ProgramManager.tsx, src/apps/Notepad.tsx, src/apps/Calculator.tsx, src/apps/ClockApp.tsx, src/apps/Dialogs.tsx, src/apps/Minesweeper.tsx, src/apps/FileManager.tsx, src/apps/Paintbrush.tsx, src/apps/DosPrompt.tsx, src/apps/Solitaire.tsx, src/apps/ControlPanel.tsx, src/App.tsx