Skip to content

Commit f8ef9bf

Browse files
yulin0629claude
andcommitted
refactor: 進一步簡化介面設計
- 移除教學檔案中的裝飾性 emoji,保留功能性 emoji - 移除快速開始區塊左邊的綠色線條 - 簡化載入和複製成功提示文字 - 移除頁尾的愛心 emoji - 整體採用更簡潔專業的設計風格 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 58fb088 commit f8ef9bf

5 files changed

Lines changed: 17 additions & 27 deletions

File tree

01-first-experience/LESSON_GUIDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
- 熟悉 Copilot Chat 介面和快捷鍵
99
- **建立使用 Copilot 的基礎認知**(為後續 Agent 學習打基礎)
1010

11-
## 📝 場景說明
11+
## 場景說明
1212
您是一位剛開始使用 GitHub Copilot 的開發者,想要了解這個工具的基本功能。這個階段**專注於傳統 Chat 功能**(0% Agent),通過簡單的對話體驗建立基礎認知,特別是 **@workspace 與一般對話的重要差異**
1313

14-
## 🛠️ 初始專案結構
14+
## 初始專案結構
1515
```
1616
01-first-experience/
1717
├── README.md (本檔案)
@@ -20,7 +20,7 @@
2020
└── script.js (空白檔案,待完成)
2121
```
2222

23-
## 🔧 事前準備:選擇正確的模型
23+
## 事前準備:選擇正確的模型
2424

2525
在開始之前,請確認使用 **GPT-4.1** 模型:
2626
1. 開啟 Copilot Chat (`Ctrl+Alt+I`)

TEACHING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 📚 GitHub Copilot 教學分支管理指南
1+
# GitHub Copilot 教學分支管理指南
22

33
## 🎯 分支策略
44

@@ -35,7 +35,7 @@ git push origin main
3535
# 或保持 gh-pages 作為教學歷史記錄
3636
```
3737

38-
## 🌐 GitHub Pages 配合
38+
## GitHub Pages 配合
3939

4040
### 主要展示頁面
4141
- **主頁**: https://yulin0629.github.io/github-copilot-tutorial/
@@ -52,7 +52,7 @@ git push origin main
5252
-`gh-pages` 分支的根目錄部署
5353
- 修改會即時反映在網站上
5454

55-
## 🚀 實際教學流程
55+
## 實際教學流程
5656

5757
### 1. 開始教學前
5858
```bash
@@ -92,7 +92,7 @@ git commit -m "demo: 場景1 待辦事項功能實作"
9292
# 學員可以即時在瀏覽器中看到效果
9393
```
9494

95-
## 📋 教學技巧
95+
## 教學技巧
9696

9797
### 保持原始檔案完整性
9898
- **main 分支**永遠保持原始狀態
@@ -114,7 +114,7 @@ git commit -m "demo: 完成購物車 Bug 修復"
114114
git push origin gh-pages
115115
```
116116

117-
## 🎭 多場次教學
117+
## 多場次教學
118118

119119
### 重置教學環境
120120
```bash
@@ -134,7 +134,7 @@ git tag -a "workshop-20250102-complete" -m "2025/01/02 教學完整成果"
134134
git push origin --tags
135135
```
136136

137-
## ⚠️ 注意事項
137+
## 注意事項
138138

139139
### 1. 分支保護
140140
- **絕不在 main 分支上直接教學**
@@ -154,7 +154,7 @@ git push origin --tags
154154
# Mac: Cmd + Shift + R
155155
```
156156

157-
## 🆘 疑難排解
157+
## 疑難排解
158158

159159
### GitHub Pages 沒更新
160160
```bash

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ <h3 style="font-size: 1.5rem; font-weight: 600; color: #1d1d1f; margin-bottom: 2
327327
</p>
328328
<div style="margin-top: 40px; padding-top: 32px; border-top: 1px solid #d1d9e0;">
329329
<p style="font-size: 0.875rem; color: #86868b;">
330-
Created with ❤️ by Yulin Wang • Powered by GitHub Copilot
330+
Created by Yulin Wang • Powered by GitHub Copilot
331331
</p>
332332
</div>
333333
</div>

script.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ async function copyAgentPrompt() {
66

77
try {
88
await navigator.clipboard.writeText(promptElement.textContent);
9-
button.textContent = '已複製';
9+
button.textContent = '已複製';
1010
button.style.background = '#48bb78';
1111

1212
setTimeout(() => {
@@ -24,7 +24,7 @@ async function copyAgentPrompt() {
2424

2525
try {
2626
document.execCommand('copy');
27-
button.textContent = '已複製';
27+
button.textContent = '已複製';
2828
button.style.background = '#48bb78';
2929

3030
setTimeout(() => {
@@ -65,7 +65,7 @@ async function loadMarkdown(path, title) {
6565

6666
// 顯示 Modal
6767
modal.style.display = 'block';
68-
body.innerHTML = '<div class="markdown-loading">📡 載入中...</div>';
68+
body.innerHTML = '<div class="markdown-loading">載入中...</div>';
6969

7070
try {
7171
// Fetch Markdown 檔案,加入防快取參數
@@ -110,7 +110,7 @@ async function loadMarkdown(path, title) {
110110
} catch (error) {
111111
body.innerHTML = `
112112
<div style="text-align: center; padding: 50px; color: #f00;">
113-
<h2>載入失敗</h2>
113+
<h2>載入失敗</h2>
114114
<p>無法載入教學內容</p>
115115
<p style="color: #666; font-size: 0.9rem;">${error.message}</p>
116116
</div>
@@ -209,7 +209,7 @@ function addCopyButtons() {
209209
await navigator.clipboard.writeText(textToCopy);
210210

211211
// 顯示複製成功
212-
button.textContent = '已複製';
212+
button.textContent = '已複製';
213213
button.classList.add('copied');
214214

215215
// 2秒後恢復
@@ -229,7 +229,7 @@ function addCopyButtons() {
229229

230230
try {
231231
document.execCommand('copy');
232-
button.textContent = '已複製';
232+
button.textContent = '已複製';
233233
button.classList.add('copied');
234234

235235
setTimeout(() => {

style.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -447,16 +447,6 @@ body {
447447
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
448448
}
449449

450-
.quick-start::before {
451-
content: '';
452-
position: absolute;
453-
top: 0;
454-
left: 0;
455-
width: 4px;
456-
height: 100%;
457-
background: linear-gradient(180deg, #34c759 0%, #30d158 100%);
458-
border-radius: 18px 0 0 18px;
459-
}
460450

461451
.quick-start h3 {
462452
color: #1a1a1a;

0 commit comments

Comments
 (0)