|
| 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> |
0 commit comments