-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
Copy pathsponsors.ejs
30 lines (26 loc) · 1.01 KB
/
sponsors.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<% function logo(img) { return `https://sponsors.vuejs.org/images/${img}` } %>
<h3>Patreon Sponsors</h3>
<%_ for (const sponsor of theme.platinum) {_%>
<a href="<%- sponsor.url %>" target="_blank" rel="sponsored noopener" class="sponsor" style="width: 160px; height: 80px; line-height: 80px;">
<img src="<%- logo(sponsor.img) %>" alt="<%-sponsor.name-%>">
</a>
<%_ } _%>
<br>
<br>
<%_ for (const sponsor of theme.gold) {_%>
<a href="<%- sponsor.url %>" target="_blank" rel="sponsored noopener" class="sponsor" style="width: 120px; height: 60px; line-height: 60px;">
<img src="<%- logo(sponsor.img) %>" alt="<%-sponsor.name-%>">
</a>
<%_ } _%>
<br>
<a class="become-sponsor button white" href="<%- url_for("/support-vuejs/") %>">Become a Sponsor!</a>
<script>
window.addEventListener('load', function () {
[].forEach.call(document.querySelectorAll('.open-collective-sponsors img'), function (img) {
if (img.width === 1) {
img.width = 0
img.parentElement.style.margin = '0 -1px 0 0'
}
})
})
</script>