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