Initial commit: SSS 50-week LAN check-in app.

Ship the Synology/Mac deployable player with curriculum mapping, stats, and resource library.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
optimxandCursor committed 2026-11-04 23:11:42 +08:00
commit dd281e1bd0
27 files changed
+9416

No files matched your search

+576
View File
@@ -0,0 +1,576 @@
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.resource-shell {
width: calc(100% - 32px);
max-width: 1240px;
width: min(1240px, calc(100% - 32px));
margin: 0 auto;
padding-bottom: 54px;
}
.resource-topbar {
min-height: 168px;
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 24px;
}
.resource-topbar > div {
text-align: center;
}
.resource-topbar h1 {
margin: 0;
font-size: 48px;
font-size: clamp(38px, 6vw, 64px);
}
.resource-topbar p:last-child {
margin: 8px 0 0;
color: var(--muted);
font-size: 13px;
}
.back-link {
justify-self: start;
padding: 10px 14px;
border-radius: 13px;
color: var(--ink);
background: rgba(255, 253, 248, 0.78);
text-decoration: none;
font-weight: 800;
}
.resource-total {
justify-self: end;
padding: 9px 13px;
border-radius: 999px;
color: var(--sage-dark);
background: var(--sage-soft);
font-size: 12px;
font-weight: 800;
}
.resource-summary {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
.resource-summary article {
min-height: 104px;
display: flex;
align-items: center;
gap: 15px;
padding: 18px;
border: 1px solid rgba(255, 255, 255, 0.9);
border-radius: 22px;
background: rgba(255, 253, 248, 0.84);
box-shadow: 0 12px 30px rgba(78, 62, 38, 0.06);
}
.resource-summary article:nth-child(2) { background: rgba(255, 241, 220, 0.86); }
.resource-summary article:nth-child(3) { background: rgba(223, 238, 231, 0.84); }
.resource-summary article:nth-child(4) { background: rgba(255, 230, 230, 0.72); }
.summary-icon {
width: 47px;
height: 47px;
flex: 0 0 47px;
display: grid;
place-items: center;
border-radius: 15px;
color: white;
background: var(--peach);
font-size: 21px;
}
.resource-summary small,
.resource-summary strong {
display: block;
}
.resource-summary small {
color: var(--muted);
}
.resource-summary strong {
margin-top: 6px;
font-size: 25px;
}
.resource-summary em {
color: var(--muted);
font-size: 12px;
font-style: normal;
}
.resource-toolbar {
position: sticky;
top: 10px;
z-index: 8;
display: grid;
grid-template-columns: minmax(280px, 1fr) 160px 160px;
gap: 10px;
margin: 26px 0;
padding: 11px;
border: 1px solid rgba(255, 255, 255, 0.9);
border-radius: 20px;
background: rgba(249, 245, 235, 0.92);
box-shadow: 0 12px 34px rgba(78, 62, 38, 0.1);
backdrop-filter: blur(12px);
}
.resource-search {
display: flex;
align-items: center;
gap: 8px;
padding-left: 12px;
border-radius: 13px;
background: white;
}
.resource-toolbar input,
.resource-toolbar select {
width: 100%;
min-height: 47px;
border: 1px solid var(--border);
border-radius: 13px;
color: var(--ink);
background: white;
}
.resource-search input {
padding: 10px 12px 10px 0;
border: 0;
outline: 0;
}
.resource-toolbar select {
padding: 10px 12px;
}
.resource-layout {
display: block;
}
.catalog-panel {
border: 1px solid rgba(255, 255, 255, 0.88);
border-radius: 27px;
background: rgba(255, 253, 248, 0.78);
box-shadow: 0 14px 38px rgba(78, 62, 38, 0.07);
}
.catalog-panel {
padding: 22px;
}
.catalog-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
}
.catalog-heading h2 {
margin: 2px 0 0;
font-size: 28px;
}
.result-count {
color: var(--muted);
font-size: 12px;
}
.resource-list {
display: grid;
gap: 9px;
max-width: 940px;
margin: 0 auto;
}
.resource-item {
overflow: hidden;
border: 1px solid var(--border);
border-radius: 20px;
background: rgba(255, 255, 255, 0.68);
transition: 180ms ease;
}
.resource-item.expanded {
border-color: rgba(245, 166, 91, 0.62);
background: #fff8eb;
box-shadow: 0 12px 30px rgba(217, 121, 53, 0.12);
}
.resource-card {
width: 100%;
min-width: 0;
display: grid;
grid-template-columns: 62px minmax(0, 1fr) auto;
align-items: center;
gap: 13px;
padding: 13px;
border: 0;
border-radius: 19px;
color: var(--ink);
background: rgba(255, 255, 255, 0.68);
text-align: left;
transition: 160ms ease;
}
.resource-card:hover,
.resource-card.selected {
background: #fff8eb;
box-shadow: none;
transform: none;
}
.resource-item.expanded .resource-card {
border-radius: 19px 19px 0 0;
border-bottom: 1px solid rgba(217, 121, 53, 0.14);
}
.resource-number {
min-height: 48px;
display: grid;
place-items: center;
border-radius: 14px;
color: #9a5828;
background: #ffe9c9;
font-size: 13px;
font-weight: 900;
}
.resource-card-copy,
.resource-card-copy strong,
.resource-card-copy small {
display: block;
min-width: 0;
}
.resource-card-copy strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.resource-card-copy small {
margin-top: 4px;
color: var(--muted);
}
.asset-badges {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin-top: 8px;
}
.asset-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 7px;
border-radius: 999px;
color: var(--muted);
background: rgba(37, 50, 45, 0.05);
font-size: 9px;
font-weight: 800;
}
.asset-badge i {
width: 6px;
height: 6px;
border-radius: 50%;
background: #c9beb4;
}
.asset-badge.ready {
color: var(--sage-dark);
background: var(--sage-soft);
}
.asset-badge.ready i { background: var(--sage); }
.asset-badge.missing { color: #a95b62; background: #ffe7e8; }
.asset-badge.missing i { background: #dc717a; }
.resource-arrow {
color: var(--muted);
font-size: 24px;
transition: transform 180ms ease;
}
.resource-item.expanded .resource-arrow {
transform: rotate(180deg);
}
.resource-empty {
display: grid;
justify-items: center;
padding: 58px 20px;
color: var(--muted);
text-align: center;
}
.resource-empty[hidden] { display: none; }
.resource-empty > span { font-size: 38px; }
.resource-empty strong { margin-top: 10px; color: var(--ink); }
.resource-empty p { margin-bottom: 0; }
.resource-inline-viewer {
margin: 12px;
overflow: hidden;
border: 1px solid rgba(37, 50, 45, 0.08);
border-radius: 22px;
background: rgba(255, 253, 248, 0.96);
animation: resource-unfold 210ms ease-out both;
}
.resource-inline-tabs {
border-bottom: 1px solid rgba(37, 50, 45, 0.06);
}
.resource-inline-viewer .song-media-shell {
width: 100%;
}
.resource-inline-viewer .center-play:disabled,
.resource-inline-viewer .audio-toggle:disabled {
cursor: not-allowed;
opacity: 0.6;
}
.resource-inline-note {
margin: 0;
padding: 12px 16px;
color: var(--sage-dark);
background: var(--sage-soft);
font-size: 11px;
line-height: 1.5;
text-align: center;
}
@keyframes resource-unfold {
from { opacity: 0; transform: translateY(-8px); }
to { opacity: 1; transform: translateY(0); }
}
.resource-viewer {
position: sticky;
top: 102px;
overflow: hidden;
}
.viewer-heading {
padding: 25px 25px 20px;
}
.viewer-heading h2 {
margin: 9px 0 6px;
font-size: clamp(25px, 3vw, 37px);
line-height: 1.08;
}
.viewer-heading p {
margin: 0;
color: var(--muted);
}
.resource-tabs {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 6px;
padding: 8px;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
background: rgba(245, 241, 231, 0.84);
}
.resource-tab {
min-height: 43px;
border-radius: 12px;
color: var(--muted);
background: transparent;
font-size: 12px;
font-weight: 800;
}
.resource-tab.selected {
color: var(--peach-dark);
background: white;
box-shadow: 0 5px 14px rgba(78, 62, 38, 0.08);
}
.resource-panel {
min-height: 360px;
}
.info-panel {
padding: 23px;
}
.viewer-note {
margin: 0 0 18px;
padding: 13px 14px;
border-radius: 15px;
color: var(--sage-dark);
background: var(--sage-soft);
font-size: 12px;
line-height: 1.55;
}
.file-list {
display: grid;
gap: 10px;
margin: 0;
}
.file-list div {
padding: 13px 14px;
border: 1px solid var(--border);
border-radius: 15px;
background: rgba(255, 255, 255, 0.6);
}
.file-list dt {
color: var(--muted);
font-size: 10px;
font-weight: 800;
}
.file-list dd {
margin: 5px 0 0;
overflow-wrap: anywhere;
font-size: 12px;
font-weight: 700;
}
.media-preview,
.lyrics-preview {
background: #202621;
}
.media-preview video {
width: 100%;
min-height: 360px;
display: block;
background: #111;
}
.media-preview audio {
width: calc(100% - 42px);
margin: 142px 21px 0;
}
.lazy-placeholder {
min-height: 360px;
display: grid;
place-content: center;
justify-items: center;
padding: 34px;
color: white;
background: radial-gradient(circle at top right, rgba(245,166,91,.42), transparent 42%), #25322d;
text-align: center;
}
.lazy-placeholder > span {
width: 68px;
height: 68px;
display: grid;
place-items: center;
margin-bottom: 16px;
border-radius: 23px;
color: white;
background: var(--peach);
font-size: 28px;
}
.lazy-placeholder p {
max-width: 290px;
margin: 8px 0 19px;
color: rgba(255,255,255,.72);
font-size: 12px;
line-height: 1.55;
}
.lazy-placeholder .primary-button:disabled {
opacity: .5;
}
.audio-lazy {
background: radial-gradient(circle at top right, rgba(118,168,150,.4), transparent 42%), #25322d;
}
.lyrics-preview {
display: grid;
place-items: center;
min-height: 360px;
padding: 12px;
background: #f0ece3;
}
.lyrics-preview img {
max-width: 100%;
max-height: 68vh;
border-radius: 12px;
}
.resource-footer {
display: flex;
justify-content: space-between;
gap: 18px;
padding: 38px 4px 0;
color: var(--muted);
font-size: 12px;
}
@media (max-width: 900px) {
.resource-summary { grid-template-columns: repeat(2, 1fr); }
.resource-layout { grid-template-columns: 1fr; }
.resource-viewer { position: static; order: -1; scroll-margin-top: 96px; }
.resource-panel { min-height: 330px; }
.lazy-placeholder, .media-preview video { min-height: 330px; }
}
@media (max-width: 620px) {
.resource-shell { width: calc(100% - 22px); max-width: 580px; width: min(calc(100% - 22px), 580px); }
.resource-topbar { min-height: 150px; grid-template-columns: 1fr auto; }
.resource-topbar > div { grid-column: 1 / -1; grid-row: 1; }
.back-link { grid-column: 1; grid-row: 2; }
.resource-total { grid-column: 2; grid-row: 2; }
.resource-topbar h1 { font-size: 36px; }
.resource-summary { gap: 8px; }
.resource-summary article { min-height: 89px; gap: 10px; padding: 13px; border-radius: 18px; }
.summary-icon { width: 39px; height: 39px; flex-basis: 39px; border-radius: 12px; font-size: 17px; }
.resource-summary strong { font-size: 21px; }
.resource-toolbar { top: 6px; grid-template-columns: repeat(2, 1fr); margin: 18px 0; }
.resource-search { grid-column: 1 / -1; }
.catalog-panel { padding: 13px; border-radius: 22px; }
.resource-card { grid-template-columns: 52px minmax(0, 1fr) 22px; padding: 11px; }
.resource-number { min-height: 45px; }
.resource-arrow { display: block; text-align: center; }
.asset-badge { font-size: 8px; }
.resource-inline-viewer { margin: 7px; border-radius: 18px; }
.resource-inline-note { padding: 10px 12px; font-size: 10px; }
.resource-viewer { border-radius: 22px; }
.viewer-heading { padding: 21px 18px 17px; }
.resource-tabs { gap: 3px; padding: 6px; }
.resource-tab { font-size: 11px; }
.resource-panel, .lazy-placeholder, .media-preview video { min-height: 290px; }
.info-panel { padding: 17px; }
.media-preview audio { margin-top: 116px; }
.resource-footer { flex-direction: column; }
}