From b34a78f874483fc7d78963c03b4c5278f4bc1f38 Mon Sep 17 00:00:00 2001 From: nmemmert Date: Wed, 3 Jun 2026 15:49:22 -0400 Subject: [PATCH] fix agian --- server/helpers.js | 1 + src/App.css | 86 +++++++++++++++++++++++++---------------------- 2 files changed, 46 insertions(+), 41 deletions(-) diff --git a/server/helpers.js b/server/helpers.js index 68761a7..818a683 100644 --- a/server/helpers.js +++ b/server/helpers.js @@ -257,6 +257,7 @@ function sanitizeColossiansStudySections(value) { studyQuestions: Array.isArray(item.studyQuestions) ? item.studyQuestions.filter(question => typeof question === 'string').map(question => question.trim()).filter(Boolean).slice(0, 20) : [], + announcement: typeof item.announcement === 'string' ? item.announcement.trim().slice(0, 600) : '', checkpointPrompt: typeof item.checkpointPrompt === 'string' ? item.checkpointPrompt.trim().slice(0, 600) : '', checkpointQuestions: Array.isArray(item.checkpointQuestions) ? item.checkpointQuestions.filter(question => typeof question === 'string').map(question => question.trim()).filter(Boolean).slice(0, 20) diff --git a/src/App.css b/src/App.css index dbed398..4aae5cf 100644 --- a/src/App.css +++ b/src/App.css @@ -1264,47 +1264,6 @@ /* ── Colossians Study ── */ .study-index-page, -/* ── Lesson Announcement Banner ── */ -.study-lesson-announcement-banner { - display: flex; - align-items: flex-start; - gap: 1rem; - padding: 1rem 1.5rem; - background: linear-gradient(135deg, #1a1500 0%, #241c00 100%); - border-bottom: 2px solid #c9a84c; - width: 100%; - box-sizing: border-box; -} - -.study-lesson-announcement-icon { - font-size: 1.4rem; - line-height: 1; - flex-shrink: 0; - margin-top: 0.1rem; -} - -.study-lesson-announcement-body { - flex: 1; - min-width: 0; -} - -.study-lesson-announcement-label { - display: block; - font-size: 0.72rem; - text-transform: uppercase; - letter-spacing: 0.12em; - color: #c9a84c; - margin-bottom: 0.3rem; - font-weight: 700; -} - -.study-lesson-announcement-text { - margin: 0; - font-size: 0.95rem; - color: #f0e9cc; - line-height: 1.6; -} - .study-section-page { background: radial-gradient(1200px 500px at 90% -10%, rgba(201, 168, 76, 0.12), transparent 55%), @@ -1312,6 +1271,51 @@ #090909; } +/* ── Lesson Announcement Banner ── */ +.study-lesson-announcement-banner { + display: flex; + align-items: center; + gap: 1rem; + padding: 0.85rem 2rem; + background: #c9a84c; + width: 100%; + box-sizing: border-box; + position: relative; + z-index: 10; +} + +.study-lesson-announcement-icon { + font-size: 1.1rem; + line-height: 1; + flex-shrink: 0; +} + +.study-lesson-announcement-body { + flex: 1; + min-width: 0; + display: flex; + align-items: baseline; + gap: 0.6rem; + flex-wrap: wrap; +} + +.study-lesson-announcement-label { + font-size: 0.7rem; + text-transform: uppercase; + letter-spacing: 0.12em; + color: #3a2800; + font-weight: 800; + flex-shrink: 0; +} + +.study-lesson-announcement-text { + margin: 0; + font-size: 0.9rem; + color: #1a1200; + line-height: 1.5; + font-weight: 500; +} + .section-study-course-hero { padding: 6.5rem 0 3rem; background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0.03) 40%, transparent 100%);