feat: Add WFW-Aushang web app with PWA support, offline caching, and dark mode

- Created index.html for the main application interface with responsive design and dark mode support.
- Added manifest.webmanifest for PWA configuration, including app icons and display settings.
- Implemented service worker (sw.js) for offline caching of assets and network-first strategy for versioning.
- Introduced version.json to manage app versioning.
This commit is contained in:
thrhymes
2025-12-24 16:59:51 +01:00
parent 5577407f97
commit b049dded72
24 changed files with 4167 additions and 0 deletions

72
bibel-pwa/index.html Normal file
View File

@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#ffffff" />
<title>Bibel LernApp</title>
<link rel="manifest" href="manifest.json" />
<link rel="icon" href="icon-192x192.png" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- Splash Screen overlay -->
<div id="splash-screen" class="hidden">
<div class="splash-content">
<h1>Bibel LernApp</h1>
<p>Möchten Sie diese App installieren?</p>
<div class="splash-buttons">
<button id="install-btn" class="install">Installieren</button>
<button id="continue-btn" class="secondary">Weiter ohne Installation</button>
</div>
</div>
</div>
<header>
<div class="left-controls">
<select id="mode-select">
<option value="random">Zufall</option>
<option value="topic">Nach Thema</option>
<option value="book">Nach Bibelbuch</option>
</select>
<select id="topic-select" class="hidden"></select>
<select id="book-select" class="hidden"></select>
</div>
<div class="right-controls">
<span id="counter">0/0</span>
<label class="dark-toggle">
<input type="checkbox" id="dark-mode-toggle" />
<span>Dark</span>
</label>
</div>
</header>
<main>
<div class="hints">
<label><input type="checkbox" id="comment-hint" /> Kommentar</label>
<label><input type="checkbox" id="keyword-hint" /> Schlüsselwörter</label>
<label><input type="checkbox" id="theme-hint" /> Thema</label>
</div>
<div id="card-container">
<div class="card">
<div class="card-inner">
<div class="card-front">
<div class="card-symbol"></div>
<div class="card-ref"></div>
<div class="card-comment"></div>
<div class="card-keywords"></div>
</div>
<div class="card-back">
<!-- PerKartenZähler wird hier über dem Vers angezeigt -->
<div class="card-counter"></div>
<p class="card-text"></p>
</div>
</div>
</div>
</div>
<div class="buttons">
<button id="correct-btn" class="correct">Ich wusste den Text</button>
<button id="wrong-btn" class="wrong">Ich wusste ihn nicht</button>
</div>
</main>
<script src="script.js"></script>
</body>
</html>