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

31 lines
723 B
Vue
Raw Normal View History

2024-01-08 16:59:05 +00:00
<template>
2024-04-04 20:13:35 +00:00
<a href class="upgrade-to-plus-btn inset-when-pressed" @click.prevent="openModal">
2024-03-19 22:48:12 +00:00
<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>
2024-04-04 20:13:35 +00:00
<style scoped lang="postcss">
a.upgrade-to-plus-btn {
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 {
2024-04-04 20:13:35 +00:00
padding: .65rem 1rem; /* prevent layout jump in sidebar */
2024-01-08 16:59:05 +00:00
}
}
</style>