From e19485e288d0826999d3082d9d77fe2b0ed237c2 Mon Sep 17 00:00:00 2001 From: Nikolay Mamadaev Date: Sun, 18 Oct 2026 20:10:27 +0200 Subject: [PATCH] fix: stabilize rotating homepage value proposition --- public/css/main.css | 4 ++-- public/en/index.html | 2 +- public/index.html | 2 +- public/js/modules/ui/hero-word-slot.js | 4 +++- src/pages/index.en.html | 2 +- src/pages/index.html | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index 6c04bb5..207a264 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -1408,10 +1408,10 @@ html[data-font="mono"] .hero__title { .hero-rotator { position: relative; - display: inline-flex; + display: block; align-items: baseline; vertical-align: baseline; - min-width: 8.5ch; + width: 9ch; min-height: 0.92em; } diff --git a/public/en/index.html b/public/en/index.html index 4b395cb..f7e73c1 100644 --- a/public/en/index.html +++ b/public/en/index.html @@ -319,7 +319,7 @@

Nikolay Mamadaev

- I bring order to where business loses + I help businesses avoid losing: time diff --git a/public/index.html b/public/index.html index 14093c8..5dd24b9 100644 --- a/public/index.html +++ b/public/index.html @@ -319,7 +319,7 @@

Николай Мамадаев

- Навожу порядок там, где бизнес теряет + Помогаю бизнесу не терять: время diff --git a/public/js/modules/ui/hero-word-slot.js b/public/js/modules/ui/hero-word-slot.js index 9e06cf8..a74ca9f 100644 --- a/public/js/modules/ui/hero-word-slot.js +++ b/public/js/modules/ui/hero-word-slot.js @@ -5,7 +5,9 @@ export function initHeroWordSlot() { const wordEl = document.querySelector("[data-hero-rotator-word]"); if (!wordEl) return; - const words = ["time", "customers", "money"]; + const words = document.documentElement.lang === "ru" + ? ["время", "деньги", "клиентов"] + : ["time", "money", "customers"]; if (!words.length) return; if (prefersReducedMotion()) { wordEl.textContent = words[0]; diff --git a/src/pages/index.en.html b/src/pages/index.en.html index e5a44b9..7a30dfb 100644 --- a/src/pages/index.en.html +++ b/src/pages/index.en.html @@ -20,7 +20,7 @@

Nikolay Mamadaev

- I bring order to where business loses + I help businesses avoid losing: time diff --git a/src/pages/index.html b/src/pages/index.html index 96dae75..ad47175 100644 --- a/src/pages/index.html +++ b/src/pages/index.html @@ -20,7 +20,7 @@

Николай Мамадаев

- Навожу порядок там, где бизнес теряет + Помогаю бизнесу не терять: время