Files
KCal/public/kiosk.html
T
ort 2826a3819c Add Web Push notifications, PWA support, and full-screen tablet kiosk
Parents get a real push notification when a kid checks off a task
(false->true transitions only, fire-and-forget, degrades gracefully with
no VAPID keys configured). Dashboard is a fully installable iOS/Android
PWA; each child's kiosk link gets its own dynamic per-token manifest so
"Add to Home Screen" opens straight into their board in standalone mode.

Kiosk view is reworked for tablets: safe-area-aware full-bleed layout,
the whole task row is now tappable (previously only the 24px checkbox
was, well under Apple's touch-target minimum), and app icons are
generated by a small dependency-free PNG encoder (no image tooling
available in this environment).

Push requires real HTTPS (iOS Safari won't allow it otherwise) - README
and UNRAID.md cover VAPID setup and the HTTPS prerequisite.
2026-08-15 16:14:56 -04:00

59 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Week</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Nunito:wght@500;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/css/shared.css">
<meta name="theme-color" content="#F1F5FB">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<!--KIOSK_HEAD_TAGS-->
<style>
/* Kiosk is touch-first and has nothing to edit — bigger targets, no toolbar chrome. */
header{ justify-content: center; text-align: center; }
.toolbar{ display:none; }
.board{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.task-text{ font-size: 1.02rem; }
/* Full-bleed standalone launch: respect notches/home-indicator, and stop
iOS's rubber-band overscroll from flashing white space at the edges. */
body{
padding-top: max(24px, env(safe-area-inset-top));
padding-right: max(16px, env(safe-area-inset-right));
padding-bottom: max(60px, env(safe-area-inset-bottom));
padding-left: max(16px, env(safe-area-inset-left));
overscroll-behavior: none;
}
/* 24px checkbox alone is well under Apple's 44pt touch-target minimum —
make the whole row tappable and give the checkbox itself more room. */
.task.kiosk{ cursor: pointer; padding: 8px 4px; }
.task.kiosk input[type=checkbox]{ width: 32px; height: 32px; }
</style>
</head>
<body>
<header>
<div>
<h1 id="childName"></h1>
<div class="subtitle" id="calTitle"></div>
</div>
</header>
<div class="board" id="weekdayBoard"></div>
<div class="weekend-toggle-wrap" id="weekendWrap"></div>
<div id="emptyState" class="empty-state" style="display:none; max-width:600px; margin:60px auto;">
No calendar has been set up yet. Ask a parent to create one.
</div>
<script src="/js/calendarRender.js"></script>
<script src="/js/kiosk.js"></script>
</body>
</html>