-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4820347
commit 72f33dc
Showing
6 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<template> | ||
<v-list-item | ||
base-color="surface-light" | ||
border="opacity-50 md" | ||
lines="two" | ||
max-width="796" | ||
prepend-avatar="https://cdn.vuetifyjs.com/docs/images/one/logos/one.png" | ||
rounded="lg" | ||
variant="flat" | ||
> | ||
<v-list-item-title> | ||
<span class="text-h6">Vuetify One Subscriber</span> | ||
</v-list-item-title> | ||
|
||
<v-list-item-subtitle :opacity="isSubscriber ? .8 : undefined"> | ||
<v-scroll-y-reverse-transition mode="out-in"> | ||
<div | ||
v-if="isSubscriber" | ||
key="subscribed" | ||
class="text-success text-caption" | ||
> | ||
<v-icon icon="mdi-medal" size="1em"></v-icon> | ||
$2.99 /month | ||
</div> | ||
|
||
<div | ||
v-else | ||
key="not-subscribed" | ||
class="text-caption" | ||
> | ||
Support Vuetify by becoming a Subscriber | ||
</div> | ||
</v-scroll-y-reverse-transition> | ||
</v-list-item-subtitle> | ||
|
||
<template v-slot:append> | ||
<v-fade-transition mode="out-in"> | ||
<v-btn | ||
:key="`subscribe-${isSubscriber}`" | ||
:border="`thin ${isSubscriber ? 'error' : 'success'}`" | ||
:color="isSubscriber ? 'error' : 'success'" | ||
:prepend-icon="isSubscriber ? 'mdi-close' : 'mdi-email'" | ||
:slim="isSubscriber" | ||
:text="isSubscriber ? 'Cancel' : 'Subscribe'" | ||
:variant="isSubscriber ? 'plain' : 'tonal'" | ||
class="me-2 text-none" | ||
size="small" | ||
flat | ||
@click="isSubscriber = !isSubscriber" | ||
></v-btn> | ||
</v-fade-transition> | ||
|
||
<v-fade-transition mode="out-in"> | ||
<v-btn | ||
:key="`info-${isSubscriber}`" | ||
:color="isSubscriber ? 'success' : 'primary'" | ||
:prepend-icon="isSubscriber ? 'mdi-check' : 'mdi-open-in-new'" | ||
:readonly="isSubscriber" | ||
:text="isSubscriber ? 'Subscribed' : 'More Info'" | ||
class="text-none" | ||
size="small" | ||
variant="flat" | ||
flat | ||
></v-btn> | ||
</v-fade-transition> | ||
</template> | ||
</v-list-item> | ||
</template> | ||
|
||
<script setup> | ||
import { shallowRef } from 'vue' | ||
const isSubscriber = shallowRef(false) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters