site: unify section indices, show current lang, smarter highlight carousel

- Section badges are now consistently 'N / 07' everywhere (was mixing 06/07)
  and get a localized title tooltip explaining 'Section N of 7'.
- Language toggle now shows the CURRENT language (RU/EN) instead of the
  next one, so the state is obvious before clicking.
- Carousel: manual navigation (arrows/dots) holds the slide 22s before
  resuming, idle auto-advance returns to 6.5s; video slides no longer loop
  and only advance when playback actually ends.
This commit is contained in:
SashegDev
2026-08-20 14:52:25 +00:00
parent 7068558137
commit 592de204b6
2 changed files with 64 additions and 17 deletions
+3 -3
View File
@@ -70,7 +70,7 @@
<section class="section server" id="server">
<div class="section-head">
<span class="section-index">01 / 06</span>
<span class="section-index">01 / 07</span>
<h2 class="section-title" data-i18n-html="server.title">Сервер <span class="accent">жив.</span></h2>
<p class="section-sub" data-i18n="server.sub">ZernMC — это кастомный Minecraft-сервер со своим лором, самописными плагинами и живым комьюнити. Вот что происходит прямо сейчас.</p>
</div>
@@ -96,7 +96,7 @@
<section class="section highlights" id="highlights">
<div class="section-head">
<span class="section-index">02 / 06</span>
<span class="section-index">02 / 07</span>
<h2 class="section-title" data-i18n-html="highlights.title">Хайлайты <span class="accent">сервера.</span></h2>
<p class="section-sub" data-i18n="highlights.sub">Моменты, запечатлённые на сервере ZernMC — войны, постройки и хаос.</p>
</div>
@@ -111,7 +111,7 @@
<section class="section features" id="features">
<div class="section-head">
<span class="section-index">03 / 06</span>
<span class="section-index">03 / 07</span>
<h2 class="section-title" data-i18n-html="features.title">Всё, что <span class="accent">тебе нужно.</span></h2>
<p class="section-sub" data-i18n="features.sub">Лаунчер, который делает всю тяжёлую работу, чтобы ты просто играл.</p>
</div>