Skip to content

Commit 8c4209c

Browse files
committed
refactor: use AppCredits component
1 parent 1ce55b3 commit 8c4209c

File tree

2 files changed

+11
-25
lines changed

2 files changed

+11
-25
lines changed

playground/nuxt.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,15 @@ export default defineNuxtConfig({
6161
{ text: 'Terms', to: '/terms' },
6262
],
6363
},
64+
65+
// Credits
66+
credits: {
67+
creator: {
68+
name: 'Nuxtify',
69+
domain: 'nuxtify.dev',
70+
},
71+
prependText: 'Made with love by',
72+
appendText: ' Ship weirdly fast.',
73+
},
6474
},
6575
})

src/runtime/components/app/AppFooter.vue

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -77,31 +77,7 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary
7777
cols="12"
7878
sm="9"
7979
>
80-
<small>
81-
<!-- Credits -->
82-
{{ nuxtifyConfig.credits?.prependText }}
83-
<span v-if="nuxtifyConfig.credits?.creator?.name">
84-
<a
85-
v-if="nuxtifyConfig.credits.creator.domain"
86-
:href="`https://${nuxtifyConfig.credits.creator.domain}/?utm_source=${nuxtifyConfig.brand?.domain}&utm_medium=referral&utm_campaign=createdby`"
87-
target="_blank"
88-
rel="noopener nofollow"
89-
class="font-weight-bold"
90-
>{{ nuxtifyConfig.credits?.creator?.name }}</a><span v-else>{{ nuxtifyConfig.credits?.creator?.name }}</span>.
91-
</span>
92-
93-
<!-- Message -->
94-
{{ nuxtifyConfig.credits?.appendText }}
95-
96-
<!-- Powered By -->
97-
<span v-if="nuxtifyConfig.credits?.showPoweredBy">
98-
<a
99-
:href="`https://nuxtify.dev/?utm_source=${nuxtifyConfig.brand?.domain}&utm_medium=referral&utm_campaign=poweredby`"
100-
target="_blank"
101-
rel="noopener nofollow"
102-
>Powered by Nuxtify</a>.
103-
</span>
104-
</small>
80+
<AppCredits />
10581

10682
<v-divider
10783
v-if="footerSecondaryLinks?.length"

0 commit comments

Comments
 (0)