Files
Zauberwald/index.html
T
gurixandClaude Opus 4.6 57a929bc1a feat(02-05): add companion greeting to forest and avatar to lesson screen
- Add forest-greeting companion area in HTML with avatar + text
- Add lesson-companion area in HTML above letter area
- Wire getGreeting() call for returning users in app.ts
- Show companion avatar in lesson screen via getProgress lookup
- Fix pre-existing noUncheckedIndexedAccess errors in fallbacks.ts (Rule 3)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 12:15:45 +02:00

64 lines
2.5 KiB
HTML

<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Zauberwald</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&family=Nunito:wght@400;600&display=swap"
rel="stylesheet"
/>
</head>
<body>
<section id="screen-welcome" class="screen screen--active">
<div class="welcome">
<h1>Willkommen im Zauberwald!</h1>
<p class="welcome__subtitle">Waehle deine Begleitfigur:</p>
<div class="welcome__companions" id="companion-grid">
<!-- Filled dynamically by screens.ts -->
</div>
<p class="welcome__layout-label">Tastatur-Layout:</p>
<div class="welcome__layout-toggle" id="layout-toggle">
<button class="layout-btn layout-btn--active" data-layout="de">DE</button>
<button class="layout-btn" data-layout="ch">CH</button>
</div>
<button class="welcome__start-btn" id="start-btn" disabled>Los geht's!</button>
</div>
</section>
<section id="screen-forest" class="screen">
<div class="forest">
<h1 class="forest__title">Dein Zauberwald</h1>
<div id="forest-greeting" class="companion-area" style="display:none">
<img id="forest-greeting-avatar" class="companion-area__avatar" src="" alt="">
<p id="forest-greeting-text" class="companion-area__text"></p>
</div>
<div class="forest__level-map" id="level-map">
<!-- Level cards rendered dynamically -->
</div>
<button class="forest__continue-btn" id="continue-btn">Weiter ueben</button>
</div>
</section>
<section id="screen-lesson" class="screen">
<div class="lesson">
<button class="lesson__back-btn" id="lesson-back-btn">&#x2190; Zurueck</button>
<div id="lesson-companion" class="companion-area" style="display:none">
<img id="lesson-companion-avatar" class="companion-area__avatar" src="" alt="">
<p id="lesson-companion-text" class="companion-area__text"></p>
</div>
<div class="lesson__letter-area" id="letter-area">
<!-- Current letter appears here -->
</div>
<div class="lesson__keyboard" id="lesson-keyboard">
<!-- Keyboard rendered here -->
</div>
</div>
</section>
<section id="screen-reward" class="screen"></section>
<section id="screen-parent" class="screen"></section>
<script type="module" src="/src/main.ts"></script>
</body>
</html>