Skip to content

Commit aa0a142

Browse files
committed
ui: simplify AppCredits component style
1 parent 272b8b4 commit aa0a142

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

playground/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const clickToast = () => {
9191
<v-col cols="12">
9292
<v-card class="pa-4">
9393
<h2>AppCredits</h2>
94-
<AppCredits :brand-opacity="0.8" />
94+
<AppCredits />
9595
</v-card>
9696
</v-col>
9797
</v-row>

src/runtime/components/app/AppCredits.vue

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
<script setup lang="ts">
22
import { useNuxtifyConfig } from '#imports'
33
4-
// Props
5-
defineProps({
6-
brandOpacity: {
7-
type: Number,
8-
default: 1,
9-
},
10-
})
11-
124
// App state
135
const nuxtifyConfig = useNuxtifyConfig()
146
</script>
157

168
<template>
17-
<div v-if="nuxtifyConfig.credits?.prependText || nuxtifyConfig.credits?.creator?.name || nuxtifyConfig.credits?.appendText || nuxtifyConfig.credits?.showPoweredBy">
9+
<span v-if="nuxtifyConfig.credits?.prependText || nuxtifyConfig.credits?.creator?.name || nuxtifyConfig.credits?.appendText || nuxtifyConfig.credits?.showPoweredBy">
1810
<small>
1911
<!-- Prepend text -->
2012
<span
@@ -27,7 +19,6 @@ const nuxtifyConfig = useNuxtifyConfig()
2719
<span v-if="nuxtifyConfig.credits.creator?.name">
2820
<a
2921
v-if="nuxtifyConfig.credits.creator.domain"
30-
id="brand-name"
3122
:href="`https://${nuxtifyConfig.credits.creator.domain}/?utm_source=${nuxtifyConfig.brand?.domain}&utm_medium=referral`"
3223
target="_blank"
3324
rel="noopener noreferrer"
@@ -51,7 +42,7 @@ const nuxtifyConfig = useNuxtifyConfig()
5142
>Powered by Nuxtify</a>.
5243
</span>
5344
</small>
54-
</div>
45+
</span>
5546
</template>
5647

5748
<style scoped>
@@ -66,12 +57,4 @@ a:hover {
6657
text-decoration: underline;
6758
text-underline-offset: 4px;
6859
}
69-
70-
/* Brand name */
71-
#brand-name {
72-
opacity: v-bind(brandOpacity);
73-
}
74-
#brand-name:hover {
75-
opacity: 1;
76-
}
7760
</style>

0 commit comments

Comments
 (0)