feat: improve playground UX and fix undo/redo across lessons

- Add dice SVG icon for random template button
- Reset button now restores last loaded template in playground
- Clear editor history when switching lessons (prevents cross-lesson undo)
- Add playground link to goodbye lesson
- Center icon buttons with flexbox

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
2026-01-16 02:28:12 +01:00
parent 3a2027e825
commit f1496e7232
6 changed files with 42 additions and 7 deletions

8
public/dice.svg Normal file
View File

@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<rect x="2" y="2" width="20" height="20" rx="3" ry="3" fill="none" stroke="currentColor" stroke-width="2"/>
<circle cx="7" cy="7" r="1.5" fill="currentColor"/>
<circle cx="12" cy="12" r="1.5" fill="currentColor"/>
<circle cx="17" cy="17" r="1.5" fill="currentColor"/>
<circle cx="17" cy="7" r="1.5" fill="currentColor"/>
<circle cx="7" cy="17" r="1.5" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 448 B