Skip to content

Commit ad3543d

Browse files
committed
added sponsor widget to homepage grid
1 parent bb04695 commit ad3543d

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

website/docs/.vuepress/components/HomepageGrid.vue

+23-19
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
:h="item.h"
1616
:i="item.i"
1717
>
18-
<span class="text">{{itemTitle(item)}}</span>
18+
<div v-if="item.i === '2'" style="width: 90%;margin-left: auto;margin-right: auto;margin-top: 5px;height: 90%;">
19+
<iframe src="https://github.com/sponsors/jbaysolutions/card" title="Sponsor jbaysolutions" height="100%" width="100%" style="border: 0;"></iframe>
20+
<!-- <iframe src="https://github.com/sponsors/jbaysolutions/button" title="Sponsor jbaysolutions" height="35" width="100%" style="border: 0; margin-left:auto;margin-right: auto;"></iframe>-->
21+
</div>
22+
<span v-else class="text">{{itemTitle(item)}}</span>
1923
</grid-item>
2024
</grid-layout>
2125
</template>
@@ -33,25 +37,25 @@ export default {
3337
return {
3438
layout: [
3539
{"x":0,"y":0,"w":2,"h":2,"i":"0", static: false},
36-
{"x":2,"y":0,"w":2,"h":4,"i":"1", static: true},
37-
{"x":4,"y":0,"w":2,"h":5,"i":"2", static: false},
38-
{"x":6,"y":0,"w":2,"h":3,"i":"3", static: false},
39-
{"x":8,"y":0,"w":2,"h":3,"i":"4", static: false},
40-
{"x":10,"y":0,"w":2,"h":3,"i":"5", static: false},
41-
{"x":0,"y":5,"w":2,"h":5,"i":"6", static: false},
42-
{"x":2,"y":5,"w":2,"h":5,"i":"7", static: false},
43-
{"x":4,"y":5,"w":2,"h":5,"i":"8", static: false},
44-
{"x":6,"y":3,"w":2,"h":4,"i":"9", static: true},
45-
{"x":8,"y":4,"w":2,"h":4,"i":"10", static: false},
46-
{"x":10,"y":4,"w":2,"h":4,"i":"11", static: false},
40+
{"x":10,"y":0,"w":2,"h":4,"i":"1", static: true},
41+
{"x":2,"y":0,"w":8,"h":4,"i":"2", static: false},
42+
{"x":6,"y":4,"w":2,"h":3,"i":"3", static: false},
43+
{"x":8,"y":4,"w":2,"h":3,"i":"4", static: false},
44+
{"x":10,"y":4,"w":2,"h":3,"i":"5", static: false},
45+
{"x":0,"y":2,"w":2,"h":5,"i":"6", static: false},
46+
{"x":2,"y":4,"w":2,"h":5,"i":"7", static: false},
47+
{"x":4,"y":4,"w":2,"h":5,"i":"8", static: false},
48+
{"x":6,"y":7,"w":2,"h":4,"i":"9", static: true},
49+
{"x":8,"y":7,"w":2,"h":4,"i":"10", static: false},
50+
{"x":10,"y":7,"w":2,"h":4,"i":"11", static: false},
4751
{"x":0,"y":10,"w":2,"h":5,"i":"12", static: false},
48-
{"x":2,"y":10,"w":2,"h":5,"i":"13", static: false},
49-
{"x":4,"y":8,"w":2,"h":4,"i":"14", static: false},
50-
{"x":6,"y":8,"w":2,"h":4,"i":"15", static: false},
51-
{"x":8,"y":10,"w":2,"h":5,"i":"16", static: false},
52-
{"x":10,"y":4,"w":2,"h":2,"i":"17", static: false},
53-
{"x":0,"y":9,"w":2,"h":3,"i":"18", static: false},
54-
{"x":2,"y":6,"w":2,"h":2,"i":"19", static: false}
52+
{"x":2,"y":11,"w":2,"h":5,"i":"13", static: false},
53+
{"x":4,"y":9,"w":2,"h":4,"i":"14", static: false},
54+
{"x":6,"y":11,"w":2,"h":4,"i":"15", static: false},
55+
{"x":8,"y":11,"w":2,"h":5,"i":"16", static: false},
56+
{"x":10,"y":11,"w":2,"h":2,"i":"17", static: false},
57+
{"x":0,"y":7,"w":2,"h":3,"i":"18", static: false},
58+
{"x":2,"y":9,"w":2,"h":2,"i":"19", static: false}
5559
],
5660
draggable: true,
5761
resizable: true,

0 commit comments

Comments
 (0)