Mudanças entre as edições de "Widget:Gurren"
Ir para navegação
Ir para pesquisar
m |
|||
| Linha 1: | Linha 1: | ||
<style> | <style> | ||
.social-card { | .social-card { | ||
display: block; | |||
max-width: 220px; | width: 100%; /* ocupa 100% da coluna */ | ||
aspect-ratio: 4 / 1; | max-width: 220px; /* não deixa esticar demais */ | ||
aspect-ratio: 4 / 1; /* mantém proporção agradável */ | |||
margin: 1em auto; /* centraliza e dá espaçamento */ | |||
border-radius: 0.75em; | border-radius: 0.75em; | ||
overflow: hidden; | overflow: hidden; | ||
| Linha 38: | Linha 33: | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | |||
height: 100%; | height: 100%; | ||
padding: 0 1em; | padding: 0 1em; | ||
| Linha 43: | Linha 39: | ||
} | } | ||
.social-icon { | .social-icon { | ||
width: | width: 1.8em; | ||
height: | height: 1.8em; | ||
margin-right: 0.75em; | margin-right: 0.75em; | ||
} | } | ||
| Linha 53: | Linha 49: | ||
</style> | </style> | ||
< | <a | ||
href="https://discord.gg/SEULINK" | |||
class="social-card" | |||
target="_blank" | |||
rel="noopener" | |||
> | |||
<div class="social-card-content"> | |||
<img | |||
src="https://cdn.simpleicons.org/Discord/ffffff" | |||
alt="Discord" | |||
class="social-icon" | |||
/> | |||
<span class="social-name">Discord</span> | |||
</div> | |||
</a> | |||
Edição das 00h33min de 24 de abril de 2025
<style>
.social-card {
display: block;
width: 100%; /* ocupa 100% da coluna */
max-width: 220px; /* não deixa esticar demais */
aspect-ratio: 4 / 1; /* mantém proporção agradável */
margin: 1em auto; /* centraliza e dá espaçamento */
border-radius: 0.75em;
overflow: hidden;
position: relative;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
background: url('https://i.imgur.com/3ON2kVj.gif') center/cover no-repeat;
}
.social-card::before {
content: "";
position: absolute;
inset: 0;
background-color: rgba(114, 137, 218, 0.6);
mix-blend-mode: multiply;
pointer-events: none;
transition: background-color 0.2s ease;
}
.social-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.social-card:hover::before {
background-color: rgba(114, 137, 218, 0.8);
}
.social-card-content {
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
padding: 0 1em;
color: #fff;
}
.social-icon {
width: 1.8em;
height: 1.8em;
margin-right: 0.75em;
}
.social-name {
font-size: 1.1em;
font-weight: bold;
}
</style>
<a
href="https://discord.gg/SEULINK" class="social-card" target="_blank" rel="noopener"
>
</a>