Mudanças entre as edições de "Widget:Lari2"
Ir para navegação
Ir para pesquisar
(Criou página com '<div class="gla-achievements-widget"> <div class="gla-achievements-header"> <h2>Conquistas</h2> <p>Acompanhe as conquistas disponíveis no Grand Line Adventures.</p>...') |
|||
| Linha 1: | Linha 1: | ||
<div class="gla-achievements-widget"> | <div class="gla-achievements-widget"> | ||
<div class="gla | |||
<div class="gla-header"> | |||
<h2>Conquistas</h2> | <h2>Conquistas</h2> | ||
<p>Acompanhe as conquistas disponíveis no Grand Line Adventures.</p> | <p>Acompanhe as conquistas disponíveis no Grand Line Adventures.</p> | ||
</div> | </div> | ||
<div class="gla-tabs | <div class="gla-tabs"> | ||
<button class="gla-tab active" data-tab="geral">Geral</button> | <button class="gla-tab active" data-tab="geral">Geral</button> | ||
<button class="gla-tab" data-tab="personagens">Personagens</button> | <button class="gla-tab" data-tab="personagens">Personagens</button> | ||
| Linha 19: | Linha 20: | ||
<button class="gla-tab" data-tab="bossrush">Boss Rush</button> | <button class="gla-tab" data-tab="bossrush">Boss Rush</button> | ||
</div> | </div> | ||
</div> | </div> | ||
<style> | <style> | ||
.gla-achievements-widget { | .gla-achievements-widget { | ||
max-width: 1100px; | max-width: 1100px; | ||
margin: 0 auto | margin: 0 auto 20px; | ||
padding: | padding: 20px; | ||
border-radius: | border-radius: 16px; | ||
background: | background: #ffffff; | ||
border: 1px solid | border: 1px solid #e5e7eb; | ||
} | } | ||
.gla | .gla-header h2 { | ||
margin: 0; | margin: 0; | ||
font-size: 26px; | |||
font-size: | font-weight: 700; | ||
color: #111827; | |||
font-weight: | |||
} | } | ||
.gla | .gla-header p { | ||
margin: | margin: 4px 0 16px; | ||
color: # | color: #6b7280; | ||
font-size: 14px; | font-size: 14px; | ||
} | } | ||
| Linha 60: | Linha 53: | ||
.gla-tab { | .gla-tab { | ||
padding: 8px 14px; | |||
padding: | |||
border-radius: 999px; | border-radius: 999px; | ||
border: 1px solid #d1d5db; | |||
background: #f9fafb; | |||
cursor: pointer; | |||
font-size: 13px; | font-size: 13px; | ||
font-weight: | font-weight: 600; | ||
color: #374151; | |||
transition: all .2s ease; | transition: all 0.2s ease; | ||
} | } | ||
.gla-tab:hover { | .gla-tab:hover { | ||
background | background: #f3f4f6; | ||
} | } | ||
.gla-tab.active { | .gla-tab.active { | ||
background: #111827; | |||
color: #ffffff; | |||
border-color: # | border-color: #111827; | ||
} | } | ||
| Linha 88: | Linha 77: | ||
display: none; | display: none; | ||
max-width: 1100px; | max-width: 1100px; | ||
margin: 0 | margin: 20px auto 0; | ||
} | } | ||
| Linha 95: | Linha 84: | ||
} | } | ||
.gla | .gla-list { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Linha 101: | Linha 90: | ||
} | } | ||
.gla- | .gla-item { | ||
padding: 12px 14px; | |||
padding: 12px | |||
border-radius: 10px; | border-radius: 10px; | ||
border: 1px solid #e5e7eb; | |||
background: #f9fafb; | |||
border: | |||
} | } | ||
.gla- | .gla-item-title { | ||
font-weight: 700; | |||
font-size: 15px; | |||
color: #111827; | |||
} | } | ||
.gla- | .gla-item-desc { | ||
font-size: 13px; | |||
color: #6b7280; | |||
margin-top: 2px; | |||
font-size: | |||
color: # | |||
} | } | ||
</style> | </style> | ||
| Linha 221: | Linha 117: | ||
tabs.forEach(function(tab) { | tabs.forEach(function(tab) { | ||
tab.addEventListener("click", function() { | tab.addEventListener("click", function() { | ||
const | const selected = tab.getAttribute("data-tab"); | ||
tabs.forEach( | tabs.forEach(t => t.classList.remove("active")); | ||
panels.forEach(p => p.classList.remove("active")); | |||
tab.classList.add("active"); | |||
const panel = document.querySelector( | |||
'.gla-tab-panel[data-tab-content="' + selected + '"]' | |||
); | |||
if (panel) panel.classList.add("active"); | |||
}); | }); | ||
}); | }); | ||
}); | }); | ||
</script> | </script> | ||
Edição atual tal como às 13h17min de 29 de abril de 2026
<style> .gla-achievements-widget {
max-width: 1100px; margin: 0 auto 20px; padding: 20px; border-radius: 16px; background: #ffffff; border: 1px solid #e5e7eb;
}
.gla-header h2 {
margin: 0; font-size: 26px; font-weight: 700; color: #111827;
}
.gla-header p {
margin: 4px 0 16px; color: #6b7280; font-size: 14px;
}
.gla-tabs {
display: flex; flex-wrap: wrap; gap: 8px;
}
.gla-tab {
padding: 8px 14px; border-radius: 999px; border: 1px solid #d1d5db; background: #f9fafb; cursor: pointer; font-size: 13px; font-weight: 600; color: #374151; transition: all 0.2s ease;
}
.gla-tab:hover {
background: #f3f4f6;
}
.gla-tab.active {
background: #111827; color: #ffffff; border-color: #111827;
}
.gla-tab-panel {
display: none; max-width: 1100px; margin: 20px auto 0;
}
.gla-tab-panel.active {
display: block;
}
.gla-list {
display: flex; flex-direction: column; gap: 10px;
}
.gla-item {
padding: 12px 14px; border-radius: 10px; border: 1px solid #e5e7eb; background: #f9fafb;
}
.gla-item-title {
font-weight: 700; font-size: 15px; color: #111827;
}
.gla-item-desc {
font-size: 13px; color: #6b7280; margin-top: 2px;
} </style>
<script> document.addEventListener("DOMContentLoaded", function () {
const tabs = document.querySelectorAll(".gla-tab");
const panels = document.querySelectorAll(".gla-tab-panel");
tabs.forEach(function(tab) {
tab.addEventListener("click", function() {
const selected = tab.getAttribute("data-tab");
tabs.forEach(t => t.classList.remove("active"));
panels.forEach(p => p.classList.remove("active"));
tab.classList.add("active");
const panel = document.querySelector(
'.gla-tab-panel[data-tab-content="' + selected + '"]'
);
if (panel) panel.classList.add("active");
});
});
}); </script>