diff --git a/public/assets/client-settings-en.png b/public/assets/client-settings-en.png new file mode 100644 index 0000000..d308351 Binary files /dev/null and b/public/assets/client-settings-en.png differ diff --git a/public/assets/client-settings-ru.png b/public/assets/client-settings-ru.png new file mode 100644 index 0000000..b2a2571 Binary files /dev/null and b/public/assets/client-settings-ru.png differ diff --git a/public/assets/client-settings.png b/public/assets/client-settings.png deleted file mode 100644 index af549d4..0000000 Binary files a/public/assets/client-settings.png and /dev/null differ diff --git a/src/app.ts b/src/app.ts index 9c01fdf..2c6f874 100644 --- a/src/app.ts +++ b/src/app.ts @@ -118,7 +118,7 @@ function landing() {
${tr("projectTitle", "h2", 'id="project-title"')}${tr("projectText", "p")}
${icon("chat", 24)}
${tr("projectNative", "h3")}${tr("projectNativeText", "p")}
${icon("voice", 24)}
${tr("projectServer", "h3")}${tr("projectServerText", "p")}
${tr("projectCentral", "h3")}${tr("projectCentralText", "p")}
${tr("lightTitle", "h2", 'id="light-title"')}${tr("lightText", "p")}
${tr("lightVnoxName")}${tr("lightAbout")} 120 ${tr("lightUnit")}
${tr("lightElectronName")}${tr("lightElectronValue")}
${tr("lightCaption", "p", 'class="small light-caption"')}
-
${tr("clientTitle", "h2", 'id="client-title"')}${tr("clientText", "p")}
${t(${tr("screenshotCaption", "figcaption")}
${tr("appearanceTitle", "h3")}${tr("appearanceText", "p")}
${tr("identityTitle", "h3")}${tr("identityText", "p")}
+
${tr("clientTitle", "h2", 'id="client-title"')}${tr("clientText", "p")}
${t(${tr("screenshotCaption", "figcaption")}
${tr("appearanceTitle", "h3")}${tr("appearanceText", "p")}
${tr("identityTitle", "h3")}${tr("identityText", "p")}
${tr("roadmapTitle", "h2", 'id="roadmap-title"')}${tr("roadmapText", "p")}

${tr("available")}

  • ${tr("availableOne")}
  • ${tr("availableTwo")}
  • ${tr("availableThree")}
  • ${tr("availableFour")}
  • ${tr("availableFive")}

${tr("next")}

  • ${tr("nextOne")}
  • ${tr("nextTwo")}
  • ${tr("nextThree")}
${tr("downloadNote", "p", 'class="release-note"')}
${tr("faqTitle", "h2", 'id="faq-title"')}
${(["Server", "Central", "Release"] as const).map((key) => `
${tr(`faq${key}`)}${tr(`faq${key}Answer`, "p")}
`).join("")}

${t("statusLoading")}

${tr("openCentral")}${icon("external", 15)}
`; @@ -802,6 +802,11 @@ function setLanguage(next: Language) { (element) => (element.textContent = t(element.dataset.i18n as MessageKey)), ); + document + .querySelectorAll("[data-i18n-src]") + .forEach((image) => + image.setAttribute("src", t(image.dataset.i18nSrc as MessageKey)), + ); for (const [attribute, dataKey] of [ ["aria-label", "i18nAria"], ["alt", "i18nAlt"], diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 6798b07..b4f7737 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -90,6 +90,7 @@ export const en = { clientTitle: "Appearance settings", clientText: "Four themes (light, dark, mega dark and custom), text size, audio and profile.", + clientImage: "/assets/client-settings-en.png", clientScreenshot: "Appearance settings in the VNOX client: four themes and a text size slider.", screenshotCaption: diff --git a/src/i18n/ru.ts b/src/i18n/ru.ts index bdd8d63..187e9e5 100644 --- a/src/i18n/ru.ts +++ b/src/i18n/ru.ts @@ -92,6 +92,7 @@ export const ru: Catalog = { clientTitle: "Настройки внешнего вида", clientText: "Четыре темы (светлая, тёмная, мега-тёмная и своя), размер текста, звук и профиль.", + clientImage: "/assets/client-settings-ru.png", clientScreenshot: "Настройки внешнего вида в клиенте VNOX: четыре темы и размер текста.", screenshotCaption: "Настоящий снимок клиента. Интерфейс ещё меняется.", diff --git a/src/styles.css b/src/styles.css index 280f2e4..ad86df9 100644 --- a/src/styles.css +++ b/src/styles.css @@ -723,7 +723,9 @@ p { margin-bottom: 3px; } .client-image { - margin: 0; + width: fit-content; + max-width: 100%; + margin: 0 auto; background: #18181a; padding: 10px; border: 1px solid #46433f; @@ -731,8 +733,12 @@ p { overflow: hidden; } .client-image img { - width: 100%; + display: block; + width: auto; + max-width: 100%; + max-height: 72vh; height: auto; + margin-inline: auto; border-radius: 5px; } .client-image figcaption {