Files
Zauberwald/index.html
T
gurixandClaude Opus 4.6 20a7670ef9 feat(01-02): welcome screen UI with onboarding flow
- Implement initWelcomeScreen with companion card rendering, layout toggle, start button
- Update index.html with welcome screen structure (companion-grid, layout-toggle, start-btn)
- Add CSS for companion cards, layout buttons, start button with hover/selected/disabled states
- Selecting a companion enables start, clicking start saves progress to IndexedDB and navigates to forest

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

38 lines
1.4 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"></section>
<section id="screen-lesson" class="screen"></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>