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

De Wiki Gla
Ir para navegação Ir para pesquisar
Linha 22: Linha 22:
   <!-- Card 3 -->
   <!-- Card 3 -->
   <div class="home-button-item">
   <div class="home-button-item">
     <a href="/wiki/BoostSystem" title="Boost System">
     <a href="/index.php/Boss_Semanais" title="Semanais">
       <div class="home-button-image">
       <div class="home-button-image">
         <img src="URL_DA_IMAGEM_BOOST" alt="Boost System">
         <img src="https://wiki.gla.com.br/images/6/65/Weeklyboss_card.png" alt="Weekly Bosses">
       </div>
       </div>
       <div class="home-button-title">BOOST SYSTEM</div>
       <div class="home-button-title">SEMANAIS</div>
     </a>
     </a>
   </div>
   </div>
Linha 32: Linha 32:
   <!-- Card 4 -->
   <!-- Card 4 -->
   <div class="home-button-item">
   <div class="home-button-item">
     <a href="/wiki/NolandTales" title="Noland Tales">
     <a href="/index.php/World_Boss" title="World Bosses">
       <div class="home-button-image">
       <div class="home-button-image">
         <img src="URL_DA_IMAGEM_NOLAND" alt="Noland Tales">
         <img src="https://wiki.gla.com.br/images/8/87/Worldboss_card.png" alt="World Bosses">
       </div>
       </div>
       <div class="home-button-title">NOLAND TALES</div>
       <div class="home-button-title">WORLD BOSS</div>
     </a>
     </a>
   </div>
   </div>


   <div class="home-button-item">
   <div class="home-button-item">
     <a href="/wiki/NolandTales" title="Noland Tales">
     <a href="/index.php/Wanted_Pirates" title="Piratas Procurados">
       <div class="home-button-image">
       <div class="home-button-image">
         <img src="URL_DA_IMAGEM_NOLAND" alt="Noland Tales">
         <img src="https://wiki.gla.com.br/images/9/9d/Wantedpirates_card.png" alt="Wanted Pirates">
       </div>
       </div>
       <div class="home-button-title">NOLAND TALES</div>
       <div class="home-button-title">WANTED PIRATES</div>
     </a>
     </a>
   </div>
   </div>

Edição das 18h54min de 28 de março de 2025

   <a href="/index.php/Personagens" title="Personagens">
PERSONAGENS
   </a>
   <a href="/index.php/Itens" title="Itens">
ITENS
   </a>
   <a href="/index.php/Boss_Semanais" title="Semanais">
SEMANAIS
   </a>
   <a href="/index.php/World_Boss" title="World Bosses">
WORLD BOSS
   </a>
   <a href="/index.php/Wanted_Pirates" title="Piratas Procurados">
WANTED PIRATES
   </a>
   <a href="/wiki/NolandTales" title="Noland Tales">
       <img src="URL_DA_IMAGEM_NOLAND" alt="Noland Tales">
NOLAND TALES
   </a>
   <a href="/wiki/NolandTales" title="Noland Tales">
       <img src="URL_DA_IMAGEM_NOLAND" alt="Noland Tales">
NOLAND TALES
   </a>
   <a href="/wiki/NolandTales" title="Noland Tales">
       <img src="URL_DA_IMAGEM_NOLAND" alt="Noland Tales">
NOLAND TALES
   </a>

<style> .home-button-container {

 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 10px;
 padding: 10px;
 box-sizing: border-box;

}

.home-button-item {

 position: relative;
 overflow: hidden;
 border: 1px solid #ddd;
 border-radius: 8px;
 background: #fff;
 /* Animar só borda e sombra */
 transition: box-shadow 0.3s ease, border-color 0.3s ease;
 box-sizing: border-box;

}

.home-button-item:hover {

 border-color: #007bff;
 box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);

}

/* O link continua sendo bloco clicável */ .home-button-item a {

 display: block;
 text-decoration: none;
 color: inherit;

}

/* Imagem em 16:9 (ajuste se quiser) */ .home-button-image {

 width: 100%;
 aspect-ratio: 16/9;
 overflow: hidden;

}

.home-button-image img {

 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 /* Vamos animar o scale e o filter */
 transition: transform 0.3s ease, filter 0.3s ease;

}

/* Ao hover no card, aumentamos a imagem levemente e clareamos */ .home-button-item:hover .home-button-image img {

 transform: scale(1.02);
 filter: brightness(1.1);

}

/* Título do botão */ .home-button-title {

 font-weight: bold;
 font-size: 1.1em;
 background: #fff;
 color: #000;
 margin: 0;
 padding: 10px 5px;
 position: relative;
 text-transform: uppercase;
 border-top: 1px solid #ddd;
 text-align: center;
 transition: background-color 0.3s ease;

}

/* Leve highlight no fundo do título no hover */ .home-button-item:hover .home-button-title {

 background-color: #f9f9f9;

}

/* Responsividade: 2 colunas abaixo de 1280px, por exemplo */ @media (max-width: 1280px) {

 .home-button-container {
   grid-template-columns: repeat(2, 1fr);
 }

} </style>