mirror of
https://github.com/revanced/revanced-website.git
synced 2025-05-02 23:54:26 +02:00
44 lines
762 B
Svelte
44 lines
762 B
Svelte
<script>
|
|
export let src = 'socials/github.svg';
|
|
export let alt = 'GitHub';
|
|
export let href = '#';
|
|
</script>
|
|
|
|
<button>
|
|
<a {href}>
|
|
<img {src} {alt}>
|
|
</a>
|
|
</button>
|
|
|
|
<style>
|
|
button {
|
|
color: var(--white);
|
|
border-radius: 200px;
|
|
border: 0;
|
|
padding: 14px;
|
|
width:60px;
|
|
height:60px;
|
|
cursor: pointer;
|
|
background-color: var(--grey-four);
|
|
font-size: 1.5rem;
|
|
transform: translateX(-5%);
|
|
transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
transition-duration: 0.4s;
|
|
user-select: none;
|
|
margin-right:0.5rem;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
img {
|
|
width:30px;
|
|
}
|
|
|
|
button:hover {
|
|
transform: translate(-5%, -5%);
|
|
}
|
|
|
|
button:hover img {
|
|
filter: brightness(1.2);
|
|
}
|
|
</style>
|