Mudanças entre as edições de "Widget:VisnoTeste"

De Wiki Gla
Ir para navegação Ir para pesquisar
(Criou página com '<div class="infobox-boss-wide"> <div class="infobox-boss-right"> <div class="infobox-skill-info-area"> <div class="skill-box"> <div class="infobox-skill-ta...')
 
Linha 102: Linha 102:
}
}
.skill-box {
.skill-box {
   background: rgba(255,255,255,0.15);
   background: none;;
   color: #222;
   color: #222;
   border-radius: 12px;
   border-radius: 12px;

Edição das 18h45min de 20 de maio de 2025

         <button class="infobox-skill-tab active" data-video="video1">Golpe Congelante</button>
         <button class="infobox-skill-tab" data-video="video2">Muralha de Gelo</button>
         <button class="infobox-skill-tab" data-video="video3">Explosão Ártica</button>
         Golpe Congelante: Causa dano em área e reduz a velocidade dos inimigos.
     <video id="video1" class="skill-video" controls autoplay loop>
       <source src="https://wiki.gla.com.br/images/2/22/Aokiji_sk3.webm" type="video/mp4">
       Seu navegador não suporta vídeo.
     </video>
     <video id="video2" class="skill-video" controls autoplay loop style="display:none"></video>
     <video id="video3" class="skill-video" controls autoplay loop style="display:none"></video>

<script>

 const videoSources = {
   video1: "https://wiki.gla.com.br/images/2/22/Aokiji_sk3.webm",
   video2: "https://wiki.gla.com.br/images/6/6b/Aokiji_sk2.webm",
   video3: "https://wiki.gla.com.br/images/7/76/Aokiji_sk1.webm"
 };
 const skillDescriptions = {
   video1: "Golpe Congelante: Causa dano em área e reduz a velocidade dos inimigos.",
   video2: "Muralha de Gelo: Cria uma barreira protetora de gelo.",
   video3: "Explosão Ártica: Dispara fragmentos de gelo em várias direções."
 };
 const tabs = document.querySelectorAll('.infobox-skill-tab');
 const videos = document.querySelectorAll('.skill-video');
 const desc = document.getElementById('desc-text');
 tabs.forEach(tab => {
   tab.addEventListener('click', () => {
     tabs.forEach(i => i.classList.remove('active'));
     tab.classList.add('active');
     const vid = tab.getAttribute('data-video');
     desc.textContent = skillDescriptions[vid];
     videos.forEach(v => {
       if (v.id === vid) {
         if (!v.querySelector('source')) {
           const source = document.createElement('source');
           source.src = videoSources[vid];
           source.type = "video/mp4";
           v.appendChild(source);
         }
         v.style.display = ;
         v.load();
         v.play();
       } else {
         v.pause();
         v.style.display = 'none';
         while (v.firstChild) v.removeChild(v.firstChild);
       }
     });
   });
 });

</script>

<style>

body {
 background: transparent;
 margin: 0;
 padding: 0;
 min-height: 100vh;
 width: 100vw;
 box-sizing: border-box;
 display: flex;
 align-items: center;
 justify-content: center;

} .infobox-boss-wide {

 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 width: 100vw;
 min-height: 100vh;
 background: transparent;
 border: none;
 border-radius: 12px;
 box-shadow: none;
 font-family: sans-serif;
 color: #222;
 overflow: hidden;

} .infobox-boss-right {

 width: 100%;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;

} .skill-box {

 background: none;;
 color: #222;
 border-radius: 12px;
 box-shadow: none;
 width: 100%;
 max-width: 700px;
 box-sizing: border-box;
 padding: 24px 24px 20px 24px;
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 18px;
 backdrop-filter: blur(2px);
 margin: 0 auto 24px auto;

} .infobox-skill-info-area {

 width: 100%;
 max-width: 900px;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 margin-bottom: 16px;
 margin-top: 24px;
 gap: 12px;

} .infobox-skill-tabs {

 display: flex;
 gap: 12px;
 justify-content: center;
 margin-bottom: 0;
 width: 100%;

} .infobox-skill-tab {

 cursor: pointer;
 background: #fff;
 color: #222;
 border: 2px solid #ffc107;
 border-radius: 8px;
 padding: 10px 24px;
 font-size: 1em;
 font-weight: bold;
 transition: 0.2s;
 box-shadow: 0 2px 8px rgba(0,0,0,0.08);
 opacity: 0.7;
 margin-bottom: 0;

} .infobox-skill-tab.active, .infobox-skill-tab:hover {

 opacity: 1;
 background: #ffc107;
 color: #181f2a;
 border-color: #ffc107;

} .skill-desc {

 font-size: 1.08em;
 width: 100%;
 text-align: center;
 font-weight: 500;
 line-height: 1.5;
 margin-top: 0;
 margin-bottom: 0;
 background: none;
 color: #222;
 box-shadow: none;
 border-radius: 0;
 padding: 0;

} .infobox-skill-video-area {

 width: 100%;
 max-width: 900px;
 min-height: 270px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: transparent;
 border-radius: 8px;
 margin-top: 0;
 margin-bottom: 0;
 box-shadow: none;
 padding: 16px 0;
 margin-left: auto;
 margin-right: auto;

} .skill-video {

 width: 100%;
 height: auto;
 max-width: 700px;
 border-radius: 8px;
 background: #000;
 display: block;
 margin: 0 auto;

} @media (max-width: 900px) {

 .infobox-boss-wide {
   min-height: unset;
 }
 .infobox-skill-info-area,
 .infobox-skill-video-area {
   max-width: 100vw;
   width: 100%;
   padding: 0 2vw;
 }
 .skill-video,
 .skill-box {
   max-width: 100vw;
   width: 100%;
 }

}

</style>