Mudanças entre as edições de "Widget:MainPageMenu"
Ir para navegação
Ir para pesquisar
Etiqueta: Revertido |
m |
||
| (25 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
| Linha 1: | Linha 1: | ||
<div class="home-button-container"> | <div class="home-button-container"> | ||
<!-- 1. Personagens --> | <!-- 1. Personagens --> | ||
<div class="home-button-item"> | <div class="home-button-item"> | ||
<a href="/index.php/Personagens"> | <a href="/index.php/Personagens"> | ||
<div class="home-button-image"> | <div class="home-button-image"> | ||
<img src="https://wiki.gla.com.br/images/a/a8/Personagens_card.png"> | <img src="https://wiki.gla.com.br/images/a/a8/Personagens_card.png"> | ||
</div> | </div> | ||
<div class="home-button-title">Personagens</div> | <div class="home-button-title">Personagens</div> | ||
</a> | </a> | ||
</div> | |||
</div> | |||
<!-- | <!-- 2. Missões --> | ||
<div class="home-button-item"> | <div class="home-button-item"> | ||
<a href="/index.php/ | <a href="/index.php/Missões"> | ||
<div class="home-button-image"> | <div class="home-button-image"> | ||
<img src="https://wiki.gla.com.br/images/ | <img src="https://wiki.gla.com.br/images/0/08/Missoes_card.png"> | ||
</div> | </div> | ||
<div class="home-button-title"> | <div class="home-button-title">Missões</div> | ||
</a> | </a> | ||
</div> | </div> | ||
<!-- | <!-- 3. Itens --> | ||
<div class="home-button-item"> | <div class="home-button-item"> | ||
<a href="/index.php/ | <a href="/index.php/Itens"> | ||
<div class="home-button-image"> | <div class="home-button-image"> | ||
<img src="https://wiki.gla.com.br/images/ | <img src="https://wiki.gla.com.br/images/3/39/Itens_card.png"> | ||
</div> | </div> | ||
<div class="home-button-title"> | <div class="home-button-title">Itens</div> | ||
</a> | </a> | ||
</div> | </div> | ||
<!-- | <!-- 4. Bosses (desativado) --> | ||
<div class="home-button-item"> | <div class="home-button-item"> | ||
<a href="/index.php/ | <a href="/index.php/Bosses"> | ||
<div class="home-button-image"> | <div class="home-button-image"> | ||
<img src="https://wiki.gla.com.br/images/ | <img src="https://wiki.gla.com.br/images/8/87/Worldboss_card.png"> | ||
</div> | </div> | ||
<div class="home-button-title"> | <div class="home-button-title">Bosses</div> | ||
</a> | </a> | ||
</div> | </div> | ||
<!-- | <!-- 5. Wanted Pirates --> | ||
<div class="home-button-item"> | <div class="home-button-item"> | ||
<a href="/index.php/ | <a href="/index.php/Wanted_Pirates"> | ||
<div class="home-button-image"> | <div class="home-button-image"> | ||
<img src="https://wiki.gla.com.br/images/ | <img src="https://wiki.gla.com.br/images/9/9d/Wantedpirates_card.png"> | ||
</div> | </div> | ||
<div class="home-button-title"> | <div class="home-button-title">Wanted Pirates</div> | ||
</a> | </a> | ||
</div> | </div> | ||
<!-- | <!-- 6. Baús --> | ||
<div class="home-button-item"> | <div class="home-button-item"> | ||
<a href="/index.php/ | <a href="/index.php/Baús"> | ||
<div class="home-button-image"> | <div class="home-button-image"> | ||
<img src="https://wiki.gla.com.br/images/ | <img src="https://wiki.gla.com.br/images/a/a9/Conquistas_card.png"> | ||
</div> | </div> | ||
<div class="home-button-title"> | <div class="home-button-title">Baús</div> | ||
</a> | </a> | ||
</div> | </div> | ||
<!-- | <!-- 7. Passe de Batalha --> | ||
<div class="home-button-item"> | <div class="home-button-item"> | ||
<a href="/index.php/ | <a href="/index.php/Passe de Batalha"> | ||
<div class="home-button-image"> | <div class="home-button-image"> | ||
<img src="https://wiki.gla.com.br/images/ | <img src="https://wiki.gla.com.br/images/7/7d/Passe_card.png"> | ||
</div> | </div> | ||
<div class="home-button-title"> | <div class="home-button-title">Passe de Batalha</div> | ||
</a> | </a> | ||
</div> | </div> | ||
<!-- | <!-- 8. Melhoria de Equipamentos --> | ||
<div class="home-button-item"> | <div class="home-button-item"> | ||
<a href="/index.php/ | <a href="/index.php/Sistema_de_Boost"> | ||
<div class="home-button-image"> | <div class="home-button-image"> | ||
<img src="https://wiki.gla.com.br/images/ | <img src="https://wiki.gla.com.br/images/5/5b/Sistemadeboost_card.png"> | ||
</div> | </div> | ||
<div class="home-button-title"> | <div class="home-button-title">Sistema de Boost</div> | ||
</a> | </a> | ||
</div> | |||
</div> | </div> | ||
< | <style> | ||
.home-button-container { | |||
display: grid; | |||
grid-template-columns: repeat(4, 1fr); | |||
gap: 20px; | |||
padding: 10px; | |||
box-sizing: border-box; | |||
font-family: "Noto Sans", sans-serif; | |||
} | |||
.home-button-item { | |||
width: 100%; | |||
display: flex; | |||
flex-direction: column; | |||
overflow: hidden; | |||
border: 1px solid #bbb; | |||
border-radius: 12px; | |||
background: #fff; | |||
transition: transform 0.2s ease-out, | |||
box-shadow 0.2s ease-out, | |||
border-color 0.2s ease-out; | |||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); | |||
box-sizing: border-box; | |||
} | |||
.home-button-item:hover { | |||
.home-button- | transform: translateY(-3px); | ||
border-color: #007bff; | |||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12); | |||
} | |||
} | |||
.home-button-item { | .home-button-item a { | ||
display: block; | |||
color: inherit; | |||
text-decoration: none; | |||
height: 100%; | |||
} | |||
} | |||
.home-button- | .home-button-image { | ||
width: 100%; | |||
aspect-ratio: 16/9; | |||
overflow: hidden; | |||
} | flex-shrink: 0; | ||
} | |||
.home-button- | .home-button-image img { | ||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
} | display: block; | ||
border-top-left-radius: 12px; | |||
border-top-right-radius: 12px; | |||
transition: filter 0.3s ease; | |||
} | |||
.home-button-image { | .home-button-item:hover .home-button-image img { | ||
filter: brightness(1.1); | |||
} | |||
} | |||
.home-button- | .home-button-title { | ||
font-family: "Noto Sans", sans-serif; | |||
font-weight: bold; | |||
font-size: clamp(1em, 4vw, 1.2em); | |||
text-align: center; | |||
text-transform: uppercase; | |||
padding: 10px; | |||
background: #fff; | |||
} | color: #0645AD; | ||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); | |||
flex-shrink: 0; | |||
} | |||
.home-button-item: | .home-button-item.disabled { | ||
opacity: 0.4; | |||
} | pointer-events: none; | ||
border-color: #bbb; | |||
box-shadow: none; | |||
} | |||
.home-button- | @media screen and (max-width: 1024px) { | ||
.home-button-container { | |||
grid-template-columns: repeat(2, 1fr); | |||
} | |||
} | |||
} | |||
@media screen and (max-width: 600px) { | |||
.home-button-container { | |||
} | grid-template-columns: 1fr; | ||
} | |||
} | |||
.home-button- | @media screen and (max-width: 1280px) { | ||
.home-button-container { | |||
grid-template-columns: repeat(3, 1fr); | |||
} | |||
} | |||
.home-button-item | .home-button-item { | ||
justify-self: stretch; | |||
} | } | ||
.home-button-item:nth-child(7), | |||
.home-button-item:nth-child(8) { | |||
grid-column: span 1; | |||
place-self: center; | |||
} | } | ||
} | |||
</style> | </style> | ||
Edição atual tal como às 14h04min de 30 de junho de 2025
<style>
.home-button-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
padding: 10px;
box-sizing: border-box;
font-family: "Noto Sans", sans-serif;
}
.home-button-item {
width: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
border: 1px solid #bbb;
border-radius: 12px;
background: #fff;
transition: transform 0.2s ease-out,
box-shadow 0.2s ease-out,
border-color 0.2s ease-out;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
box-sizing: border-box;
}
.home-button-item:hover {
transform: translateY(-3px);
border-color: #007bff;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.home-button-item a {
display: block;
color: inherit;
text-decoration: none;
height: 100%;
}
.home-button-image {
width: 100%;
aspect-ratio: 16/9;
overflow: hidden;
flex-shrink: 0;
}
.home-button-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
transition: filter 0.3s ease;
}
.home-button-item:hover .home-button-image img {
filter: brightness(1.1);
}
.home-button-title {
font-family: "Noto Sans", sans-serif;
font-weight: bold;
font-size: clamp(1em, 4vw, 1.2em);
text-align: center;
text-transform: uppercase;
padding: 10px;
background: #fff;
color: #0645AD;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
flex-shrink: 0;
}
.home-button-item.disabled {
opacity: 0.4;
pointer-events: none;
border-color: #bbb;
box-shadow: none;
}
@media screen and (max-width: 1024px) {
.home-button-container {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (max-width: 600px) {
.home-button-container {
grid-template-columns: 1fr;
}
}
@media screen and (max-width: 1280px) {
.home-button-container {
grid-template-columns: repeat(3, 1fr);
}
.home-button-item {
justify-self: stretch;
}
.home-button-item:nth-child(7),
.home-button-item:nth-child(8) {
grid-column: span 1;
place-self: center;
}
}
</style>