Skip to content

Commit 45c2811

Browse files
committed
tweak landing page social buttons
1 parent f45528b commit 45c2811

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

themes/vue/layout/index.ejs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
<script>
2-
// G+ button
3-
;(function() {
4-
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
5-
po.src = 'https://apis.google.com/js/plusone.js';
6-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
7-
})();
8-
</script>
9-
101
<div id="hero">
112
<div class="inner">
123
<ul id="nav">
@@ -24,10 +15,10 @@
2415
<a href="https://github.com/yyx990803/vue" target="_blank" class="button">Source on GitHub</a>
2516
</p>
2617
<ul id="social">
27-
<li><a href="https://twitter.com/share" class="twitter-share-button" data-lang="en" data-url="http://vuejs.org" data-text="Vue.js - MVVM made simple" data-via="vuejs">Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></li>
18+
<li><a href="https://twitter.com/vuejs" class="twitter-follow-button" data-show-count="false" data-dnt="true">Follow @vuejs</a></li>
2819
<li><iframe src="http://ghbtns.com/github-btn.html?user=yyx990803&repo=vue&type=watch&count=true"
2920
allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe></li>
30-
<li><g:plusone href="http://vuejs.org" size="medium"></g:plusone></li>
21+
<li class="last"><a href="https://gitter.im/yyx990803/vue" target="_blank"><img src="https://badges.gitter.im/Join%20Chat.svg"></a></li>
3122
</ul>
3223
</div>
3324
<div class="down"><img src="/images/down.png"></div>
@@ -124,4 +115,7 @@
124115
<a class="start" href="/guide/index.html">Get Started</a>
125116
<p>Released under the <a href="http://opensource.org/licenses/MIT" target="_blank">MIT License</a></p>
126117
<p>Copyright (c) <%- date(Date.now(), 'YYYY') %> <a href="http://evanyou.me" target="_blank">Evan You</a></p>
127-
</div>
118+
</div>
119+
120+
<!-- Twitter follow button script -->
121+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

themes/vue/source/css/index.styl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ html, body
8989
li
9090
display inline-block
9191
margin 0 5px
92-
width 95px
92+
vertical-align middle
93+
&.last
94+
margin-left -2px
9395

9496
#example
9597
//background-color #f3f3f3
@@ -279,8 +281,12 @@ html, body
279281
display none
280282
#social
281283
margin-top 1.5em
284+
padding-left 0
285+
max-width 100%
282286
li
283-
width 90px
287+
margin-bottom 10px
288+
&.last
289+
margin 0
284290
.cool
285291
margin-top 0
286292
#features .feat

0 commit comments

Comments
 (0)