File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 17
17
:placement =" $site.themeConfig.carbonAds.placement"
18
18
/>
19
19
</template >
20
+ <template #sidebar-bottom >
21
+ <div class =" sponsors" >
22
+ <a
23
+ href =" https://github.com/sponsors/posva"
24
+ target =" _blank"
25
+ rel =" noopener"
26
+ >Sponsors</a
27
+ >
28
+
29
+ <a
30
+ v-for =" sponsor in sponsors.gold"
31
+ :href =" sponsor.href"
32
+ :key =" sponsor.href"
33
+ target =" _blank"
34
+ rel =" noopener"
35
+ >
36
+ <img :src =" sponsor.imgSrcLight" :alt =" sponsor.alt" />
37
+ </a >
38
+ </div >
39
+ </template >
20
40
</ParentLayout >
21
41
</template >
22
42
23
43
<script >
24
44
import DefaultTheme from ' vitepress/dist/client/theme-default'
25
45
import CarbonAds from ' ./components/CarbonAds.vue'
26
46
import BuySellAds from ' ./components/BuySellAds.vue'
47
+ import sponsors from ' ../components/sponsors.json'
27
48
28
49
export default {
29
50
name: ' Layout' ,
@@ -33,6 +54,10 @@ export default {
33
54
CarbonAds,
34
55
BuySellAds,
35
56
},
57
+
58
+ setup () {
59
+ return { sponsors }
60
+ },
36
61
}
37
62
</script >
38
63
@@ -45,3 +70,21 @@ form {
45
70
overflow-x : auto ;
46
71
}
47
72
</style >
73
+
74
+ <style scoped>
75
+ .sponsors {
76
+ padding : 0 1.5rem 2rem ;
77
+ font-size : 0.8rem ;
78
+ }
79
+
80
+ .sponsors a {
81
+ color : #999 ;
82
+ }
83
+
84
+ .sponsors img {
85
+ max-width : 200px ;
86
+ max-height : 40px ;
87
+ display : block ;
88
+ margin : 1.25rem 0 ;
89
+ }
90
+ </style >
You can’t perform that action at this time.
0 commit comments