From 7e222622808a8a9fa642fad4d64307d32f0bb352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Fri, 6 Nov 2026 12:44:33 -0300 Subject: [PATCH] feat: the Site has a videos area and a floating product video (front 4) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The home lists the six DTF videos with their titles and state; a card opens a modal player. A product page gets a muted, captioned 30 s floating video when its file is configured. The files themselves are still to be recorded; until then the cards say "Em produção". --- tests/artwork_browser_test.mjs | 2 + web/index.html | 10 +++ web/site-v2.css | 31 ++++++- web/site-videos.js | 147 +++++++++++++++++++++++++++++++++ 4 files changed, 187 insertions(+), 3 deletions(-) create mode 100644 web/site-videos.js diff --git a/tests/artwork_browser_test.mjs b/tests/artwork_browser_test.mjs index 580fb14..4e4ec1a 100644 --- a/tests/artwork_browser_test.mjs +++ b/tests/artwork_browser_test.mjs @@ -116,6 +116,8 @@ try{ await call('Emulation.setDeviceMetricsOverride',{width:1440,height:1100,deviceScaleFactor:1,mobile:false}); await call('Page.navigate',{url:`http://127.0.0.1:${server.address().port}/`}); await waitFor(()=>evaluate(`typeof sel==='function' && typeof pintaEntrega==='function'`),'Site scripts'); + assert.equal(await evaluate(`document.querySelectorAll('#videosGrid .videoCard').length`),6); + assert.equal(await evaluate(`document.querySelector('#videosGrid').textContent.includes('Subindo a arte pelo celular')`),true); // Observe the actual engine, without replacing its placement or rendering. await evaluate(`(()=>{ const original=encaixar; diff --git a/web/index.html b/web/index.html index ecd3b43..1e41557 100644 --- a/web/index.html +++ b/web/index.html @@ -750,6 +750,15 @@ h2 em{font-style:normal;color:var(--laranja)}
4
Acompanhe

Em Minha conta, com aviso no WhatsApp quando ficar pronto.

+ +
+
+
Vídeos

A DTF por dentro

+

Do upload à retirada: o que acontece com a sua arte, sem letra miúda.

+
+
+
+