I'll build a portfolio workspace builder — a canvas where you add, customize, and arrange blocks with a minimalist aesthetic. Let me start by exploring the project.
Now I'll build the app. Starting with the data model and default workspace.
Now the state store with undo/redo history and localStorage persistence.
Now the inline-editable primitive and block renderer.
Now the canvas with drag-to-reorder and drag-to-resize.
Now the inspector panel with all customization controls.
Now updating the store and BlockView to use the partial patch type.
Now the block library sidebar and the top bar.
Now the App shell tying it together, plus fonts and global styles.
A few refinements: visibility toggle support and preview hiding.
Slate — a barebones, minimalist portfolio workspace builder. Build succeeds.
Structure
src/types.ts — block/theme model, 15 block kinds, 5 theme presets, block factories, demo seed data
src/store.ts — workspace state with undo/redo history, localStorage autosave, add/remove/duplicate/move/nudge
src/components/Canvas.tsx — 12-column grid canvas with drag-to-reorder, drag-to-resize, selection chrome
src/components/BlockView.tsx — renderer for every block type with inline editing
src/components/Editable.tsx — caret-safe contentEditable primitive
src/components/Library.tsx / Inspector.tsx / Topbar.tsx / ui.tsx
What you can do
- Blocks: Profile, Heading, Text, Quote, Project Card, Note, Stat, Tag Cloud, Image, Gallery, Link List, Timeline, Button, Divider, Spacer — plus one-click patterns (intro row, work pair, metrics, contact).
- Elements inside cards: every list-type block (links, tags, timeline, gallery, project tags) has an element editor to add, reorder, and delete individual rows.
- Per-block styling: column span 1–12 (slider + ¼/⅓/½/⅔/full presets), fill (none / surface / outline / accent / invert), padding, radius, alignment, text scale, weight, monospace, uppercase, accent color, visibility.
- Direct manipulation: click any text on the canvas to edit it in place, drag the ⠿ handle to reorder with a live insertion line, drag the right edge pill to resize by columns.
- Theme: 5 presets (Paper, Carbon, Sand, Blueprint, Noir) plus full custom palette pickers, font family, page width, gutter, page frame, and column guides.
- Workflow: undo/redo (⌘Z / ⇧⌘Z), ⌘D duplicate, ⌫ delete, P for distraction-free preview, panel toggles, JSON export/import, and autosave.
Files built: src/types.ts, src/store.ts, src/components/Editable.tsx, src/components/BlockView.tsx, src/components/Canvas.tsx, src/components/ui.tsx, src/components/Inspector.tsx, src/components/Library.tsx, src/components/Topbar.tsx, src/App.tsx, src/index.css, index.html