Ship the Synology/Mac deployable player with curriculum mapping, stats, and resource library. Co-authored-by: Cursor <cursoragent@cursor.com>
204 lines
9.2 KiB
HTML
204 lines
9.2 KiB
HTML
<!doctype html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||
<meta name="theme-color" content="#f5a65b" />
|
||
<meta name="description" content="SSS 50周儿歌独立媒体卡、小红花打卡与十四天成长记录" />
|
||
<link rel="manifest" href="/static/manifest.webmanifest" />
|
||
<link rel="icon" href="/static/icon.svg" type="image/svg+xml" />
|
||
<link rel="stylesheet" href="/static/styles.css" />
|
||
<title>SSS 50 周打卡</title>
|
||
</head>
|
||
<body>
|
||
<div class="page-shell">
|
||
<header class="topbar">
|
||
<h1 id="week-title" class="week-top-title">第 1 周</h1>
|
||
</header>
|
||
|
||
<main>
|
||
<p id="startup-status" class="startup-status" role="status" aria-live="polite">正在连接学习记录…</p>
|
||
<section class="hero" aria-labelledby="week-title">
|
||
<div class="hero-copy">
|
||
<div class="study-line">
|
||
<p id="week-kind" class="eyebrow">今日学习</p>
|
||
<p id="study-date-label" class="study-date-label">今天 · 10月12日</p>
|
||
</div>
|
||
<p id="week-category" class="week-category">宠物 · 农场动物</p>
|
||
</div>
|
||
<div class="today-card">
|
||
<button id="identity-button" class="identity-chip" type="button" aria-label="切换当前角色">
|
||
<span id="identity-emoji" aria-hidden="true">●</span>
|
||
<span id="identity-label">选择身份</span>
|
||
</button>
|
||
<div class="today-metrics">
|
||
<span><strong id="today-checkins">0</strong><small id="day-flower-label">今日红花</small></span>
|
||
<span><strong id="today-plays">0</strong><small id="day-play-label">今日播放</small></span>
|
||
</div>
|
||
</div>
|
||
<div class="week-nav" aria-label="切换周次">
|
||
<button id="previous-week" class="soft-button" type="button">上一周</button>
|
||
<button id="current-week" class="soft-button accent" type="button">回到今天</button>
|
||
<button id="next-week" class="soft-button" type="button">下一周</button>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="playlist-control" aria-label="本周音频循环播放">
|
||
<button id="playlist-loop-button" class="playlist-loop-button" type="button" aria-pressed="false">
|
||
<span aria-hidden="true">▶</span>
|
||
<strong>一键播放</strong>
|
||
</button>
|
||
<p class="playlist-description">三首本周歌曲依次播放,锁屏后也会自动循环。</p>
|
||
<p id="playlist-loop-status" hidden aria-live="polite"></p>
|
||
<audio id="weekly-loop-player" class="weekly-loop-player" preload="none" loop playsinline webkit-playsinline aria-hidden="true"></audio>
|
||
</section>
|
||
|
||
<section id="player" class="player-section" aria-labelledby="player-heading">
|
||
<h2 id="player-heading" hidden>本周歌单</h2>
|
||
|
||
<div id="song-cards" class="song-cards" aria-label="本周歌曲"></div>
|
||
|
||
<div id="round-checkin" class="round-checkin" aria-label="整轮小红花">
|
||
<div id="round-flowers" class="round-flower-strip"></div>
|
||
<p id="round-hint" class="round-hint">三首歌都听完,才能领取一朵大红花哦</p>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="achievement-section" aria-labelledby="achievement-heading">
|
||
<div class="achievement-heading">
|
||
<div>
|
||
<p class="eyebrow">成长足迹</p>
|
||
<h2 id="achievement-heading">最近 14 天</h2>
|
||
</div>
|
||
<div class="achievement-summary">
|
||
<span aria-hidden="true">🌸</span>
|
||
<strong id="achievement-count">0</strong>
|
||
<small>朵红花</small>
|
||
</div>
|
||
</div>
|
||
<p class="achievement-copy">今天永远在右下角。点过去的日期,可以补学习、补红花。</p>
|
||
<div class="progress-calendar" aria-label="最近十四天打卡情况">
|
||
<div id="progress-weekdays" class="progress-weekdays" aria-hidden="true"></div>
|
||
<div id="progress-grid" class="progress-grid"></div>
|
||
</div>
|
||
<div class="progress-legend" aria-hidden="true">
|
||
<span><i class="legend-dot complete"></i>完成一轮</span>
|
||
<span><i class="legend-dot progress"></i>学习过</span>
|
||
<span><i class="legend-dot missed"></i>待补</span>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="plan-section" aria-labelledby="plan-heading">
|
||
<div class="section-heading">
|
||
<div>
|
||
<p class="eyebrow">课程地图</p>
|
||
<h2 id="plan-heading">50 周学习计划</h2>
|
||
</div>
|
||
<span id="plan-summary" class="summary-pill">0/50 周学过</span>
|
||
</div>
|
||
<div id="week-grid" class="week-grid"></div>
|
||
</section>
|
||
</main>
|
||
|
||
<footer>
|
||
<div>
|
||
<span>播放与打卡数据只保存在家庭服务器</span>
|
||
<span id="asset-status">正在检查视频、音频和歌词…</span>
|
||
</div>
|
||
<button id="bottom-settings-button" class="footer-settings-button" type="button" aria-label="打开家长设置">
|
||
<span aria-hidden="true">⚙</span> 设置
|
||
</button>
|
||
</footer>
|
||
</div>
|
||
|
||
<div id="identity-dialog" class="modal identity-dialog" role="dialog" aria-modal="true" aria-labelledby="identity-dialog-title" hidden>
|
||
<div class="dialog-body">
|
||
<p class="eyebrow">角色切换</p>
|
||
<h2 id="identity-dialog-title">现在是谁在使用?</h2>
|
||
<p class="dialog-copy">选择后会记住这台手机或平板,以后的播放和打卡会记录操作者。</p>
|
||
<div id="identity-options" class="identity-options"></div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="settings-dialog" class="modal settings-dialog" role="dialog" aria-modal="true" aria-labelledby="settings-dialog-title" hidden>
|
||
<form id="settings-form">
|
||
<div class="dialog-heading">
|
||
<div>
|
||
<p class="eyebrow">家长设置</p>
|
||
<h2 id="settings-dialog-title">学习与设备</h2>
|
||
</div>
|
||
<button id="close-settings" class="icon-button" type="button" value="cancel" aria-label="关闭">×</button>
|
||
</div>
|
||
|
||
<label>
|
||
开始学习日期(已固定)
|
||
<input id="start-date" name="start_date" type="date" value="2026-10-12" disabled />
|
||
<small class="field-help">课程固定从 2026 年 10 月 12 日开始,每 7 天进入下一周。</small>
|
||
</label>
|
||
<label>
|
||
同一首歌领取间隔
|
||
<select id="checkin-window" name="checkin_window_minutes">
|
||
<option value="30">30 分钟内只记一次</option>
|
||
<option value="60">1 小时内只记一次</option>
|
||
<option value="90">90 分钟内只记一次</option>
|
||
<option value="120">2 小时内只记一次</option>
|
||
</select>
|
||
</label>
|
||
<label class="mode-setting">
|
||
<input id="child-mode" name="child_mode" type="checkbox" />
|
||
<span>
|
||
<strong>儿童模式</strong>
|
||
<small>只显示一键播放和三首歌的单独音频播放。</small>
|
||
</span>
|
||
</label>
|
||
|
||
<a class="stats-link" href="/stats">
|
||
<span>
|
||
<strong>查看红花与播放统计</strong>
|
||
<small>每天、50 周、每首歌和家庭成员</small>
|
||
</span>
|
||
<span aria-hidden="true">›</span>
|
||
</a>
|
||
|
||
<a class="stats-link resource-link" href="/resources">
|
||
<span>
|
||
<strong>打开全部资源库</strong>
|
||
<small>搜索 100 首歌,播放视频音频、查看歌词</small>
|
||
</span>
|
||
<span aria-hidden="true">›</span>
|
||
</a>
|
||
|
||
<div class="dialog-actions">
|
||
<button class="primary-button" type="submit">保存设置</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
|
||
<div id="toast" class="toast" role="status" aria-live="polite"></div>
|
||
<div id="celebration" class="celebration" hidden aria-live="assertive">
|
||
<div class="spark-ring" aria-hidden="true"></div>
|
||
<div class="sparkles" aria-hidden="true">
|
||
<i>✦</i><i>✧</i><i>★</i><i>✦</i><i>✧</i><i>★</i><i>✦</i><i>✧</i><i>★</i><i>✦</i><i>✧</i><i>★</i>
|
||
</div>
|
||
<div class="petal-burst" aria-hidden="true">
|
||
<i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i>
|
||
</div>
|
||
<div class="celebration-card">
|
||
<span class="reward-kicker">奖励到手</span>
|
||
<span class="celebration-flower" aria-hidden="true">🌸</span>
|
||
<strong id="celebration-title">获得一朵小红花!</strong>
|
||
<p id="celebration-copy">认真听完啦,真棒!</p>
|
||
</div>
|
||
</div>
|
||
<script src="/static/app.js" defer></script>
|
||
<script>
|
||
window.setTimeout(function () {
|
||
var status = document.getElementById("startup-status");
|
||
if (status && !status.hidden) {
|
||
status.textContent = "页面未能完成启动。请关闭此页面后重新打开;如果仍然出现,请告诉家长。";
|
||
}
|
||
}, 7000);
|
||
</script>
|
||
</body>
|
||
</html>
|