Interactive Visual Web Design & Live Code Studio with Adobe Dreamweaver & Canva UX
π Live Web Application: https://niancode.netlify.app/
NIAN CODE STUDIO is a modern visual web design studio and bidirectional live coding environment. Engineered for students, web developers, educators, and UI designers, it bridges the gap between drag-and-drop WYSIWYG layout design and production-ready Semantic HTML5, CSS3 Grid, and Vanilla JavaScript.
Designed with the ergonomic flexibility of Canva (left rail dock & contextual formatting bar) and the professional developer power of Adobe Dreamweaver (split-view resizer, DOM tag selector breadcrumbs, document status metrics), Nian Code Studio operates completely in the browser with zero dependencies, zero build steps, and zero server requirements.
- 5 Workspace View Modes:
< /> Code: Fullscreen production code editor with line numbers, code folding, and syntax coloring.β« Split: Visual design canvas and code editor side-by-side with bidirectional live synchronization.π Design: Pure 12-column drag-and-drop CSS Grid canvas for intuitive visual prototyping.β‘ Live: Real-time sandboxed browser rendering with interactive links, forms, and JavaScript.πΊοΈ Flow: Interactive visual sitemap diagram illustrating multi-page connections and routing.
βοΈ Draggable Split-Pane Resizer:- Smooth fluid dragging (
col-resize) between Design and Code views. - Safety boundary clamps (minimum 240px width on each side) to prevent pane crushing.
- Memory persistence via
localStorageand Double-Click to Reset to a perfect 50:50 balance. - Automatic
iframe-shieldprevents mouse cursor events from dropping when hovering over live previews.
- Smooth fluid dragging (
- π·οΈ DOM Tag Selector Breadcrumb Bar:
- Located along the bottom status bar, mirroring Dreamweaver's iconic tag selector:
<body> > <main.grid> > <header.header> > <nav.nav> - Click any parent tag in the breadcrumb hierarchy to select that container instantly on the canvas and scroll to it in the code editor.
- Located along the bottom status bar, mirroring Dreamweaver's iconic tag selector:
- π Document Status & Live Metrics:
- Real-time cursor position tracking (
Ln 14, Col 5). - Canvas grid dimensions (
12 cols Γ auto rows), author metadata, W3C specification status, andUTF-8encoding.
- Real-time cursor position tracking (
- 68px Vertical Rail Dock:
- Quick 1-click access to Elements (
elem), Pre-built Layouts (tpl), Inspector & Properties (ins), Layers Hierarchy (layers), CSS Studio & Responsive (css), and Smart AI Tutor (ai).
- Quick 1-click access to Elements (
- Auto-Contextual Sliding Drawer:
- Drawer automatically opens to the Inspector tab when an element is clicked on canvas, and reverts to Elements/Layouts when clicking empty space.
- Press
[keyboard shortcut anytime to toggle the drawer open or closed.
- Floating Contextual Formatting Bar:
- Dynamically appears right above the active element with clean grouped clusters:
- Element: Semantic tag badge, navigation convert toggle, dropdown submenu switcher.
- Style: Background color palette, border width/style, corner radius presets (sharp, rounded, pill).
- Text: Bold, Italic, Underline, and Text Alignment (Left, Center, Right).
- Layout: Internal padding stepper, drop-shadow elevation presets.
- Actions: Layer positioning (Bring to Front), Duplicate, and Delete.
- Dynamically appears right above the active element with clean grouped clusters:
- W3C Semantic Standards: Generates clean, accessible, SEO-optimized markup using
<header>,<nav>,<main>,<section>,<article>,<aside>,<footer>,<figure>,<figcaption>, and<details>. - Classic
<div>Mode: Switch anytime to teach and demonstrate legacy layout structures (Div Soup) vs modern semantic standards. - Dropdown Menu Stepper Manager:
- Interactive counter controls (
[ β ]and[ + ]) to dynamically set option count. - Individual editable label inputs with remove buttons (
β) generating native<details>/<summary>semantics.
- Interactive counter controls (
- Real-Time Responsive Viewport Preview:
Desktop(100% full width)Tablet(768px iPad breakpoint)Mobile(375px iPhone breakpoint)
- Conditional
@mediaQuery Injection: Toggle responsive CSS code generation on/off with one click. - 4 CSS Output Modes:
- External CSS (
style.css): Industry standard separate stylesheet linked in<head>. - Internal CSS (
<style>): Self-contained single-file document styling. - Inline Styles (
style="..."): Direct style attributes for teaching CSS specificity. - 3-in-1 Combo: External + Internal + Inline simultaneously for comprehensive code review.
- External CSS (
- Custom Theme Tokens & Presets: Quick global color switches (
Clean Light,Dark Slate,Fresh Mint,Blueprint Blue).
- Built-in SVG mesh diagram dynamically scans page links and navigation routes across multi-page projects.
- Add, manage, and disconnect inter-page connections or external links (WhatsApp, Google Maps, Social Media).
- In addition to the modular source files (
index.html,css/studio.css,js/*.js), the project includesBlueprint Code Studio.html:- An entirely self-contained single file with all HTML, CSS, JavaScript, SVG icons, and base64 assets embedded.
- Runs completely offline from a USB drive, local folder, or LMS without Node.js, npm, or web servers.
nian-code-studio/
βββ index.html # Main modular studio application entry
βββ Blueprint Code Studio.html # 100% standalone single-file distribution (offline ready)
βββ Blueprint Code Studio.md # Comprehensive architectural specification (37 Chapters)
βββ README.md # Project overview and developer documentation
βββ .gitignore # Git ignore rules
β
βββ css/
β βββ studio.css # Main studio stylesheet & responsive layout system
β
βββ js/
β βββ config.js # Element definitions, templates & AI knowledge base
β βββ icons.js # Crisp inline SVG icon library
β βββ state.js # Reactive reactive state store & localStorage sync
β βββ generator.js # Semantic HTML5, CSS Grid & JS code generation engine
β βββ canvas.js # Interactive 12-column grid canvas & resize handles
β βββ inspector.js # Property inspector, background picker & Canva bar
β βββ app.js # Application coordinator, Dreamweaver modes & split resizer
β
βββ assets/ # Graphical assets, logo, and studio icons
β βββ favicon.ico
β βββ favicon.png
β βββ logo.png
β βββ icons/ # High-DPI UI icons
β
βββ scripts/
βββ sync_all.js # Automated bundler: syncs modular files to standalone bundle
Launch the full interactive studio in your browser with zero installation: π https://niancode.netlify.app/
Simply double-click index.html or Blueprint Code Studio.html to run in any modern web browser (Google Chrome, Microsoft Edge, Mozilla Firefox, Safari).
Using Python:
python -m http.server 8000Using Node.js:
npx serve .Then visit http://localhost:8000 in your browser.
Whenever changes are made to modular files in index.html, css/, or js/, update the standalone single-file distribution with:
node scripts/sync_all.js| Shortcut | Action |
|---|---|
V |
Switch to Select & Move Tool |
R |
Switch to Box Creation Tool |
[ |
Toggle Left Drawer Panel (Elements, Inspector, CSS) |
Ctrl + Z |
Undo last canvas action |
Ctrl + Shift + Z |
Redo last canvas action |
Ctrl + S |
Apply manual code edits from editor directly to canvas |
Delete / Backspace |
Delete currently selected element |
Double-Click Split Divider |
Reset split view panes to 50:50 balance |
Contributions, feature requests, and suggestions are welcome!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Developed with β€οΈ for web design educators, students, and modern web developers.
Live Web App: https://niancode.netlify.app/
Repository: https://github.com/syfxai/nian-code-studio