diff --git a/.peppa/memory.md b/.peppa/memory.md index d70ae54..cf2d6ea 100644 --- a/.peppa/memory.md +++ b/.peppa/memory.md @@ -7,6 +7,7 @@ - Новая миграция: DATABASE_URI=file:$PWD/data/mig.db pnpm payload migrate && pnpm payload migrate:create <имя> && pnpm payload generate:types (сначала применить старые на чистой БД, потом удалить data/mig.db). ## Решения +- QLFW-26: Chromium ru/kk/en 320/375/768/1440px — девиз помещается без обрезания; оформление менять не потребовалось. - Юр. тексты — глобал Payload `legal` (textarea, абзацы через пустую строку), читаются с fallbackLocale:false: пусто на языке → «Нужно уточнить». Подпись со ссылкой на политику — компонент PrivacyNote, ставить у каждой формы; Header принимает `path` для страниц кроме главной. - QLFW-14: русские юридические тексты в миграции 20261117_120000_legal_texts (JSON); заполняются только пустые поля ru, правки фонда сохраняются. LegalText выводит строки «N. …» заголовками, «* …» списками; переводы не подставляются. diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/.openspec.yaml b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/.openspec.yaml new file mode 100644 index 0000000..bbe8b39 --- /dev/null +++ b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/.openspec.yaml @@ -0,0 +1,2 @@ +schema: spec-driven +created: 2026-11-17 diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/design.md b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/design.md new file mode 100644 index 0000000..1c19a17 --- /dev/null +++ b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/design.md @@ -0,0 +1,16 @@ +# Design + +## Context +Первый экран использует общий шаблон для ru/kk/en, цвет graphite и белую подпись на бордовой кнопке. Анимация меняет только положение. Размер заголовка ограничен снизу 2.4rem; казахское слово «Болашақты» может не поместиться в 280px полезной ширины. + +## Goals / Non-Goals +Проверить реальную геометрию браузером; сохранить тексты и цвета. Шапка и нижние разделы вне изменений. + +## Decisions +Сначала измерить и открыть снимки в Chromium. Если слово обрезается, применить overflow-wrap:anywhere только к заголовку: обычные пробелы сохраняют приоритет, аварийный перенос защищает узкие экраны. Уменьшать весь заголовок или скрывать текст не требуется. Проверить ru/kk/en при 320, 375, 768, 1440px, анимацию и reduced motion; контраст — по фактическим цветам. + +## Risks / Trade-offs +Шрифты различаются между системами → аварийный перенос защищает от более широких глифов. Перенос внутри слова на самом узком экране допустим ради полного текста. Миграции и новые зависимости приложения не нужны. + +## Результат проверки +Обрезание не воспроизвелось: текущий заголовок целиком помещается на всех проверенных размерах. CSS менять не требуется; аварийный перенос не добавлялся. diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/en-1440.png b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/en-1440.png new file mode 100644 index 0000000..2fc99d5 Binary files /dev/null and b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/en-1440.png differ diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/en-320.png b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/en-320.png new file mode 100644 index 0000000..a93d8b0 Binary files /dev/null and b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/en-320.png differ diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/kk-320.png b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/kk-320.png new file mode 100644 index 0000000..7385f87 Binary files /dev/null and b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/kk-320.png differ diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/motion.json b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/motion.json new file mode 100644 index 0000000..49e52cd --- /dev/null +++ b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/motion.json @@ -0,0 +1,134 @@ +[ + { + "l": "kk", + "reducedMotion": "no-preference", + "styles": [ + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "rise" + }, + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "rise" + }, + { + "opacity": "1", + "color": "rgb(255, 255, 255)", + "animation": "rise" + } + ], + "animationCount": 1 + }, + { + "l": "en", + "reducedMotion": "no-preference", + "styles": [ + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "rise" + }, + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "rise" + }, + { + "opacity": "1", + "color": "rgb(255, 255, 255)", + "animation": "rise" + } + ], + "animationCount": 1 + }, + { + "l": "ru", + "reducedMotion": "no-preference", + "styles": [ + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "rise" + }, + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "rise" + }, + { + "opacity": "1", + "color": "rgb(255, 255, 255)", + "animation": "rise" + } + ], + "animationCount": 1 + }, + { + "l": "kk", + "reducedMotion": "reduce", + "styles": [ + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "none" + }, + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "none" + }, + { + "opacity": "1", + "color": "rgb(255, 255, 255)", + "animation": "none" + } + ], + "animationCount": 0 + }, + { + "l": "en", + "reducedMotion": "reduce", + "styles": [ + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "none" + }, + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "none" + }, + { + "opacity": "1", + "color": "rgb(255, 255, 255)", + "animation": "none" + } + ], + "animationCount": 0 + }, + { + "l": "ru", + "reducedMotion": "reduce", + "styles": [ + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "none" + }, + { + "opacity": "1", + "color": "rgb(26, 26, 29)", + "animation": "none" + }, + { + "opacity": "1", + "color": "rgb(255, 255, 255)", + "animation": "none" + } + ], + "animationCount": 0 + } +] diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/result.json b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/result.json new file mode 100644 index 0000000..1a1111e --- /dev/null +++ b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/result.json @@ -0,0 +1,814 @@ +[ + { + "locale": "kk", + "width": 320, + "elements": [ + { + "text": "Мұраны сақтаймыз. Болашақты жасаймыз.", + "left": 20, + "right": 300, + "scrollWidth": 280, + "clientWidth": 280, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 169.265625 + }, + { + "left": 20, + "right": 225 + }, + { + "left": 20, + "right": 227.234375 + }, + { + "left": 20, + "right": 214.71875 + } + ] + }, + { + "text": "Қазақстанның мәдени, музыкалық және тарихи мұрасының жеке қоры.", + "left": 20, + "right": 300, + "scrollWidth": 280, + "clientWidth": 280, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 219.40625 + }, + { + "left": 20, + "right": 231.78125 + }, + { + "left": 20, + "right": 223.46875 + } + ] + }, + { + "text": "Бағыттар", + "left": 20, + "right": 156.765625, + "scrollWidth": 137, + "clientWidth": 137, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 52, + "right": 124.765625 + } + ] + } + ] + }, + { + "locale": "kk", + "width": 375, + "elements": [ + { + "text": "Мұраны сақтаймыз. Болашақты жасаймыз.", + "left": 20, + "right": 355, + "scrollWidth": 335, + "clientWidth": 335, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 169.265625 + }, + { + "left": 20, + "right": 225 + }, + { + "left": 20, + "right": 227.234375 + }, + { + "left": 20, + "right": 214.71875 + } + ] + }, + { + "text": "Қазақстанның мәдени, музыкалық және тарихи мұрасының жеке қоры.", + "left": 20, + "right": 355, + "scrollWidth": 335, + "clientWidth": 335, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 321.96875 + }, + { + "left": 20, + "right": 337.109375 + } + ] + }, + { + "text": "Бағыттар", + "left": 20, + "right": 156.765625, + "scrollWidth": 137, + "clientWidth": 137, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 52, + "right": 124.765625 + } + ] + } + ] + }, + { + "locale": "kk", + "width": 768, + "elements": [ + { + "text": "Мұраны сақтаймыз. Болашақты жасаймыз.", + "left": 32, + "right": 736, + "scrollWidth": 704, + "clientWidth": 704, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 32, + "right": 615.53125 + }, + { + "left": 32, + "right": 691.796875 + } + ] + }, + { + "text": "Қазақстанның мәдени, музыкалық және тарихи мұрасының жеке қоры.", + "left": 32, + "right": 704, + "scrollWidth": 672, + "clientWidth": 672, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 32, + "right": 654.328125 + }, + { + "left": 32, + "right": 85.875 + } + ] + }, + { + "text": "Бағыттар", + "left": 32, + "right": 168.765625, + "scrollWidth": 137, + "clientWidth": 137, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 64, + "right": 136.765625 + } + ] + } + ] + }, + { + "locale": "kk", + "width": 1440, + "elements": [ + { + "text": "Мұраны сақтаймыз. Болашақты жасаймыз.", + "left": 176, + "right": 1200, + "scrollWidth": 1024, + "clientWidth": 1024, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 176, + "right": 1163.734375 + }, + { + "left": 176, + "right": 737.25 + }, + { + "left": 176, + "right": 703.328125 + } + ] + }, + { + "text": "Қазақстанның мәдени, музыкалық және тарихи мұрасының жеке қоры.", + "left": 176, + "right": 848, + "scrollWidth": 672, + "clientWidth": 672, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 176, + "right": 798.328125 + }, + { + "left": 176, + "right": 229.875 + } + ] + }, + { + "text": "Бағыттар", + "left": 176, + "right": 312.765625, + "scrollWidth": 137, + "clientWidth": 137, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 208, + "right": 280.765625 + } + ] + } + ] + }, + { + "locale": "en", + "width": 320, + "elements": [ + { + "text": "Preserving heritage. Creating the future.", + "left": 20, + "right": 300, + "scrollWidth": 280, + "clientWidth": 280, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 206.21875 + }, + { + "left": 20, + "right": 172.734375 + }, + { + "left": 20, + "right": 236.859375 + }, + { + "left": 20, + "right": 138.0625 + } + ] + }, + { + "text": "A private foundation for the cultural, musical and historical heritage of Kazakhstan.", + "left": 20, + "right": 300, + "scrollWidth": 280, + "clientWidth": 280, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 244.390625 + }, + { + "left": 20, + "right": 268.609375 + }, + { + "left": 20, + "right": 214.09375 + } + ] + }, + { + "text": "Focus areas", + "left": 20, + "right": 173.234375, + "scrollWidth": 153, + "clientWidth": 153, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 52, + "right": 141.234375 + } + ] + } + ] + }, + { + "locale": "en", + "width": 375, + "elements": [ + { + "text": "Preserving heritage. Creating the future.", + "left": 20, + "right": 355, + "scrollWidth": 335, + "clientWidth": 335, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 206.21875 + }, + { + "left": 20, + "right": 333.0625 + }, + { + "left": 20, + "right": 205.03125 + } + ] + }, + { + "text": "A private foundation for the cultural, musical and historical heritage of Kazakhstan.", + "left": 20, + "right": 355, + "scrollWidth": 335, + "clientWidth": 335, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 315.515625 + }, + { + "left": 20, + "right": 290.875 + }, + { + "left": 20, + "right": 120.703125 + } + ] + }, + { + "text": "Focus areas", + "left": 20, + "right": 173.234375, + "scrollWidth": 153, + "clientWidth": 153, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 52, + "right": 141.234375 + } + ] + } + ] + }, + { + "locale": "en", + "width": 768, + "elements": [ + { + "text": "Preserving heritage. Creating the future.", + "left": 32, + "right": 736, + "scrollWidth": 704, + "clientWidth": 704, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 32, + "right": 591 + }, + { + "left": 32, + "right": 584.578125 + } + ] + }, + { + "text": "A private foundation for the cultural, musical and historical heritage of Kazakhstan.", + "left": 32, + "right": 704, + "scrollWidth": 672, + "clientWidth": 672, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 32, + "right": 652.828125 + }, + { + "left": 32, + "right": 141.875 + } + ] + }, + { + "text": "Focus areas", + "left": 32, + "right": 185.234375, + "scrollWidth": 153, + "clientWidth": 153, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 64, + "right": 153.234375 + } + ] + } + ] + }, + { + "locale": "en", + "width": 1440, + "elements": [ + { + "text": "Preserving heritage. Creating the future.", + "left": 176, + "right": 1200, + "scrollWidth": 1024, + "clientWidth": 1024, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 176, + "right": 1122.21875 + }, + { + "left": 176, + "right": 1111.34375 + } + ] + }, + { + "text": "A private foundation for the cultural, musical and historical heritage of Kazakhstan.", + "left": 176, + "right": 848, + "scrollWidth": 672, + "clientWidth": 672, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 176, + "right": 796.828125 + }, + { + "left": 176, + "right": 285.875 + } + ] + }, + { + "text": "Focus areas", + "left": 176, + "right": 329.234375, + "scrollWidth": 153, + "clientWidth": 153, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 208, + "right": 297.234375 + } + ] + } + ] + }, + { + "locale": "ru", + "width": 320, + "elements": [ + { + "text": "Сохраняем наследие. Создаем будущее.", + "left": 20, + "right": 300, + "scrollWidth": 280, + "clientWidth": 280, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 223.671875 + }, + { + "left": 20, + "right": 198.265625 + }, + { + "left": 20, + "right": 174.96875 + }, + { + "left": 20, + "right": 184.265625 + } + ] + }, + { + "text": "Частный фонд культурного, музыкального и исторического наследия Казахстана.", + "left": 20, + "right": 300, + "scrollWidth": 280, + "clientWidth": 280, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 259.75 + }, + { + "left": 20, + "right": 291.609375 + }, + { + "left": 20, + "right": 208.96875 + } + ] + }, + { + "text": "Направления", + "left": 20, + "right": 187.453125, + "scrollWidth": 167, + "clientWidth": 167, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 52, + "right": 155.453125 + } + ] + } + ] + }, + { + "locale": "ru", + "width": 375, + "elements": [ + { + "text": "Сохраняем наследие. Создаем будущее.", + "left": 20, + "right": 355, + "scrollWidth": 335, + "clientWidth": 335, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 223.671875 + }, + { + "left": 20, + "right": 198.265625 + }, + { + "left": 20, + "right": 349.671875 + } + ] + }, + { + "text": "Частный фонд культурного, музыкального и исторического наследия Казахстана.", + "left": 20, + "right": 355, + "scrollWidth": 335, + "clientWidth": 335, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 20, + "right": 259.75 + }, + { + "left": 20, + "right": 291.609375 + }, + { + "left": 20, + "right": 208.96875 + } + ] + }, + { + "text": "Направления", + "left": 20, + "right": 187.453125, + "scrollWidth": 167, + "clientWidth": 167, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 52, + "right": 155.453125 + } + ] + } + ] + }, + { + "locale": "ru", + "width": 768, + "elements": [ + { + "text": "Сохраняем наследие. Создаем будущее.", + "left": 32, + "right": 736, + "scrollWidth": 704, + "clientWidth": 704, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 32, + "right": 659.796875 + }, + { + "left": 32, + "right": 559.46875 + } + ] + }, + { + "text": "Частный фонд культурного, музыкального и исторического наследия Казахстана.", + "left": 32, + "right": 704, + "scrollWidth": 672, + "clientWidth": 672, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 32, + "right": 689.84375 + }, + { + "left": 32, + "right": 144.65625 + } + ] + }, + { + "text": "Направления", + "left": 32, + "right": 199.453125, + "scrollWidth": 167, + "clientWidth": 167, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 64, + "right": 167.453125 + } + ] + } + ] + }, + { + "locale": "ru", + "width": 1440, + "elements": [ + { + "text": "Сохраняем наследие. Создаем будущее.", + "left": 176, + "right": 1200, + "scrollWidth": 1024, + "clientWidth": 1024, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 176, + "right": 727.609375 + }, + { + "left": 176, + "right": 1106.75 + }, + { + "left": 176, + "right": 620.875 + } + ] + }, + { + "text": "Частный фонд культурного, музыкального и исторического наследия Казахстана.", + "left": 176, + "right": 848, + "scrollWidth": 672, + "clientWidth": 672, + "color": "rgb(26, 26, 29)", + "background": "rgba(0, 0, 0, 0)", + "opacity": "1", + "textRects": [ + { + "left": 176, + "right": 833.84375 + }, + { + "left": 176, + "right": 288.65625 + } + ] + }, + { + "text": "Направления", + "left": 176, + "right": 343.453125, + "scrollWidth": 167, + "clientWidth": 167, + "color": "rgb(255, 255, 255)", + "background": "rgb(122, 31, 43)", + "opacity": "1", + "textRects": [ + { + "left": 208, + "right": 311.453125 + } + ] + } + ] + } +] diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/ru-320.png b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/ru-320.png new file mode 100644 index 0000000..c18cc53 Binary files /dev/null and b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/evidence/ru-320.png differ diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/proposal.md b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/proposal.md new file mode 100644 index 0000000..25322bd --- /dev/null +++ b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/proposal.md @@ -0,0 +1,21 @@ +Задача: QLFW-26 — проверить читаемость первого экрана на казахском, английском и телефоне. + +## Why +Контраст уже исправлен в QLFW-21, но перенос длинного девиза на узком экране требует отдельной проверки. + +## What Changes +- Проверка первого экрана на трёх языках при ширине 320–1440 пикселей. +- Защита заголовка от обрезания длинных слов, если проверка подтвердит проблему. +- Документирование результатов визуальной проверки и контраста. + +## Capabilities +### New Capabilities +Нет. +### Modified Capabilities +- `home-page`: первый экран без обрезанного заголовка на узком экране. + +## Impact +Первый экран главной и отчёт проверки. Вне scope: шапка, контакты, тексты фонда, отправка писем. + +## Открытые вопросы к PM +Нет. diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/specs/home-page/spec.md b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/specs/home-page/spec.md new file mode 100644 index 0000000..4b6fa6f --- /dev/null +++ b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/specs/home-page/spec.md @@ -0,0 +1,35 @@ +## MODIFIED Requirements + +### Requirement: Читаемый первый экран +Заголовок, строка о фонде и кнопка «Направления» SHALL оставаться тёмными и контрастными на всех этапах загрузки страницы на всех языках. При ширине экрана от 320 пикселей заголовок SHALL полностью помещаться по ширине без обрезания. + +#### Scenario: Загрузка на слабом устройстве +- **GIVEN** посетитель открывает главную на медленном устройстве +- **WHEN** страница появляется с анимацией +- **THEN** заголовок и строка о фонде тёмные, без полупрозрачности +- **AND** надпись на кнопке белая на бордовом фоне + +#### Scenario Outline: Язык страницы +- **GIVEN** посетитель выбрал язык <язык> +- **WHEN** он открывает главную +- **THEN** первый экран читается так же чётко + +Примеры: +| язык | +| RU | +| KK | +| EN | + +#### Scenario Outline: Телефон и длинный заголовок +- **GIVEN** ширина экрана <ширина> пикселей +- **WHEN** посетитель открывает <страница> +- **THEN** заголовок полностью виден и переносится внутри первого экрана +- **AND** строка о фонде и кнопка контрастны и не обрезаны + +Примеры: +| ширина | страница | +| 320 | /kk | +| 375 | /kk | +| 320 | /en | +| 375 | /en | +| 320 | /ru | diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/tasks.md b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/tasks.md new file mode 100644 index 0000000..2fb0c0c --- /dev/null +++ b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/tasks.md @@ -0,0 +1,10 @@ +# Tasks + +## 1. Первый экран +- [x] 1.1 Проверить браузером ru/kk/en при 320, 375, 768, 1440px, исправить обрезание при наличии и записать геометрию, контраст и видимые тексты в verification.md. + +## 2. Интеграция +- [x] 2.1 Запустить все проверки через peppa-check.sh и openspec validate; подтвердить отсутствие ошибок. + +## Workflow follow-up +- Записать память, архивировать change, открыть PR и передать результат на ревью. diff --git a/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/verification.md b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/verification.md new file mode 100644 index 0000000..40e516a --- /dev/null +++ b/openspec/changes/archive/2026-11-17-qlfw-26-hero-responsive-readability/verification.md @@ -0,0 +1,55 @@ +# Проверка первого экрана QLFW-26 + +17 ноября 2026. Chromium (Playwright 1.65.1), production-сборка Next, высота 900px. Локальная отдельная mock-БД; внешние сервисы не подменяют первый экран. SMTP не используется этой задачей и остаётся отдельной зависимостью QLFW-15. + +## Результат +Все 12 сочетаний языка и ширины прошли проверку границ текстовых строк и scrollWidth/clientWidth. Обрезания нет, CSS менять не потребовалось. Снимки открыты и проверены визуально: kk/en/ru на 320px и en на 1440px. + +| Язык | Ширина | Правая граница заголовка | Результат | +|---|---:|---:|---| +| kk | 320 | 227.23 | помещается | +| kk | 375 | 227.23 | помещается | +| kk | 768 | 691.80 | помещается | +| kk | 1440 | 1163.73 | помещается | +| en | 320 | 236.86 | помещается | +| en | 375 | 333.06 | помещается | +| en | 768 | 591.00 | помещается | +| en | 1440 | 1122.22 | помещается | +| ru | 320 | 223.67 | помещается | +| ru | 375 | 349.67 | помещается | +| ru | 768 | 659.80 | помещается | +| ru | 1440 | 1106.75 | помещается | + +## Контраст и движение +На всех языках opacity=1 у заголовка, строки фонда и кнопки, включая начало анимации (currentTime=0). При reduced motion анимация отсутствует. Цвет текста #1a1a1d; кнопка #7a1f2b с белой подписью. Белый на бордовом: 10.20:1. Тёмный на консервативной оценке фона #ceadb0 (нижняя оценка яркости для бордовых слоёв поверх светлого фона): 8.45:1. Оба выше 4.5:1. + +## Видимые тексты первого экрана + +kk: + +- Мұраны сақтаймыз. Болашақты жасаймыз. +- Қазақстанның мәдени, музыкалық және тарихи мұрасының жеке қоры. +- Бағыттар + +en: + +- Preserving heritage. Creating the future. +- A private foundation for the cultural, musical and historical heritage of Kazakhstan. +- Focus areas + +ru: + +- Сохраняем наследие. Создаем будущее. +- Частный фонд культурного, музыкального и исторического наследия Казахстана. +- Направления + +Тексты сверены с docs/glossary.md: запрещённых слов и обращения на «ты» нет. Новые пользовательские тексты не добавлялись. + +## Проверки +install, lint, typecheck, test, build через bash .gitea/peppa-check.sh — успешны; 24 теста, 10 существующих предупреждений lint без ошибок. GET /healthz — 200. openspec validate — успешно. + +Сырые измерения и снимки: evidence/. Ограничение: проверен Chromium на macOS; физические телефоны и другие браузеры не проверялись. + +После rebase на main с QLFW-25 все проверки проекта и браузерная матрица повторены успешно; снимки обновлены с новой шапкой. + +Повторный rebase с QLFW-27: изменения касаются книги и контактов, первый экран не менялся. lint/typecheck/test/build повторно успешны; теперь 32 теста. diff --git a/openspec/specs/home-page/spec.md b/openspec/specs/home-page/spec.md index eb6d8b0..4f6f039 100644 --- a/openspec/specs/home-page/spec.md +++ b/openspec/specs/home-page/spec.md @@ -96,7 +96,7 @@ TBD - created by archiving change qlfw-4-home-page. Update Purpose after archive - **THEN** видит qazaqlegacy@gmail.com и локализованную ссылку Instagram вместо пометки о недостающем контакте ### Requirement: Читаемый первый экран -Заголовок, строка о фонде и кнопка «Направления» SHALL оставаться тёмными и контрастными на всех этапах загрузки страницы на всех языках. +Заголовок, строка о фонде и кнопка «Направления» SHALL оставаться тёмными и контрастными на всех этапах загрузки страницы на всех языках. При ширине экрана от 320 пикселей заголовок SHALL полностью помещаться по ширине без обрезания. #### Scenario: Загрузка на слабом устройстве - **GIVEN** посетитель открывает главную на медленном устройстве @@ -115,6 +115,20 @@ TBD - created by archiving change qlfw-4-home-page. Update Purpose after archive | KK | | EN | +#### Scenario Outline: Телефон и длинный заголовок +- **GIVEN** ширина экрана <ширина> пикселей +- **WHEN** посетитель открывает <страница> +- **THEN** заголовок полностью виден и переносится внутри первого экрана +- **AND** строка о фонде и кнопка контрастны и не обрезаны + +Примеры: +| ширина | страница | +| 320 | /kk | +| 375 | /kk | +| 320 | /en | +| 375 | /en | +| 320 | /ru | + ### Requirement: Читаемая навигация Меню и все ссылки языков SHALL быть тёмными на светлом фоне и иметь контраст не ниже 4.5:1 на ru, kk, en. Текущий язык SHALL выделяться жирным начертанием и подчёркиванием; остальные языки SHALL оставаться читаемыми без наведения.