feat: a video on several products, sound and expand on the floating player, upright vertical video, looping cards at the foot of the home (Rodada 5, D7)
site_videos.products (the old product column is kept and copied); one floating video per product checks the overlap and names it. The floating player starts muted, with a sound button that says its state and an expand button to the large player. A vertical video stands upright on the floating and the large player. The home's videos move to its foot as muted looping cards that play only on screen, not at all with reduced motion, and open the large player. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -64,17 +64,21 @@ section+section{border-top:0}
|
||||
.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{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px;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 video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px;background:#000}
|
||||
.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}
|
||||
.videoCard[data-soon="1"]:hover{border-color:var(--linha)}
|
||||
.videoFloat{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));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:44px;height:44px;border:0;border-radius:999px;background:rgba(0,0,0,.62);color:#fff;font-size:20px;line-height:1;cursor:pointer}
|
||||
.videoFloat.vertical{width:min(180px,40vw);max-height:70vh}
|
||||
.videoFloat.vertical video{aspect-ratio:9/16}
|
||||
.videoFloat .vfActions{position:absolute;top:8px;right:8px;display:flex;gap:8px}
|
||||
.videoFloat .vfActions button{width:44px;height:44px;padding:0;border:0;border-radius:999px;background:rgba(0,0,0,.62);color:#fff;font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
|
||||
.videoFloat .vfActions button:focus-visible{outline:3px solid var(--laranja);outline-offset:2px}
|
||||
.videoFloat .vfActions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
|
||||
.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}
|
||||
.videoAberto{overflow:hidden}
|
||||
@@ -82,6 +86,8 @@ section+section{border-top:0}
|
||||
.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.vertical .vmBox{width:auto;max-width:100%}
|
||||
.videoModal.vertical video{width:auto;max-width:100%;max-height:86vh}
|
||||
.videoModal .vmClose{position:absolute;top:10px;right:10px;width:44px;height:44px;border:0;border-radius:999px;background:rgba(0,0,0,.65);color:#fff;font-size:22px;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}}
|
||||
|
||||
Reference in New Issue
Block a user