Add GitHub Actions workflow and update docker-compose to use GHCR
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
23b24b5d21
16 files changed
+4844
No files matched your search
@@ -0,0 +1,394 @@
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
:root {
|
||||
--bg: #fdf6e3;
|
||||
--card: #ffffff;
|
||||
--ink: #2d3142;
|
||||
--accent: #4f86f7;
|
||||
--accent-dark: #3a6fd8;
|
||||
--good: #2e9e5b;
|
||||
--good-bg: #e3f6ec;
|
||||
--bad: #d64550;
|
||||
--bad-bg: #fdeaec;
|
||||
--gold: #f6b93b;
|
||||
--muted: #8a8fa3;
|
||||
--radius: 18px;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Comic Sans MS", sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.view {
|
||||
max-width: 640px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem 1.25rem 4rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.app-title { font-size: 2.4rem; margin-bottom: 0.5rem; }
|
||||
.subtitle { font-size: 1.25rem; color: var(--muted); margin-bottom: 2rem; }
|
||||
.hint { color: var(--muted); margin: 1rem 0; }
|
||||
.error { color: var(--bad); margin: 0.5rem 0; }
|
||||
|
||||
/* ---------- kid picker ---------- */
|
||||
.kid-cards {
|
||||
display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
|
||||
margin-bottom: 2.5rem;
|
||||
}
|
||||
.kid-card {
|
||||
background: var(--card);
|
||||
border: 3px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
padding: 1.5rem 2rem;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 12px rgba(45, 49, 66, 0.08);
|
||||
transition: transform 0.1s, border-color 0.1s;
|
||||
min-width: 140px;
|
||||
}
|
||||
.kid-card:hover { transform: translateY(-3px) scale(1.03); border-color: var(--accent); }
|
||||
.kid-card .avatar { display: block; font-size: 3rem; margin-bottom: 0.5rem; }
|
||||
|
||||
/* ---------- kid home ---------- */
|
||||
.back-btn {
|
||||
display: inline-block;
|
||||
background: none; border: none; color: var(--muted);
|
||||
font-size: 1rem; cursor: pointer; margin-bottom: 1rem;
|
||||
}
|
||||
#kid-greeting { font-size: 2rem; margin: 1rem 0; clear: both; }
|
||||
|
||||
.week-card {
|
||||
background: var(--card); border-radius: var(--radius);
|
||||
padding: 1.25rem; margin-bottom: 2rem;
|
||||
box-shadow: 0 4px 12px rgba(45, 49, 66, 0.08);
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
.week-card .mastery-dots {
|
||||
margin-top: 0.75rem; line-height: 1.9; letter-spacing: 2px; font-size: 1.1rem;
|
||||
word-break: break-all; overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.big-actions { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
|
||||
.big-btn {
|
||||
font-size: 1.6rem; font-weight: 700; font-family: inherit;
|
||||
padding: 1.25rem 2rem; width: 100%; max-width: 380px;
|
||||
border: none; border-radius: var(--radius); cursor: pointer;
|
||||
color: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
|
||||
transition: transform 0.05s;
|
||||
}
|
||||
.big-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,0.15); }
|
||||
.big-btn.practice { background: var(--accent); }
|
||||
.big-btn.test { background: var(--gold); color: var(--ink); }
|
||||
.big-btn:disabled { background: #ccc; color: #888; cursor: not-allowed; box-shadow: none; }
|
||||
|
||||
/* ---------- practice / test ---------- */
|
||||
.progress-label { color: var(--muted); font-weight: 700; margin: 0.5rem 0; clear: both; }
|
||||
.progress-track {
|
||||
height: 12px; background: #e8e2d0; border-radius: 6px; overflow: hidden; margin-bottom: 1.5rem;
|
||||
}
|
||||
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }
|
||||
.progress-fill.test-fill { background: var(--gold); }
|
||||
|
||||
.word-card {
|
||||
background: var(--card); border-radius: var(--radius);
|
||||
padding: 2rem 1.5rem; box-shadow: 0 4px 12px rgba(45, 49, 66, 0.08);
|
||||
}
|
||||
.speak-btn {
|
||||
font-size: 1.2rem; font-family: inherit; font-weight: 700;
|
||||
background: var(--good-bg); color: var(--good);
|
||||
border: 2px solid var(--good); border-radius: 999px;
|
||||
padding: 0.6rem 1.4rem; cursor: pointer; margin-bottom: 1.25rem;
|
||||
}
|
||||
.prompt { font-size: 1.1rem; color: var(--muted); margin-bottom: 1rem; }
|
||||
|
||||
.spell-input {
|
||||
display: block; width: 100%; max-width: 420px; margin: 0 auto 1rem;
|
||||
font-size: 2rem; font-family: inherit; text-align: center;
|
||||
letter-spacing: 4px; padding: 0.6rem;
|
||||
border: 3px solid var(--accent); border-radius: 12px;
|
||||
outline: none;
|
||||
}
|
||||
.spell-input:focus { border-color: var(--accent-dark); }
|
||||
|
||||
.check-btn {
|
||||
font-size: 1.3rem; font-weight: 700; font-family: inherit;
|
||||
background: var(--accent); color: #fff; border: none;
|
||||
border-radius: 12px; padding: 0.75rem 2.5rem; cursor: pointer;
|
||||
box-shadow: 0 4px 0 var(--accent-dark);
|
||||
}
|
||||
.check-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }
|
||||
|
||||
/* letter-diff feedback */
|
||||
.feedback { min-height: 1rem; margin-bottom: 1rem; font-size: 1.2rem; }
|
||||
.feedback .banner {
|
||||
display: inline-block; padding: 0.5rem 1.25rem; border-radius: 999px;
|
||||
font-weight: 700; margin-bottom: 0.75rem;
|
||||
}
|
||||
.feedback .banner.good { background: var(--good-bg); color: var(--good); }
|
||||
.feedback .banner.bad { background: var(--bad-bg); color: var(--bad); }
|
||||
.diff-line { font-size: 1.9rem; letter-spacing: 4px; margin: 0.4rem 0; font-weight: 700; }
|
||||
.diff-line .label { font-size: 0.85rem; letter-spacing: 0; color: var(--muted); display: block; font-weight: 400; }
|
||||
.ltr-ok { color: var(--ink); }
|
||||
.ltr-bad { color: var(--bad); text-decoration: line-through; }
|
||||
.ltr-fix { color: var(--good); background: var(--good-bg); border-radius: 6px; padding: 0 2px; }
|
||||
.study-word {
|
||||
font-size: 2.6rem; font-weight: 800; letter-spacing: 6px; margin: 0.5rem 0;
|
||||
}
|
||||
.countdown { color: var(--muted); }
|
||||
|
||||
.done-card {
|
||||
background: var(--card); border-radius: var(--radius);
|
||||
padding: 2.5rem 1.5rem; box-shadow: 0 4px 12px rgba(45, 49, 66, 0.08);
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
.done-card .big-score { font-size: 3rem; font-weight: 800; margin: 0.75rem 0; }
|
||||
.done-card ul { list-style: none; margin: 1rem 0; }
|
||||
.done-card li { margin: 0.3rem 0; }
|
||||
.done-card button {
|
||||
font-size: 1.2rem; font-weight: 700; font-family: inherit;
|
||||
background: var(--accent); color: #fff; border: none;
|
||||
border-radius: 12px; padding: 0.7rem 2rem; cursor: pointer; margin-top: 1rem;
|
||||
}
|
||||
|
||||
/* ---------- parent dashboard ---------- */
|
||||
.parent { text-align: left; }
|
||||
.parent h1 { text-align: center; margin-bottom: 1.5rem; clear: both; }
|
||||
.parent h2 { margin: 2rem 0 0.75rem; font-size: 1.3rem; border-bottom: 2px solid #e8e2d0; padding-bottom: 0.3rem; }
|
||||
|
||||
#pin-gate { text-align: center; }
|
||||
#pin-form input {
|
||||
font-size: 1.5rem; text-align: center; width: 180px; padding: 0.5rem;
|
||||
border: 2px solid var(--accent); border-radius: 10px; margin-right: 0.5rem;
|
||||
}
|
||||
#pin-form button, .inline-form button, #list-form button, .row-actions button {
|
||||
font-size: 1rem; font-family: inherit; font-weight: 700;
|
||||
background: var(--accent); color: #fff; border: none;
|
||||
border-radius: 10px; padding: 0.6rem 1.2rem; cursor: pointer;
|
||||
}
|
||||
button.secondary { background: var(--muted); }
|
||||
button.danger { background: var(--bad); }
|
||||
|
||||
.inline-form { display: flex; gap: 0.5rem; margin: 0.75rem 0; flex-wrap: wrap; }
|
||||
.inline-form input, .inline-form select, #list-form input, #list-form textarea {
|
||||
font-size: 1rem; font-family: inherit; padding: 0.55rem;
|
||||
border: 2px solid #d8d2c0; border-radius: 10px;
|
||||
}
|
||||
.inline-form input { flex: 1; min-width: 140px; }
|
||||
|
||||
.item-row {
|
||||
display: flex; align-items: center; gap: 0.75rem;
|
||||
background: var(--card); border-radius: 12px; padding: 0.75rem 1rem; margin: 0.5rem 0;
|
||||
box-shadow: 0 2px 6px rgba(45, 49, 66, 0.06);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.item-row .grow { flex: 1; min-width: 120px; }
|
||||
.item-row select { padding: 0.4rem; border-radius: 8px; border: 2px solid #d8d2c0; font-family: inherit; }
|
||||
.item-row button {
|
||||
font-size: 0.9rem; font-family: inherit; border: none; border-radius: 8px;
|
||||
padding: 0.4rem 0.9rem; cursor: pointer; color: #fff; background: var(--accent);
|
||||
}
|
||||
|
||||
#list-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; }
|
||||
#list-editor-details summary { cursor: pointer; font-weight: 700; margin: 0.75rem 0; }
|
||||
.row-actions { display: flex; gap: 0.5rem; }
|
||||
|
||||
.results-student { margin-bottom: 1.25rem; }
|
||||
.results-student h3 { margin-bottom: 0.4rem; }
|
||||
table.results {
|
||||
width: 100%; border-collapse: collapse; background: var(--card);
|
||||
border-radius: 12px; overflow: hidden; font-size: 0.95rem;
|
||||
}
|
||||
table.results th, table.results td { padding: 0.5rem 0.75rem; text-align: left; }
|
||||
table.results th { background: #efe9d8; }
|
||||
table.results tr:nth-child(even) td { background: #faf7ee; }
|
||||
.score-good { color: var(--good); font-weight: 700; }
|
||||
.score-bad { color: var(--bad); font-weight: 700; }
|
||||
|
||||
.link-btn {
|
||||
display: inline-block; background: none; border: none; color: var(--muted);
|
||||
text-decoration: underline; cursor: pointer; font-size: 1rem;
|
||||
}
|
||||
|
||||
/* ---------- kid home tabs ---------- */
|
||||
.kid-nav { display: flex; gap: 0.5rem; justify-content: center; margin: 0.5rem 0 1.5rem; clear: both; flex-wrap: wrap; }
|
||||
.nav-pill {
|
||||
font-family: inherit; font-size: 1rem; font-weight: 700;
|
||||
background: var(--card); color: var(--muted); border: 2px solid #e8e2d0;
|
||||
border-radius: 999px; padding: 0.5rem 1.1rem; cursor: pointer;
|
||||
}
|
||||
.nav-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
|
||||
.tab-panel { text-align: left; }
|
||||
|
||||
/* ---------- today list / item rows (shared by agenda + course pages) ---------- */
|
||||
.today-row {
|
||||
display: flex; align-items: center; gap: 0.85rem; width: 100%;
|
||||
background: var(--card); border: none; border-radius: 14px;
|
||||
padding: 0.9rem 1.1rem; margin: 0.5rem 0; cursor: pointer; text-align: left;
|
||||
font-family: inherit; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06);
|
||||
}
|
||||
.today-row .row-check { font-size: 1.4rem; flex-shrink: 0; }
|
||||
.today-row .row-title { flex: 1; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
|
||||
.today-row .row-title small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
|
||||
.today-row .row-badge { font-size: 0.85rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
|
||||
|
||||
/* ---------- course cards ---------- */
|
||||
.course-cards { display: flex; flex-direction: column; gap: 0.75rem; }
|
||||
.course-card {
|
||||
display: flex; flex-direction: column; gap: 0.4rem; text-align: left;
|
||||
background: var(--card); border: none; border-left: 6px solid var(--accent);
|
||||
border-radius: 14px; padding: 1rem 1.2rem; cursor: pointer; font-family: inherit;
|
||||
box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06);
|
||||
}
|
||||
.course-card strong { font-size: 1.15rem; }
|
||||
.course-subject { color: var(--muted); font-size: 0.9rem; }
|
||||
.course-pct { font-size: 0.85rem; color: var(--muted); }
|
||||
.progress-track.small { height: 8px; margin: 0.2rem 0; }
|
||||
|
||||
.unit-block { margin-bottom: 1.5rem; }
|
||||
.unit-block h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
|
||||
|
||||
/* ---------- item viewers (lesson/assignment/quiz) ---------- */
|
||||
.item-card {
|
||||
background: var(--card); border-radius: var(--radius); padding: 1.75rem 1.5rem;
|
||||
box-shadow: 0 4px 12px rgba(45, 49, 66, 0.08); text-align: left;
|
||||
}
|
||||
.item-kicker { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.25rem; }
|
||||
.item-card h1 { font-size: 1.5rem; margin-bottom: 1rem; }
|
||||
.lesson-body { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.5rem; }
|
||||
.lesson-body img, .lesson-body iframe { max-width: 100%; border-radius: 10px; }
|
||||
.points-label { color: var(--muted); font-weight: 700; margin-bottom: 0.75rem; }
|
||||
.status-banner {
|
||||
margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 12px;
|
||||
background: #fdf1d6; font-weight: 700;
|
||||
}
|
||||
.status-banner.good { background: var(--good-bg); color: var(--good); }
|
||||
|
||||
/* ---------- quiz ---------- */
|
||||
.quiz-question { margin-bottom: 1.25rem; }
|
||||
.q-prompt { font-weight: 700; margin-bottom: 0.5rem; font-size: 1.05rem; }
|
||||
.quiz-choice { display: block; margin: 0.35rem 0; font-size: 1rem; cursor: pointer; }
|
||||
.quiz-choice input { margin-right: 0.5rem; }
|
||||
.quiz-short-input {
|
||||
width: 100%; max-width: 320px; font-size: 1rem; font-family: inherit;
|
||||
padding: 0.5rem; border: 2px solid #d8d2c0; border-radius: 10px;
|
||||
}
|
||||
.quiz-question.review .q-your-answer { color: var(--muted); }
|
||||
.quiz-question.review .q-correct-answer { color: var(--good); font-weight: 700; }
|
||||
|
||||
/* ---------- flashcards ---------- */
|
||||
.flip-card { text-align: center; }
|
||||
.flash-face { font-size: 1.6rem; font-weight: 700; padding: 2rem 1rem; min-height: 3rem; }
|
||||
#flash-back { color: var(--accent-dark); }
|
||||
.flash-grade-row { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1rem; }
|
||||
.flash-grade-row[hidden] { display: none; }
|
||||
.grade-btn {
|
||||
font-size: 1.1rem; font-weight: 700; font-family: inherit; border: none;
|
||||
border-radius: 12px; padding: 0.75rem 1.5rem; cursor: pointer; color: #fff;
|
||||
}
|
||||
.grade-btn.again { background: var(--bad); }
|
||||
.grade-btn.got-it { background: var(--good); }
|
||||
|
||||
/* ---------- admin console ---------- */
|
||||
.admin-header {
|
||||
display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
|
||||
background: var(--card); padding: 1rem 1.5rem; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06);
|
||||
}
|
||||
.admin-logo { font-size: 1.3rem; font-weight: 800; color: var(--ink); text-decoration: none; }
|
||||
.admin-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
|
||||
.admin-main { max-width: 900px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
|
||||
.admin-main h1 { margin-bottom: 1rem; clear: both; }
|
||||
.admin-main h2 { margin: 1.5rem 0 0.5rem; font-size: 1.15rem; }
|
||||
.panel { text-align: left; }
|
||||
|
||||
.admin-card {
|
||||
background: var(--card); border-radius: 14px; padding: 1.25rem;
|
||||
margin: 0.75rem 0; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06);
|
||||
display: flex; flex-direction: column; gap: 0.75rem;
|
||||
}
|
||||
.admin-card label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: 0.9rem; }
|
||||
.admin-card input, .admin-card select, .admin-card textarea {
|
||||
font-family: inherit; font-size: 1rem; padding: 0.5rem; border: 2px solid #d8d2c0; border-radius: 10px; font-weight: 400;
|
||||
}
|
||||
|
||||
.checkbox-label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; margin-right: 1rem; }
|
||||
.color-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
|
||||
.archived-badge { background: #e8e2d0; color: var(--muted); font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 999px; }
|
||||
|
||||
button.small { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
|
||||
button.tiny { font-size: 0.75rem; padding: 0.15rem 0.5rem; }
|
||||
.hint.tiny { font-size: 0.8rem; margin: 0.25rem 0; }
|
||||
|
||||
.unit-block { background: var(--card); border-radius: 14px; padding: 1rem 1.1rem; margin: 0.75rem 0; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06); }
|
||||
.unit-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
|
||||
.unit-header h3 { font-size: 1.05rem; }
|
||||
|
||||
.quiz-q-row {
|
||||
display: grid; grid-template-columns: 9rem 1fr 1fr 1fr 4rem auto; gap: 0.5rem;
|
||||
align-items: center; margin-bottom: 0.5rem;
|
||||
}
|
||||
.quiz-q-row select, .quiz-q-row input {
|
||||
font-family: inherit; font-size: 0.9rem; padding: 0.4rem; border: 2px solid #d8d2c0; border-radius: 8px;
|
||||
}
|
||||
|
||||
/* ---------- planner ---------- */
|
||||
.week-label { font-weight: 700; }
|
||||
.planner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin-top: 1rem; }
|
||||
.planner-day { background: var(--card); border-radius: 14px; padding: 0.85rem; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06); }
|
||||
.planner-day h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
|
||||
.planner-day h3 small { display: block; font-weight: 400; color: var(--muted); }
|
||||
.planner-tasks { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.5rem; min-height: 1.5rem; }
|
||||
.planner-task {
|
||||
display: flex; justify-content: space-between; align-items: center; gap: 0.4rem;
|
||||
background: #f7f2e3; border-radius: 8px; padding: 0.4rem 0.6rem; font-size: 0.85rem;
|
||||
}
|
||||
.planner-task.done { opacity: 0.55; text-decoration: line-through; }
|
||||
.add-task-form { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
|
||||
.add-task-form select, .add-task-form input { font-size: 0.85rem; padding: 0.4rem; border: 2px solid #d8d2c0; border-radius: 8px; font-family: inherit; }
|
||||
.or-divider { text-align: center; font-size: 0.75rem; color: var(--muted); }
|
||||
.task-save-btn { font-size: 0.85rem; }
|
||||
|
||||
.grade-input { width: 4.5rem; padding: 0.4rem; border: 2px solid #d8d2c0; border-radius: 8px; font-family: inherit; }
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.planner-grid { grid-template-columns: 1fr; }
|
||||
.quiz-q-row { grid-template-columns: 1fr 1fr; }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.app-title { font-size: 1.8rem; }
|
||||
.spell-input { font-size: 1.6rem; }
|
||||
.study-word { font-size: 2rem; }
|
||||
.today-row .row-title { font-size: 0.95rem; }
|
||||
}
|
||||
|
||||
/* ---------- page scanning ---------- */
|
||||
.scan-card {
|
||||
background: var(--card);
|
||||
border: 1.5px dashed var(--accent);
|
||||
border-radius: 10px;
|
||||
padding: 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.scan-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; }
|
||||
.scan-controls button { flex: 0 0 auto; }
|
||||
.scan-controls button.secondary { background: var(--muted); }
|
||||
.scan-controls button:disabled { background: #ccc; cursor: not-allowed; }
|
||||
#scan-preview { max-width: 220px; max-height: 220px; border-radius: 8px; object-fit: contain; }
|
||||
|
||||
/* ---------- scan config settings ---------- */
|
||||
.scan-provider-box {
|
||||
border: 1px solid var(--border, #ddd);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem 1rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
.scan-provider-box legend { font-weight: 600; padding: 0 0.3rem; }
|
||||
.radio-label { display: block; margin: 0.3rem 0; cursor: pointer; }
|
||||
.radio-label input { margin-right: 0.4rem; }
|
||||
Reference in new issue
Block a user