koel/resources/assets/js/components/koel-plus/BtnUpgradeToPlus.vue

33 lines
731 B
Vue
Raw Normal View History

2024-01-08 16:59:05 +00:00
<template>
<a href class="upgrade-to-plus-btn" @click.prevent="openModal">
<Icon :icon="faPlus" fixed-width/>
Upgrade to Plus
</a>
2024-01-08 16:59:05 +00:00
</template>
<script setup lang="ts">
import { faPlus } from '@fortawesome/free-solid-svg-icons'
import { eventBus } from '@/utils'
2024-01-08 16:59:05 +00:00
2024-01-14 12:43:53 +00:00
const openModal = () => eventBus.emit('MODAL_SHOW_KOEL_PLUS')
2024-01-08 16:59:05 +00:00
</script>
<style scoped lang="scss">
a.upgrade-to-plus-btn {
2024-01-08 16:59:05 +00:00
@include inset-when-pressed();
background: linear-gradient(97.78deg, #671ce4 17.5%, #c62be8 113.39%);
2024-01-08 16:59:05 +00:00
border-radius: 5px;
border-style: solid;
padding: .65rem 1rem;
2024-01-08 16:59:05 +00:00
&:hover {
color: var(--color-text-primary) !important;
}
&:active {
padding: .65rem 1rem; // prevent layout jump in sidebar
2024-01-08 16:59:05 +00:00
}
}
</style>