Skip to content

Commit e1ba0fb

Browse files
committed
add a donate button
1 parent 1f3841b commit e1ba0fb

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

themes/vue/layout/index.ejs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
<li><a href="https://twitter.com/vuejs" class="twitter-follow-button" data-show-count="false" data-dnt="true">Follow @vuejs</a></li>
2020
<li><iframe src="http://ghbtns.com/github-btn.html?user=vuejs&repo=vue&type=watch&count=true"
2121
allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe></li>
22+
<li id="donate">
23+
<span class="wrapper">
24+
<img src="/images/paypal.png">
25+
<a href="https://www.paypal.me/evanyou" target="_blank">Donate</a>
26+
</span>
27+
</li>
2228
</ul>
2329
<ul id="translations">
2430
<li><a href="http://cn.vuejs.org" class="nav-link wip">中文</a></li>

themes/vue/source/css/index.styl

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,38 @@ html, body
250250
#main
251251
display none
252252

253+
#donate
254+
height 24px
255+
margin-left -2px !important
256+
.wrapper
257+
vertical-align top
258+
height 20px
259+
border 1px solid #d4d4d4
260+
display inline-block
261+
box-sizing border-box
262+
line-height 16px
263+
border-radius 3px
264+
cursor pointer
265+
background-image linear-gradient(to bottom,#fcfcfc 0,#eee 100%)
266+
position relative
267+
width 72px
268+
&:hover
269+
border-color #ccc
270+
background-image linear-gradient(to bottom,#eee 0,#ddd 100%)
271+
img
272+
width 14px
273+
height 14px
274+
position absolute
275+
top 3px
276+
left 5px
277+
a
278+
font 700 11px/14px 'Helvetica Neue', Helvetica, Arial, sans-serif
279+
color #333333
280+
text-shadow 0 1px 0 #fff
281+
position absolute
282+
top 2px
283+
left 24px
284+
253285
@media screen and (max-width: 480px)
254286
body
255287
font-size 14px
@@ -307,7 +339,7 @@ html, body
307339
#ad
308340
position static
309341
.carbon-img, .carbon-text, .carbon-poweredby
310-
display inline-block
342+
display inline-bloc
311343

312344
@media screen and (max-width: 860px)
313345
#features, #hero

themes/vue/source/images/paypal.png

1.66 KB
Loading

0 commit comments

Comments
 (0)