Skip to content

Commit 8ef2a8b

Browse files
committed
feat: add design mode docs assets
1 parent 38b5a59 commit 8ef2a8b

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

docs/05-design-mode.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
title: Design Mode
33
---
44

5+
import React from 'react';
6+
import VideoPlayer from '@site/src/components/Video/player';
7+
58
**Design Mode** is a layout that hides the code editor and gives that entire space to your **Live Preview**. It is built for visual-first work: chatting with the AI while you watch changes land in the preview, editing your page directly in Live Preview Edit Mode, or testing how your design looks at different device sizes.
69

7-
<!-- Add a video here showing the toggle going from the normal layout into Design Mode and back. The editor should disappear, the Live Preview should take over the editor area, and the sidebar should stay visible. -->
10+
<VideoPlayer
11+
src="https://docs-images.phcode.dev/videos/design-mode/design-mode.mp4"
12+
/>
813

914
## Why use Design Mode
1015

@@ -20,14 +25,14 @@ There are three ways to switch to Design Mode:
2025
- Click the **fullscreen** button *(expand icon)* in the Live Preview toolbar, right after the reload button.
2126
- Choose **File > Toggle Design Mode** from the menu bar.
2227

23-
All three toggle the same mode. Use any of them again to switch back to the code editor.
28+
![Design Mode entry points](./images/designMode/design-mode-toggle.png "Design Mode entry points")
2429

25-
<!-- Add an image here showing both entry points side by side: the Control Bar Design Mode button (pen nib icon) and the Live Preview toolbar fullscreen button (expand icon), each with an arrow pointing to it. -->
30+
All three toggle the same mode. Use any of them again to switch back to the code editor.
2631

2732
## The Design Mode layout
2833

2934
When Design Mode is on, the sidebar stays visible alongside the maximized Live Preview. The recommended setup is to keep **AI Chat** open in the sidebar so you can ask for changes and watch them appear in the preview as the AI works. If the Live Preview is not already open, Phoenix Code opens it for you.
3035

31-
<!-- Add a side-by-side image here comparing the normal layout (sidebar | editor | live preview) with the Design Mode layout (sidebar | live preview filling the rest of the window). -->
36+
![Design Mode layout](./images/designMode/design-mode-layout.png "Design Mode layout")
3237

3338
To hide the sidebar too, click the **toggle sidebar** button *(double left-arrow icon)* just below the Design Mode toggle in the Control Bar. Click it again to bring the sidebar back.
1.4 MB
Loading
154 KB
Loading

0 commit comments

Comments
 (0)