Skip to content

Commit 0f5c94a

Browse files
committed
chore: update sponsor
1 parent 7fc3675 commit 0f5c94a

File tree

6 files changed

+31
-19
lines changed

6 files changed

+31
-19
lines changed

src/support-vuejs/index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,16 @@ Recurring pledges come with exclusive perks, e.g. having your name listed in the
6666

6767
<p style="text-align: center;">
6868
<a href="https://stdlib.com">
69-
<img src="/images/stdlib.png" style="width: 300px;">
69+
<img src="/images/stdlib.png" style="width: 250px;">
7070
</a>
7171
<a href="http://tooltwist.com/" target="_blank">
72-
<img src="/images/tooltwist.png" style="width: 300px;">
72+
<img src="/images/tooltwist.png" style="width: 250px;">
7373
</a>
7474
<a href="https://www.infinitynewtab.com/donate/index.html" target="_blank">
75-
<img src="/images/infinitynewtab.png" style="width: 300px">
75+
<img src="/images/infinitynewtab.png" style="width: 250px">
76+
</a>
77+
<a href="https://vueschool.io/?utm_source=Vuejs.org&utm_medium=Banner&utm_campaign=Sponsored%20Banner&utm_content=V1" target="_blank">
78+
<img src="/images/vueschool.png" style="width: 250px">
7679
</a>
7780
</p>
7881

themes/vue/_config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,13 @@ site_description: "Vue.js - The Progressive JavaScript Framework"
22
google_analytics: UA-46852172-1
33
root_domain: vuejs.org
44
vue_version: 2.5.13
5+
6+
platinum_sponsors:
7+
- url: https://stdlib.com
8+
img: stdlib.png
9+
- url: http://tooltwist.com/
10+
img: tooltwist.png
11+
- url: https://www.infinitynewtab.com/donate/index.html
12+
img: infinitynewtab.png
13+
- url: https://vueschool.io/?utm_source=Vuejs.org&utm_medium=Banner&utm_campaign=Sponsored%20Banner&utm_content=V1
14+
img: vueschool.png

themes/vue/layout/partials/sidebar.ejs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@
55
</ul>
66
<div class="list">
77
<div class="main-sponsor">
8-
<span>Platinum Sponsors</span><br>
9-
<a href="https://stdlib.com" target="_blank" class="logo">
10-
<img src="<%- url_for("/images/stdlib.png") %>">
11-
</a>
12-
<a href="http://tooltwist.com/" target="_blank" class="logo">
13-
<img src="<%- url_for("/images/tooltwist.png") %>" style="margin-top:-5px">
14-
</a>
15-
<a href="https://www.infinitynewtab.com/donate/index.html" target="_blank" class="logo">
16-
<img src="<%- url_for("/images/infinitynewtab.png") %>">
8+
<span>Platinum Sponsors</span>
9+
<div>
10+
<%_ for (const sponsor of theme.platinum_sponsors) {_%>
11+
<a href="<%- sponsor.url %>" target="_blank" class="logo">
12+
<img src="<%- url_for(`/images/${sponsor.img}`) %>">
1713
</a>
14+
<%_ } _%>
15+
</div>
1816
</div>
1917
<a class="become-backer" href="<%- url_for("/support-vuejs") %>">
2018
Become a Sponsor

themes/vue/layout/partials/sponsors.ejs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<h3>Patreon Sponsors</h3>
22

3-
<a href="http://tooltwist.com/" target="_blank" style="width: 160px;">
4-
<img src="<%- url_for("/images/tooltwist.png") %>" style="width: 160px;">
5-
</a>
6-
<a href="https://www.infinitynewtab.com/donate/index.html" target="_blank" style="width: 160px; position:relative; top: 2px">
7-
<img src="/images/infinitynewtab.png" style="width: 160px;">
3+
<%_ for (const sponsor of theme.platinum_sponsors.slice(1)) {_%>
4+
<a href="<%- sponsor.url %>" target="_blank" style="width: 160px;">
5+
<img src="<%- url_for(`/images/${sponsor.img}`) %>" style="width: 160px;">
86
</a>
7+
<%_ } _%>
98
<br>
109
<br>
1110
<a href="https://jsfiddle.net/" target="_blank">

themes/vue/source/css/_sidebar.styl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@
6464
font-size: .85em
6565
.logo
6666
color: $light
67-
margin-top: 15px
67+
margin-top: 6px
6868
text-align: center
6969
font-weight: bold
7070
display block
71+
&:first-child
72+
margin-top: 12px
7173
&:last-child
72-
margin-bottom 15px
74+
margin-bottom: 12px
7375
img, a
7476
width: 125px
7577
.become-backer
33.1 KB
Loading

0 commit comments

Comments
 (0)