Skip to content

Commit 83e6471

Browse files
authored
Feature/add open collective (#2234)
* feat: code-fund re-positioned * refactor: remove patreon add opencollective * feature: change active theme position on dropdown * feature: fixed white spaces * feature: fixed white spaces * refactor: fixe color theme dropdown on main page disabled * refactor: github button on main page visible * feat: add new vars * feat: add sponsors btn & badge backers * feat: add contributors & become backer button * feat: add vue github button plugin * feat: add post install opencollective * feat(readme): add contributors
1 parent ca016cd commit 83e6471

File tree

5 files changed

+76
-5
lines changed

5 files changed

+76
-5
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ Vue Material supports all [modern browsers](http://browserl.ist/?q=%3E%3D+1%25).
100100

101101
<small>May work in other browsers but it's untested.</small>
102102

103+
## Become a part of the Vue Material community
104+
105+
### This project exists thanks to all the people who contribute
106+
<a class="contributors-image" href="https://github.com/vuematerial/vue-material/contributors"><img src="https://opencollective.com/vue-material/contributors.svg?width=1500&button=false" /></a>
107+
103108
## Credits and Thanks
104109

105110
* <a href="https://github.com/elviskang" target="_blank">elviskang</a> for donating the npm package name!

docs/app/i18n/en-US/pages.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export default {
1313
custom: 'Custom Development',
1414
viewProject: 'View project',
1515
sponsors: 'Sponsors',
16+
contributors: "Become a part of the Vue Material community",
17+
contributorsTitle: 'This project exists thanks to all the people who contribute',
18+
backersTitle: 'Credits & Thanks',
1619
backers: 'Backers',
1720
sponsorsDescription: 'Vue Material does not run under the umbrella of any company or anything like that. It is an independent project created by {0} in his spare time, which has become one of the most used UI Libraries for Vue.js. The development is active and we are working hard to release great things for you.',
1821
beACollective: 'If you think that this project helped you or your company in any way, you can consider becoming a backer/sponsor on Open Collective'

docs/app/pages/Home/HomeHeader.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
<div class="home-actions">
1414
<gh-btns-star slug="vuematerial/vue-material" show-count></gh-btns-star>
15+
<!-- Place this tag where you want the button to render. -->
16+
<github-button href="https://github.com/sponsors/vuematerial" data-icon="octicon-heart" data-size="large" aria-label="Sponsor @vuematerial on GitHub">Sponsor</github-button>
1517
</div>
1618
<div class="home-actions">
1719
<a href="https://www.npmjs.com/package/vue-material" target="_blank">
@@ -20,6 +22,9 @@
2022
<a href="https://www.npmjs.com/package/vue-material" target="_blank">
2123
<img src="https://img.shields.io/npm/l/vue-material.svg" alt="License">
2224
</a>
25+
<a href="https://opencollective.com/vue-material" target="_blank">
26+
<img src="https://opencollective.com/vue-material/tiers/backer/badge.svg?label=backer&color=brightgreen" />
27+
</a>
2328
<a href="https://discord.gg/vuematerial" target="_blank">
2429
<img src="https://img.shields.io/discord/379653048798281729.svg?logo=discord&colorB=7289DA" alt="Chat">
2530
</a>
@@ -33,8 +38,13 @@
3338
</template>
3439

3540
<script>
41+
import GithubButton from 'vue-github-button'
42+
3643
export default {
37-
name: 'HomeHeader'
44+
name: 'HomeHeader',
45+
components: {
46+
GithubButton
47+
},
3848
}
3949
</script>
4050

docs/app/pages/Home/HomeSponsors.vue

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,37 @@
22
<md-content md-tag="section" class="home-sponsors">
33
<div class="page-wrapper">
44
<h2 class="home-title md-headline">
5-
<md-icon>monetization_on</md-icon>
6-
{{ $t('pages.home.sponsors') }} &amp; {{ $t('pages.home.backers') }}
5+
<md-icon>group</md-icon>
6+
{{ $t('pages.home.contributors') }}
77
</h2>
88

99

1010
<div class="home-sponsors-description">
11+
<h3><md-icon>person</md-icon> {{ $t('pages.home.contributorsTitle') }}</h3>
12+
<a class="contributors-image" href="https://github.com/vuematerial/vue-material/contributors"><img src="https://opencollective.com/vue-material/contributors.svg?width=1500&button=false" /></a>
13+
<br><br>
14+
<h3><md-icon>monetization_on</md-icon>
15+
{{ $t('pages.home.sponsors') }} &amp; {{ $t('pages.home.backers') }}</h3>
16+
17+
<div class="backers-button">
18+
<h3>OpenCollective Sponsors</h3>
19+
<object type="image/svg+xml" data="https://opencollective.com/vue-material/tiers/backer.svg?avatarHeight=100&width=600"></object>
20+
</div>
21+
22+
23+
<h3><md-icon>favorite</md-icon>
24+
{{ $t('pages.home.backersTitle') }}</h3>
25+
26+
1127
<i18n path="pages.home.sponsorsDescription" tag="p">
1228
<a href="https://www.github.com/marcosmoura" target="_blank">Marcos Moura</a>
1329
</i18n>
1430

31+
<ul>
32+
<li><a href="https://github.com/elviskang" target="_blank">elviskang</a> for donating the npm package name!</li>
33+
<li><a href="https://github.com/brunocastro" target="_blank">Bruno Castro</a> for the awesome Vue Material Logo. <logo-vue-material animated /></li>
34+
</ul>
35+
1536
<div class="d-flex align-items-center">
1637
<a href="https://www.codeinwp.com/?ref=vuematerial.io" target="_blank">
1738
<img src="/assets/sponsors/codeinwp-logo.svg" class="home-sponsors-open-1">
@@ -59,17 +80,42 @@
5980
@import "~vue-material/components/MdAnimation/variables";
6081
@import "~vue-material/components/MdLayout/mixins";
6182
83+
.logo-vue-material {
84+
width: 24px;
85+
display: inline-block;
86+
vertical-align: middle;
87+
}
88+
89+
object {
90+
width: 200px;
91+
height: 115px !important;
92+
}
93+
94+
.backers-button {
95+
display: flex;
96+
justify-content: center;
97+
flex-direction: column;
98+
align-items: center;
99+
}
100+
62101
63102
.home-sponsors {
64103
width: calc(100% + 32px);
65104
margin: 0 -16px -16px;
66105
padding-bottom: 28px;
67106
a{
68107
&:hover{
69-
color: transparent !important;
70108
text-decoration: none;
71109
}
72110
}
111+
112+
p, .contributors-image, .align-items-center {
113+
padding-left: 30px;
114+
}
115+
116+
ul {
117+
padding-left: 45px;
118+
}
73119
}
74120
75121
.home-sponsors-open {

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"release": "sh build/release.sh",
3434
"new-component": "babel-node build/new-component.js",
3535
"github-release": "github-release",
36-
"commit": "git-cz"
36+
"commit": "git-cz",
37+
"postinstall": "opencollective-postinstall"
3738
},
3839
"engines": {
3940
"node": ">= 7.0"
@@ -42,7 +43,9 @@
4243
"vue": "^2.5.0"
4344
},
4445
"dependencies": {
46+
"opencollective-postinstall": "^2.0.2",
4547
"vue-github-buttons": "^3.1.0",
48+
"vue-github-button": "^1.2.0",
4649
"vue-toc": "0.0.1"
4750
},
4851
"devDependencies": {
@@ -128,6 +131,10 @@
128131
"path": "./node_modules/cz-conventional-changelog"
129132
}
130133
},
134+
"collective": {
135+
"type": "opencollective",
136+
"url": "https://opencollective.com/vue-material"
137+
},
131138
"jest": {
132139
"moduleNameMapper": {
133140
"^vue$": "<rootDir>/node_modules/vue/dist/vue.common.js",

0 commit comments

Comments
 (0)