Polish pass on the hero: air under the nav, band in one row, labels at 11 px
- Hero top gap 16 -> 24 (16 at <=940 height, 12 at <=860) and --planet-k raised by the same amount, so the planet keeps its size instead of paying for the air: 520 at 1080, 430 at 1534x1000, 471 at 1440x900, 301 at 1366x768. - The band keeps four stats on one line down to 900 px: 193 -> 98 px at 1024x768, 200 -> 118 at 820x1180 (2x2 in its own column below 900). - Stat labels 10 -> 11 px: the detector's floor for functional text and the reading is better; DESIGN.md's hero table follows the shipped ladder. - Tried deleting the old V2 block; the computed-style diff proved it still owns the band's stat grid, so it stays. Cleanup needs its own pass. - Verified: 0 px first-screen overflow on all eight viewports with the ticker at the fold, dark / reduced motion / no-JS identical, no errors, no horizontal scroll. Detector: 0 errors; 15 warnings are the committed world (Montserrat, warm beige, the ticker marquee) and stay by design.
This commit is contained in:
1 parent
b28ed490a4
commit
3b67be35f1
2 files changed
+28
-18
No files matched your search
@@ -213,14 +213,14 @@ components:
|
||||
|
||||
| Роль | Гарнитура | Вес | Кегль 1440 | Интерлиньяж | Трекинг | Регистр |
|
||||
|---|---|---|---|---|---|---|
|
||||
| H1 | Montserrat | 800 | 54 | 1.1 | 1 px | uppercase |
|
||||
| Титул полосы | Montserrat | 700 | 18 | 1.1 | 0.5 px | uppercase |
|
||||
| Значение стата | Montserrat | 800 | 23 | 1.0 | — | цифры |
|
||||
| Подпись стата | Montserrat | 600 | 10 | 1.5 | 0.8 px | uppercase |
|
||||
| H1 | Montserrat | 800 | 54 (мобайл 34) | 1.1 | 1 px | uppercase |
|
||||
| Титул полосы | Montserrat | 700 | 20 | 1.15 | 0.5 px | uppercase |
|
||||
| Значение стата | Montserrat | 800 | 24 (900–1024: 20) | 1.0 | — | цифры |
|
||||
| Подпись стата | Montserrat | 600 | 11 | 1.4 | 0.8 px | uppercase |
|
||||
| Заголовок плашки | Montserrat | 700 | 12 | 1.1 | 1.2 px | uppercase |
|
||||
| Термин пары | Montserrat | 700 | 11 | 1.5 | 1 px | uppercase |
|
||||
| Оффер / лид | Roboto | 400 | 19 (лиды 14) | 1.5 (лиды 1.36) | — | как в тексте |
|
||||
| Тело (описание пары) | Roboto | 400 | 14 | 1.36 | — | как в тексте |
|
||||
| Термин пары | Montserrat | 700 | 12 | 1.5 | 1 px | uppercase |
|
||||
| Оффер / лид | Roboto | 400 | 20 (лиды 14) | 1.4 (лиды 1.5) | — | как в тексте |
|
||||
| Тело (описание пары) | Roboto | 400 | 14 | 1.5 | — | как в тексте |
|
||||
| Чип | Montserrat | 600 | 12 | 1.5 | 1 px | uppercase |
|
||||
|
||||
Пары «термин → значение»: трек `--brief-label: 104px`, термин в label-роли, описание в теле; на ≤767
|
||||
|
||||
+21
-11
@@ -1119,8 +1119,8 @@
|
||||
--edge: 24px;
|
||||
--step-1: 4px; --step-2: 8px; --step-3: 12px; --step-4: 16px;
|
||||
--step-5: 24px; --step-6: 32px; --step-7: 48px;
|
||||
--planet-k: 658px;
|
||||
padding: var(--step-4) var(--edge);
|
||||
--planet-k: 666px;
|
||||
padding: var(--step-5) var(--edge) var(--step-4);
|
||||
}
|
||||
.hero__grid {
|
||||
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
|
||||
@@ -1149,7 +1149,7 @@
|
||||
.hero-stat:first-child { padding-left: 0 }
|
||||
.hero-stat:last-child { padding-right: 0 }
|
||||
.hero-stat__value { font-size: 24px; line-height: 1 }
|
||||
.hero-stat__label { font-size: 10px; line-height: 1.4; letter-spacing: 1px }
|
||||
.hero-stat__label { font-size: 11px; line-height: 1.4; letter-spacing: .8px }
|
||||
|
||||
/* Строка 3 — плашки друг над другом, на всю ширину, пары «термин → значение» в строку.
|
||||
1 px рамки входит в `--edge`: текст плашки встаёт на ту же линию, что текст полосы. */
|
||||
@@ -1173,13 +1173,13 @@
|
||||
так первый экран закрывается без прокрутки, а планета остаётся якорем, а не игрушкой.
|
||||
Потолок 520 — прежний максимум; пол 300. */
|
||||
@media (min-width: 768px) {
|
||||
.planet { max-width: clamp(250px, calc((100vh - var(--planet-k)) * 1.286), 520px) }
|
||||
.planet { max-width: clamp(240px, calc((100vh - var(--planet-k)) * 1.286), 520px) }
|
||||
}
|
||||
|
||||
/* Плотнее по высоте (≤940): тот же набор ролей, шаг на одну ступень ниже —
|
||||
8 вместо 12 в подложках, 12 вместо 16 между строками. */
|
||||
@media (min-width: 768px) and (max-height: 940px) {
|
||||
.hero { --planet-k: 526px; padding: var(--step-2) var(--edge) }
|
||||
.hero { --planet-k: 534px; padding: var(--step-4) var(--edge) var(--step-2) }
|
||||
.hero__grid { row-gap: var(--step-3) }
|
||||
.hero-about { padding: var(--step-2) var(--edge) }
|
||||
.about-acc .faq-list { gap: var(--step-2) }
|
||||
@@ -1189,9 +1189,9 @@
|
||||
|
||||
/* Короткие окна (≤860): ещё на ступень ниже. Кегли не трогаем — только ритм. */
|
||||
@media (min-width: 768px) and (max-height: 860px) {
|
||||
.hero { --planet-k: 526px; padding: var(--step-2) var(--edge) }
|
||||
.hero__grid { row-gap: var(--step-3) }
|
||||
.hero-about { padding: var(--step-2) var(--edge) }
|
||||
.hero { --planet-k: 534px; padding: var(--step-4) var(--edge) var(--step-2) }
|
||||
.hero__grid { row-gap: var(--step-2) }
|
||||
.hero-about { padding: var(--step-1) var(--edge) }
|
||||
.hero-about__title { margin-bottom: var(--step-1) }
|
||||
.about-acc .faq-list { gap: var(--step-2) }
|
||||
.about-acc__list { gap: var(--step-1) }
|
||||
@@ -1202,9 +1202,19 @@
|
||||
/* 768–1024 по ширине: полоса в один столбец, цифры 2×2 (как в проде). */
|
||||
@media (min-width: 768px) and (max-width: 1024px) {
|
||||
.hero { --planet-k: 700px }
|
||||
.hero-about { grid-template-columns: minmax(0, 1fr); gap: var(--step-4); align-items: start }
|
||||
.hero-about__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--step-2) var(--step-5) }
|
||||
.hero-stat { padding: 0 }
|
||||
.hero-about { grid-template-columns: minmax(0, 1fr) auto; gap: var(--step-5); align-items: center }
|
||||
.hero-about__stats { grid-template-columns: repeat(4, minmax(56px, auto)); gap: 0 }
|
||||
.hero-stat { padding: 0 var(--step-3) }
|
||||
.hero-stat__value { font-size: 20px }
|
||||
.hero-stat__label { font-size: 11px; letter-spacing: .5px }
|
||||
}
|
||||
|
||||
/* 768–899: цифры встают 2×2 в своей колонке — полоса остаётсяодна строка, текст не растягивается. */
|
||||
@media (min-width: 768px) and (max-width: 899px) {
|
||||
.hero-about { grid-template-columns: minmax(0, 1fr) auto; gap: var(--step-4); align-items: center }
|
||||
.hero-about__stats { grid-template-columns: repeat(2, minmax(64px, auto)); gap: var(--step-1) var(--step-3) }
|
||||
.hero-stat { padding: 0 var(--step-2) }
|
||||
.hero-stat__value { font-size: 18px }
|
||||
}
|
||||
|
||||
/* Мобайл: одна колонка, тот же текстовый вертикал, шаг 24 между строками hero. */
|
||||
|
||||
Reference in new issue
Block a user