Add browser playtest and improve library, media and input
Bundle web bootstrap, icons, local font fallbacks and hosting instructions. Add optimized WebP/MP3 packaging, asset checks and a browser narration regression tool. Support browser audio handoff and ad-free explained hints. Refresh the responsive bookshelf and reduce unnecessary app, narration and paper repaint work. Preserve deliberate page swipes while tolerating small mouse movements during cell and navigation clicks. Validation: all 77 Flutter tests pass; shell, JavaScript and Python scripts parse; locale and web manifests are valid JSON; git diff --check passes.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 959 B |
@@ -0,0 +1,18 @@
|
||||
{{flutter_js}}
|
||||
{{flutter_build_config}}
|
||||
|
||||
_flutter.loader.load({
|
||||
onEntrypointLoaded: async function (engineInitializer) {
|
||||
try {
|
||||
const appRunner = await engineInitializer.initializeEngine({
|
||||
hostElement: document.getElementById('lumen-player')
|
||||
});
|
||||
await appRunner.runApp();
|
||||
document.getElementById('loading')?.remove();
|
||||
} catch (error) {
|
||||
document.getElementById('loading-message').textContent =
|
||||
'The bookshelf could not open. Check your connection and reload the page.';
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
});
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 108 108">
|
||||
<path fill="#274956" opacity="1" d="M0,0h108v108h-108z"/>
|
||||
<path fill="#E0B568" opacity="0.5" d="M58,34L7,19L7,49z"/>
|
||||
<path fill="#F3E7CC" opacity="1" d="M53,45L68,45L76,87L45,87z"/>
|
||||
<path fill="#A35C48" opacity="1" d="M49,65L72,65L73,73L48,73z"/>
|
||||
<path fill="#E0B568" opacity="1" d="M51,31h19v12h-19z"/>
|
||||
<path fill="#172F3A" opacity="1" d="M46,30L61,18L76,30z M47,43h27v5h-27z M57,77h8v10h-8z"/>
|
||||
<path fill="#8A9F9B" opacity="1" d="M14,92h80v2h-80z M19,98h38v1h-38z M68,98h22v1h-22z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 556 B |
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<base href="$FLUTTER_BASE_HREF">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||
<meta name="theme-color" content="#314345">
|
||||
<meta name="description" content="Explore Lumen’s illustrated stories, recorded voices and picture puzzles.">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||
<link rel="icon" type="image/svg+xml" href="icons/lumen.svg?v=2">
|
||||
<link rel="icon" type="image/png" sizes="48x48" href="favicon.png?v=2">
|
||||
<link rel="apple-touch-icon" href="icons/lumen-180.png?v=2">
|
||||
<link rel="manifest" href="manifest.json">
|
||||
<title>Lumen — browser playtest</title>
|
||||
<style>
|
||||
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #314345; color: #314345; }
|
||||
body { display: flex; align-items: center; justify-content: center; height: 100dvh; }
|
||||
#lumen-player { flex: none; position: relative; width: 100%; height: 100%; overflow: hidden; contain: layout paint style; user-select: none; -webkit-user-select: none; }
|
||||
@media (min-width: 1280px) and (min-aspect-ratio: 1/1) {
|
||||
#lumen-player { width: min(100vw, 1280px); height: min(100dvh, 800px); }
|
||||
}
|
||||
@media (pointer: coarse) { #lumen-player { width: 100%; height: 100%; } }
|
||||
#loading { position: fixed; inset: 0; z-index: 1; box-sizing: border-box; display: grid; place-content: center; padding: 28px; text-align: center; font: 18px/1.6 Georgia, serif; background: #f7f0df; }
|
||||
h1 { font-size: 42px; font-weight: normal; margin: 0; }
|
||||
p { max-width: 30em; }
|
||||
a { color: inherit; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main id="lumen-player" aria-label="Lumen"></main>
|
||||
<div id="loading" role="status" aria-live="polite">
|
||||
<h1>Lumen</h1>
|
||||
<p id="loading-message">Opening the bookshelf…</p>
|
||||
<p>Stories, voices and picture puzzles.<br>Your place is saved in this browser.</p>
|
||||
</div>
|
||||
<noscript>Please enable JavaScript to open Lumen.</noscript>
|
||||
<script src="flutter_bootstrap.js" async></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Lumen — browser playtest",
|
||||
"short_name": "Lumen",
|
||||
"start_url": ".",
|
||||
"scope": ".",
|
||||
"display": "standalone",
|
||||
"background_color": "#f7f0df",
|
||||
"theme_color": "#314345",
|
||||
"description": "Illustrated stories, recorded voices and picture puzzles.",
|
||||
"icons": [{"src": "icons/lumen-192.png", "sizes": "192x192", "type": "image/png"}, {"src": "icons/lumen-512.png", "sizes": "512x512", "type": "image/png"}]
|
||||
}
|
||||
Reference in New Issue
Block a user