Skip to content

Commit bc5d642

Browse files
committed
docs: refactor tutorials based on the review
1 parent d8b9639 commit bc5d642

3 files changed

Lines changed: 44 additions & 22 deletions

File tree

docs/docs/tutorials/building-your-first-app.mdx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ title: Building Your First App
44

55
# Building Your First App
66

7-
Learn how to build a simple color picker app using LiveCodes. This app will let users click a button to generate random background colors.
7+
Learn how to build a simple color generator app using LiveCodes. This app will let users click a button to generate random background colors.
8+
9+
Try the completed project below, or [open it in a new tab](https://livecodes.io/?x=id/v9dmx2p9z8w).
10+
11+
<iframe src="https://livecodes.io/?x=id/v9dmx2p9z8w" width="100%" height="400px"></iframe>
812

913
## What We'll Build
1014

@@ -153,6 +157,14 @@ Try adding these features:
153157
- Let users save their favorite colors
154158
- Add different color format options (RGB, HSL)
155159

160+
## Congratulations!
161+
162+
You've just built your color generator app with LiveCodes!
163+
164+
Compare your version with the completed project above. Did you add any personal touches?
165+
166+
**[View the completed project](https://livecodes.io/?x=id/v9dmx2p9z8w)**
167+
156168
## Next Steps
157169

158170
- [External Resources](/docs/features/external-resources) - Add libraries like color manipulation tools

docs/docs/tutorials/getting-started-guide.mdx

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ title: Getting Started Guide
66

77
This guide will walk you through creating your first project in LiveCodes.
88

9+
Try the completed project below, or [open it in a new tab](https://livecodes.io/?x=id/q6k8itvp2dv).
10+
11+
<iframe src="https://livecodes.io/?x=id/q6k8itvp2dv" width="100%" height="400px"></iframe>
12+
913
## Prerequisites
1014

1115
- A web browser (Chrome, Firefox, Safari, or Edge)
@@ -15,10 +19,10 @@ This guide will walk you through creating your first project in LiveCodes.
1519

1620
1. Navigate to [livecodes.io](https://livecodes.io)
1721
2. You'll see the editor interface with three panels:
18-
- **HTML** (left)
19-
- **CSS** (middle)
20-
- **JavaScript** (right)
21-
- **Result** (bottom)
22+
- **HTML**
23+
- **CSS**
24+
- **JavaScript**
25+
- **Result**
2226

2327
## Step 2: Create a Simple Page
2428

@@ -79,7 +83,7 @@ const greetBtn = document.getElementById('greetBtn');
7983
greetBtn.addEventListener('click', () => {
8084
const name = nameInput.value.trim();
8185
if (name) {
82-
greeting.textContent = `Hello, ${name}! `;
86+
greeting.textContent = `Hello, ${name}!`;
8387
} else {
8488
greeting.textContent = 'Hello, World!';
8589
}
@@ -95,9 +99,18 @@ The result panel automatically updates as you type. Try:
9599

96100
## Step 4: Save Your Project
97101

98-
1. Click the "Share" button in the toolbar.
99-
2. Choose **"Save"** to create a permanent URL
100-
3. Bookmark or share your project URL
102+
1. Click on the "Project" menu button in the toolbar.
103+
2. Click Save to save the project (on this device).
104+
3. You can open it later from "Project menu > Open".
105+
4. Use "Project menu > Share" to get a permanent URL to your project that you can share.
106+
107+
## Congratulations!
108+
109+
You've just built your first interactive app with LiveCodes!
110+
111+
Compare your version with the completed project above. Did you add any personal touches?
112+
113+
**[View the completed project](https://livecodes.io/?x=id/q6k8itvp2dv)**
101114

102115
## Next Steps
103116

@@ -111,5 +124,5 @@ Now that you've created your first project, explore:
111124

112125
- Use **Ctrl/Cmd + S** to manually save
113126
- Press **Ctrl/Cmd + Alt + S** to open share panel
114-
- Press **Ctrl/Cmd + Shift + P** to open the command menu
127+
- Press **Ctrl/Cmd + K** to open the command menu
115128
- Enable **Auto-save** in user settings for automatic saving

docs/sidebars.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ const sidebars: SidebarsConfig = {
1313
items: [
1414
'why',
1515
'getting-started',
16-
{
17-
type: 'category',
18-
label: 'Guides & Tutorials',
19-
link: {
20-
type: 'doc',
21-
id: 'tutorials/index',
22-
},
23-
items: [
24-
'tutorials/getting-started-guide',
25-
'tutorials/building-your-first-app',
26-
],
27-
},
2816
{
2917
type: 'category',
3018
label: 'Features',
@@ -122,6 +110,15 @@ const sidebars: SidebarsConfig = {
122110
},
123111
],
124112
},
113+
{
114+
type: 'category',
115+
label: 'Guides & Tutorials',
116+
link: {
117+
type: 'doc',
118+
id: 'tutorials/index',
119+
},
120+
items: ['tutorials/getting-started-guide', 'tutorials/building-your-first-app'],
121+
},
125122
'bookmarklet',
126123
'gh-action',
127124
'markdown-to-livecodes',

0 commit comments

Comments
 (0)