File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1616 :placement =" $site.themeConfig.carbonAds.placement"
1717 />
1818 </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 >
1939 </ParentLayout >
2040</template >
2141
2242<script >
2343import ParentLayout from ' @parent-theme/layouts/Layout.vue'
2444import CarbonAds from ' ./components/CarbonAds.vue'
2545import BuySellAds from ' ./components/BuySellAds.vue'
46+ import sponsors from ' ../components/sponsors.json'
2647
2748export default {
2849 name: ' Layout' ,
@@ -31,6 +52,10 @@ export default {
3152 ParentLayout,
3253 CarbonAds,
3354 BuySellAds
55+ },
56+
57+ created () {
58+ this .sponsors = sponsors
3459 }
3560}
3661 </script >
@@ -53,3 +78,22 @@ export default {
5378 }
5479}
5580 </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