Skip to content

Commit e3cf508

Browse files
authored
Merge pull request #69 from JSK-KML/test-main
Test main
2 parents 2eaec94 + 23bc9c9 commit e3cf508

7 files changed

Lines changed: 3656 additions & 31 deletions

File tree

AGENTS.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/.vitepress/config.mjs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export default defineConfig({
3636
{ text: 'Lab 1', link: '/labs/lab-01' },
3737
{ text: 'Lab 2', link: '/labs/lab-02' },
3838
{ text: 'Lab 3', link: '/labs/lab-03' },
39-
{ text: 'Lab 4', link: '/labs/lab-04'}
39+
{ text: 'Lab 4', link: '/labs/lab-04'},
40+
{ text: 'Lab 5', link: '/labs/lab-05'}
4041
],
4142
activeMatch: '^/labs/'
4243
},
@@ -53,7 +54,8 @@ export default defineConfig({
5354
text: 'Editor',
5455
items: [
5556
{ text: 'Python Editor', link: '/editor/python-editor' },
56-
{ text: 'Mobile Editor', link: '/editor/mobile-editor' }
57+
{ text: 'Mobile Editor', link: '/editor/mobile-editor' },
58+
{ text: 'Presentation Mode', link: '/editor/presentation-mode' }
5759
],
5860
activeMatch: '^/editor/'
5961
}
@@ -82,6 +84,10 @@ export default defineConfig({
8284
{
8385
text: 'Lab 4',
8486
link: '/labs/lab-04'
87+
},
88+
{
89+
text: 'Lab 5',
90+
link: '/labs/lab-05'
8591
}
8692

8793

@@ -147,6 +153,10 @@ export default defineConfig({
147153
{
148154
text: 'Mobile Editor',
149155
link: '/editor/mobile-editor'
156+
},
157+
{
158+
text: 'Presentation Mode',
159+
link: '/editor/presentation-mode'
150160
}
151161
]
152162
},

docs/editor/presentation-mode.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Presentation Mode
2+
3+
<button id="openFullscreen" class="fullscreen-btn">🖥️ Open Fullscreen Presentation</button>
4+
5+
<div class="info-section">
6+
<p>Click the button above to open the fullscreen presentation mode in a new window.</p>
7+
<p>Features include:</p>
8+
<ul>
9+
<li>📝 Multi-editor tabs with pre-loaded Python examples</li>
10+
<li>💡 Spotlight mode to highlight code sections</li>
11+
<li>📖 Progressive reveal for line-by-line teaching</li>
12+
<li>🎯 Clean presentation view for projectors</li>
13+
<li>📊 Floating annotations for code explanations</li>
14+
</ul>
15+
</div>
16+
17+
<style>
18+
.fullscreen-btn {
19+
margin-bottom: 20px;
20+
padding: 12px 24px;
21+
background: var(--vp-c-brand);
22+
color: white;
23+
border: none;
24+
border-radius: 8px;
25+
font-weight: 600;
26+
cursor: pointer;
27+
font-size: 16px;
28+
transition: all 0.3s ease;
29+
}
30+
31+
.fullscreen-btn:hover {
32+
background: var(--vp-c-brand-dark);
33+
transform: translateY(-2px);
34+
}
35+
36+
.info-section {
37+
max-width: 600px;
38+
margin: 0 auto;
39+
padding: 24px;
40+
background: var(--vp-c-bg-soft);
41+
border: 1px solid var(--vp-c-divider);
42+
border-radius: 12px;
43+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
44+
}
45+
46+
.info-section p {
47+
margin-bottom: 16px;
48+
line-height: 1.6;
49+
color: var(--vp-c-text-1);
50+
}
51+
52+
.info-section ul {
53+
list-style: none;
54+
padding: 0;
55+
margin: 16px 0;
56+
}
57+
58+
.info-section li {
59+
padding: 8px 0;
60+
padding-left: 24px;
61+
position: relative;
62+
color: var(--vp-c-text-2);
63+
line-height: 1.5;
64+
}
65+
66+
.info-section li:before {
67+
content: attr(data-icon);
68+
position: absolute;
69+
left: 0;
70+
font-size: 16px;
71+
}
72+
</style>
73+
74+
<script setup>
75+
function openPresentationFullscreen() {
76+
// Open in new tab instead of new window
77+
const presentationWindow = window.open(
78+
'/Python-Programming/presentation-fullscreen.html',
79+
'_blank'
80+
);
81+
82+
if (presentationWindow) {
83+
presentationWindow.focus();
84+
} else {
85+
alert('Please allow popups for this site to open presentation mode');
86+
}
87+
}
88+
89+
// Add event listener when component mounts
90+
import { onMounted } from 'vue'
91+
92+
onMounted(() => {
93+
const btn = document.getElementById('openFullscreen');
94+
if (btn) {
95+
btn.addEventListener('click', openPresentationFullscreen);
96+
}
97+
});
98+
</script>

docs/editor/python-editor.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ An interactive Python code editor that runs real Python code in your browser
1616
<div id="monaco-editor"></div>
1717
</div>
1818
<div class="buttons">
19-
<button class="run" onclick="runCode()">Run Code</button>
19+
<button class="run" onclick="runCode()">Run</button>
2020
<button class="download" onclick="downloadCode()">Download</button>
21-
<button class="fullscreen" onclick="openFullscreenTab()">Open in Full Screen</button>
21+
<button class="fullscreen" onclick="openFullscreenTab()">Full Screen</button>
2222
<button class="fullscreen" onclick="openMobileTab()">Mobile Editor</button>
23-
<button class="clear" onclick="clearOutput()">Clear Output</button>
24-
<button class="reset" onclick="resetCode()">Reset Code</button>
23+
<button class="clear" onclick="clearOutput()">Clear</button>
24+
<button class="reset" onclick="resetCode()">Reset</button>
2525
</div>
2626
<div class="result">
2727
<strong>Output:</strong>

0 commit comments

Comments
 (0)