feat: the Site has a videos area and a floating product video (front 4)
All checks were successful
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 4m18s
Build and deploy / Publish images (push) Successful in 1m5s
All checks were successful
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 4m18s
Build and deploy / Publish images (push) Successful in 1m5s
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".
This commit is contained in:
@@ -14,9 +14,9 @@ h1,h2,h3,h4{font-family:"Inter",sans-serif}
|
||||
|
||||
/* Pages (site-pages.js): the home, a product page and the cart show only their own parts. */
|
||||
html[data-rota="inicio"] :is(#passos,#foco,#qual,#prev,#carr,.checkout,#carrVazio),
|
||||
html[data-rota="produto"] :is(.hero2,.etapas2,#cards,#carr,.checkout,#carrVazio,#info),
|
||||
html[data-rota="carrinho"] :is(.hero2,.etapas2,#cards,#foco,#qual,#prev,#info,.pagCab,.pagResumo){display:none!important}
|
||||
html:is([data-rota="pagamento"],[data-rota="pix"]) :is(.hero2,.etapas2,#cards,#foco,#qual,#prev,#info,#carr,#carrVazio,#desfazer){display:none!important}
|
||||
html[data-rota="produto"] :is(.hero2,.etapas2,#videos,#cards,#carr,.checkout,#carrVazio,#info),
|
||||
html[data-rota="carrinho"] :is(.hero2,.etapas2,#videos,#cards,#foco,#qual,#prev,#info,.pagCab,.pagResumo){display:none!important}
|
||||
html:is([data-rota="pagamento"],[data-rota="pix"]) :is(.hero2,.etapas2,#videos,#cards,#foco,#qual,#prev,#info,#carr,#carrVazio,#desfazer){display:none!important}
|
||||
html[data-sem-itens] #carr{display:none!important}
|
||||
html:not([data-rota="inicio"]) #envio{padding-top:0;padding-bottom:64px;min-height:70vh}
|
||||
#envio,#foco,#qual,#prev,#checkoutStatus{scroll-margin-top:var(--topo-passos,128px)}
|
||||
@@ -58,6 +58,31 @@ html:not([data-rota="inicio"]) #envio{padding-top:0;padding-bottom:64px;min-heig
|
||||
.etapas2 b{font-family:"Inter",sans-serif;font-size:17px}
|
||||
.etapas2 p{margin-top:3px;font-size:16px;color:var(--fraco)}
|
||||
section+section{border-top:0}
|
||||
/* Videos (front 4) */
|
||||
.videos2{padding:52px 0;border-bottom:1px solid var(--linha);background:#fff}
|
||||
.videosCab{display:flex;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:22px}
|
||||
.videosCab h2{margin-top:8px;font-size:clamp(28px,3vw,38px);font-weight:800;letter-spacing:-.02em}
|
||||
.videosCab p{margin-left:auto;max-width:440px;font-size:16.5px;color:var(--fraco)}
|
||||
.videosGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
|
||||
.videoCard{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:170px;padding:20px;border:1px solid var(--linha);border-radius:14px;background:var(--cinza);color:var(--preto);text-align:left;font:inherit;cursor:pointer}
|
||||
.videoCard:hover{border-color:var(--laranja)}
|
||||
.videoCard .vcPlay{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:999px;background:var(--laranja);color:var(--preto);font-size:16px;font-weight:900}
|
||||
.videoCard b{font-family:"Inter",sans-serif;font-size:17px;line-height:1.25}
|
||||
.videoCard span{font-size:14.5px;line-height:1.4;color:var(--fraco)}
|
||||
.videoCard em{margin-top:auto;font-style:normal;font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--laranja-escuro)}
|
||||
.videoCard[data-soon="1"]{cursor:default;opacity:.72}
|
||||
.videoFloat{position:fixed;right:22px;bottom:22px;z-index:70;width:min(280px,calc(100vw - 32px));border-radius:14px;overflow:hidden;background:var(--preto);box-shadow:0 14px 40px rgba(3,6,11,.35)}
|
||||
.videoFloat video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000}
|
||||
.videoFloat .vfClose{position:absolute;top:8px;right:8px;width:30px;height:30px;border:0;border-radius:999px;background:rgba(0,0,0,.62);color:#fff;font-size:18px;line-height:1;cursor:pointer}
|
||||
.videoFloat .vfLabel{padding:8px 12px;color:#fff;font-size:13px;line-height:1.3}
|
||||
.videoFloat .vfLabel b{display:block;font-family:"Inter",sans-serif;font-size:14px}
|
||||
.videoModal{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(3,6,11,.78)}
|
||||
.videoModal[hidden]{display:none}
|
||||
.videoModal .vmBox{position:relative;width:min(920px,100%);border-radius:16px;overflow:hidden;background:#000}
|
||||
.videoModal video{display:block;width:100%;height:auto;max-height:82vh;background:#000}
|
||||
.videoModal .vmClose{position:absolute;top:10px;right:10px;width:34px;height:34px;border:0;border-radius:999px;background:rgba(0,0,0,.65);color:#fff;font-size:20px;cursor:pointer}
|
||||
@media(max-width:900px){.videosGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
|
||||
@media(max-width:620px){.videosGrid{grid-template-columns:1fr}.videos2{padding:36px 0}}
|
||||
|
||||
/* Product chooser */
|
||||
#envio{padding-top:56px}
|
||||
|
||||
Reference in New Issue
Block a user