You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
402 B
16 lines
402 B
<script>
|
|
export let href;
|
|
export let active = "";
|
|
|
|
let classes = "hover:bg-gradient-to-tr hover:from-red-500 hover:to-pink-500 bg-red-500 duration-300 active:translate-y-1 py-2 px-3 w-full rounded-lg shadow";
|
|
|
|
if(active == "true") {
|
|
classes += " bg-opacity-90";
|
|
} else {
|
|
classes += " bg-opacity-50";
|
|
}
|
|
</script>
|
|
|
|
<a href={href} class={classes}>
|
|
<slot />
|
|
</a> |