revanced-website/src/layout/Hero/SocialButton.svelte
madkarmaa bc8e19e0e7
feat: Apply themes on specific events (#227)
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2024-08-13 13:18:56 +02:00

44 lines
739 B
Svelte

<script lang="ts">
import type { Social } from '$lib/types';
export let social: Social;
</script>
<a href={social.url} rel="noreferrer" target="_blank">
<div>
<img src="socials/{social.name.toLowerCase()}.svg" alt={social.name} />
</div>
</a>
<style>
div {
border: 0;
width: 60px;
height: 60px;
padding: 14px;
cursor: pointer;
border-radius: 200px;
transition: transform 0.4s var(--bezier-one);
background-color: var(--surface-four);
color: var(--text-one);
user-select: none;
}
div {
display: flex;
justify-content: center;
}
img {
transition: filter 0.4s var(--bezier-one);
width: 30px;
}
div:hover {
transform: translateY(-5%);
}
div:hover img {
filter: brightness(1.2);
}
</style>