diff --git a/netlify-arvio-tv-site/assets/home-v2.css b/netlify-arvio-tv-site/assets/home-v2.css index 5c80ff8ba..87f438991 100644 --- a/netlify-arvio-tv-site/assets/home-v2.css +++ b/netlify-arvio-tv-site/assets/home-v2.css @@ -35,6 +35,10 @@ /* Premium is a primary destination; the free APK remains a separate choice. */ .nav .nav-premium-link{color:var(--mint)} .nav .nav-premium{flex-shrink:0} +.nav-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.nav-actions .button{white-space:nowrap}.nav-actions .button:focus-visible{outline:2px solid var(--mint);outline-offset:3px} +@media(max-width:900px){.nav nav{display:none}} +@media(max-width:520px){.nav{padding-inline:12px;gap:8px}.nav-actions{gap:8px}.nav .nav-actions .button{padding:10px;gap:8px;min-height:42px;font-size:11px}.nav-actions .button span{font-size:16px}} +@media(max-width:360px){.nav .brand img{width:76px}.nav-actions .button span{display:none}} .hero-v2 .hero-copy>.preview-button{display:inline-flex;padding:0;margin:17px 24px 0 0;min-height:44px;font-size:12px;vertical-align:middle} .hero-v2 .hero-copy>.hero-community-link{vertical-align:middle;margin-top:17px} .hero-v2 .hero-copy>.hero-premium-note{font-size:12px;line-height:1.7;color:#b5cdc0;max-width:370px;margin:14px 0 0} diff --git a/netlify-arvio-tv-site/es/index.html b/netlify-arvio-tv-site/es/index.html index 0c5d9ac62..a3a290c96 100644 --- a/netlify-arvio-tv-site/es/index.html +++ b/netlify-arvio-tv-site/es/index.html @@ -28,7 +28,7 @@ ARVIO — Reproductor gratis para Android TV y APK - + @@ -36,7 +36,10 @@
@@ -106,7 +109,7 @@

Tu contenido.
Ver las 32 capturas TV · Móvil · Tableta · Web

- + diff --git a/netlify-arvio-tv-site/index.html b/netlify-arvio-tv-site/index.html index d0cec09f1..8e8c6b38e 100644 --- a/netlify-arvio-tv-site/index.html +++ b/netlify-arvio-tv-site/index.html @@ -27,7 +27,7 @@ ARVIO — Free Android TV Media Player & APK - + @@ -35,7 +35,10 @@
diff --git a/netlify-arvio-tv-site/pt-br/index.html b/netlify-arvio-tv-site/pt-br/index.html index 0249301f8..03abe00ca 100644 --- a/netlify-arvio-tv-site/pt-br/index.html +++ b/netlify-arvio-tv-site/pt-br/index.html @@ -28,7 +28,7 @@ ARVIO — Player gratuito para Android TV e APK - + @@ -36,7 +36,10 @@
@@ -106,7 +109,7 @@

Sua mídia.T

- + diff --git a/netlify-arvio-tv-site/scripts/generate-localized-homepages.mjs b/netlify-arvio-tv-site/scripts/generate-localized-homepages.mjs index 1b5cca513..603f84ab3 100644 --- a/netlify-arvio-tv-site/scripts/generate-localized-homepages.mjs +++ b/netlify-arvio-tv-site/scripts/generate-localized-homepages.mjs @@ -30,6 +30,7 @@ const locales = { }; const copy = [ + ["Web App", "Web App", "App web"], ["Media kit", "Kit de imprensa", "Kit de prensa"], ["Guides", "Guias", "Guías"], ["ARVIO 2.0.", "ARVIO 2.0.", "ARVIO 2.0."], diff --git a/netlify-arvio-tv-site/scripts/home-navigation.test.cjs b/netlify-arvio-tv-site/scripts/home-navigation.test.cjs new file mode 100644 index 000000000..4633f2072 --- /dev/null +++ b/netlify-arvio-tv-site/scripts/home-navigation.test.cjs @@ -0,0 +1,20 @@ +const test = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const path = require('node:path'); + +const site = path.resolve(__dirname, '..'); + +for (const file of ['index.html', 'es/index.html', 'pt-br/index.html']) { + test(`${file}: Web App and Premium stay together in the header`, () => { + const html = fs.readFileSync(path.join(site, file), 'utf8'); + const header = html.match(/]*>([\s\S]*?)<\/header>/u)?.[1]; + const actions = header?.match(/