File tree Expand file tree Collapse file tree 3 files changed +102
-0
lines changed
src/runtime/components/app Expand file tree Collapse file tree 3 files changed +102
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,16 @@ const clickToast = () => {
86
86
</v-col >
87
87
</v-row >
88
88
89
+ <!-- App credits -->
90
+ <v-row >
91
+ <v-col cols =" 12" >
92
+ <v-card class =" pa-4" >
93
+ <h2 >AppCredits</h2 >
94
+ <AppCredits :brand-opacity =" 0.8" />
95
+ </v-card >
96
+ </v-col >
97
+ </v-row >
98
+
89
99
<!-- App loading -->
90
100
<v-row >
91
101
<v-col cols =" 12" >
Original file line number Diff line number Diff line change @@ -3,15 +3,30 @@ export default defineNuxtConfig({
3
3
devtools : { enabled : true } ,
4
4
compatibilityDate : '2025-05-13' ,
5
5
nuxtifyCore : {
6
+ // Logs
6
7
verboseLogs : true ,
8
+
9
+ // Brand
7
10
brand : {
8
11
tagline : 'Catchy tagline' ,
9
12
} ,
13
+
14
+ // Announcement
10
15
announcement : {
11
16
show : true ,
12
17
message : 'This is the announcement bar for the @nuxtify/core playground!' ,
13
18
buttonText : 'Click me' ,
14
19
buttonUrl : 'https://nuxtify.dev/' ,
15
20
} ,
21
+
22
+ // Credits
23
+ credits : {
24
+ creator : {
25
+ name : 'Nuxtify' ,
26
+ domain : 'nuxtify.dev' ,
27
+ } ,
28
+ prependText : 'Made with love by' ,
29
+ appendText : ' Ship weirdly fast.' ,
30
+ } ,
16
31
} ,
17
32
} )
Original file line number Diff line number Diff line change
1
+ <script setup lang="ts">
2
+ import { useNuxtifyConfig } from ' #imports'
3
+
4
+ // Props
5
+ defineProps ({
6
+ brandOpacity: {
7
+ type: Number ,
8
+ default: 1 ,
9
+ },
10
+ })
11
+
12
+ // App state
13
+ const nuxtifyConfig = useNuxtifyConfig ()
14
+ </script >
15
+
16
+ <template >
17
+ <div v-if =" nuxtifyConfig.credits?.prependText || nuxtifyConfig.credits?.creator?.name || nuxtifyConfig.credits?.appendText || nuxtifyConfig.credits?.showPoweredBy" >
18
+ <small >
19
+ <!-- Prepend text -->
20
+ <span
21
+ v-if =" nuxtifyConfig.credits.prependText"
22
+ >
23
+ {{ nuxtifyConfig.credits.prependText + ' ' }}
24
+ </span >
25
+
26
+ <!-- Creator name -->
27
+ <span v-if =" nuxtifyConfig.credits.creator?.name" >
28
+ <a
29
+ v-if =" nuxtifyConfig.credits.creator.domain"
30
+ id =" brand-name"
31
+ :href =" `https://${nuxtifyConfig.credits.creator.domain}/?utm_source=${nuxtifyConfig.brand?.domain}&utm_medium=referral`"
32
+ target =" _blank"
33
+ rel =" noopener noreferrer"
34
+ class =" font-weight-bold"
35
+ >{{ nuxtifyConfig.credits.creator.name }}</a ><span v-else >{{ nuxtifyConfig.credits.creator.name }}</span >.
36
+ </span >
37
+
38
+ <!-- Append text -->
39
+ <span
40
+ v-if =" nuxtifyConfig.credits.appendText"
41
+ >
42
+ {{ nuxtifyConfig.credits.appendText + ' ' }}
43
+ </span >
44
+
45
+ <!-- Powered by -->
46
+ <span v-if =" nuxtifyConfig.credits.showPoweredBy" >
47
+ <a
48
+ :href =" `https://nuxtify.dev/?utm_source=${nuxtifyConfig.brand?.domain}&utm_medium=referral&utm_campaign=poweredby`"
49
+ target =" _blank"
50
+ rel =" noopener nofollow"
51
+ >Powered by Nuxtify</a >.
52
+ </span >
53
+ </small >
54
+ </div >
55
+ </template >
56
+
57
+ <style scoped>
58
+ /* Links */
59
+ a {
60
+ color : inherit ;
61
+ text-decoration : none ;
62
+ justify-content : start ;
63
+ }
64
+ .v-btn :hover ,
65
+ a :hover {
66
+ text-decoration : underline ;
67
+ text-underline-offset : 4px ;
68
+ }
69
+
70
+ /* Brand name */
71
+ #brand-name {
72
+ opacity : v-bind(brandOpacity);
73
+ }
74
+ #brand-name :hover {
75
+ opacity : 1 ;
76
+ }
77
+ </style >
You can’t perform that action at this time.
0 commit comments