Skip to content

Commit 96c4330

Browse files
committed
tweak homepage
1 parent e4161fe commit 96c4330

File tree

3 files changed

+26
-23
lines changed

3 files changed

+26
-23
lines changed

themes/vue/layout/index.ejs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,27 @@
22
<div class="inner">
33
<ul id="nav">
44
<li><a href="/guide/" class="nav-link">Guide</a></li>
5-
<li><a href="/api/" class="nav-link">API Reference</a></li>
5+
<li><a href="/api/" class="nav-link">API</a></li>
66
<li><a href="/examples/" class="nav-link">Examples</a></li>
7-
<li><a href="/blog/" class="nav-link">Blog</a></li>
7+
<li><a href="https://github.com/yyx990803/vue" class="nav-link" target="_blank">GitHub</a></li>
8+
<li><a href="http://forum.vuejs.org" class="nav-link" target="_blank">Forum</a></li>
9+
<li><a href="https://gitter.im/yyx990803/vue" class="nav-link" target="_blank">Chat</a></li>
10+
</ul>
11+
<ul id="translations">
812
<li><a href="http://cn.vuejs.org" class="nav-link">中文</a></li>
13+
<li class="delimiter">|</li>
914
<li><a href="http://jp.vuejs.org" class="nav-link">日本語</a></li>
1015
</ul>
1116
<img id="logo" src="/images/logo.png">
1217
<h1>Vue.js</h1>
13-
<p class="desc">Vue.js is a library for building modern web interfaces. <br>It provides data-reactive components with a simple and flexible API.</p>
18+
<p class="desc">Reactive Components for Modern Web Interfaces</p>
1419
<p class="buttons">
1520
<a href="/guide/installation.html" class="button">Install v<%- theme.vue_version %></a>
16-
<a href="https://github.com/yyx990803/vue" target="_blank" class="button">Source on GitHub</a>
1721
</p>
1822
<ul id="social">
1923
<li><a href="https://twitter.com/vuejs" class="twitter-follow-button" data-show-count="false" data-dnt="true">Follow @vuejs</a></li>
2024
<li><iframe src="http://ghbtns.com/github-btn.html?user=yyx990803&repo=vue&type=watch&count=true"
2125
allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe></li>
22-
<li class="last"><a href="https://gitter.im/yyx990803/vue" target="_blank"><img src="https://badges.gitter.im/Join%20Chat.svg"></a></li>
2326
</ul>
2427
</div>
2528
<div class="down"><img src="/images/down.png"></div>

themes/vue/layout/partials/main_menu.ejs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
</form>
55
</li>
66
<li><a href="/guide/" class="nav-link<%- page.path.match(/guide/) ? ' current' : '' %>">Guide</a></li>
7-
<li><a href="/api/" class="nav-link<%- page.path.match(/api/) ? ' current' : '' %>">API Reference</a></li>
7+
<li><a href="/api/" class="nav-link<%- page.path.match(/api/) ? ' current' : '' %>">API</a></li>
88
<li><a href="/examples/" class="nav-link<%- page.path.match(/examples/) ? ' current' : '' %>">Examples</a></li>
9-
<li><a href="/blog/" class="nav-link<%- (page.path.match(/blog/) || is_post()) ? ' current' : '' %>">Blog</a></li>
10-
<li><a href="https://github.com/yyx990803/vue" target="_blank" class="nav-link">GitHub</a></li>
9+
<li><a href="https://github.com/yyx990803/vue" class="nav-link" target="_blank">GitHub</a></li>
10+
<li><a href="http://forum.vuejs.org" class="nav-link" target="_blank">Forum</a></li>
11+
<li><a href="https://gitter.im/yyx990803/vue" class="nav-link" target="_blank">Chat</a></li>

themes/vue/source/css/index.styl

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,23 @@ zoom()
99
html, body
1010
height 100%
1111

12-
#cn-link
13-
position absolute
14-
top 10px
15-
right 12px
16-
font-size 14px
17-
18-
#nav
12+
#nav, #translations
1913
list-style-type none
2014
text-align center
21-
margin-bottom 3em
2215
padding 0
2316
li
2417
display inline-block
2518
&:last-child .nav-link
2619
margin-right 0
2720

21+
#translations
22+
margin-bottom 3em
23+
.delimiter
24+
color $light
25+
margin 0 5px
26+
.nav-link
27+
margin 0
28+
2829
.nav-link
2930
color $light
3031
padding-bottom 3px
@@ -33,7 +34,6 @@ html, body
3334
margin-left 0
3435
&:hover, &.current
3536
border-bottom 3px solid $green
36-
zoom()
3737

3838
#logo
3939
display block
@@ -56,10 +56,7 @@ html, body
5656
font-family $logo-font
5757
font-weight 300
5858
font-size 4em
59-
margin .4em 0 .7em
60-
.sub
61-
color $medium
62-
font-size 1.2em
59+
margin .4em 0
6360
.warning
6461
color $light
6562
.desc
@@ -77,7 +74,7 @@ html, body
7774
img
7875
width 20px
7976
a.button
80-
width 180px
77+
width 280px
8178
margin .5em
8279

8380
#social
@@ -251,7 +248,9 @@ html, body
251248
body
252249
font-size 14px
253250
#nav
254-
margin 3em 1.8em 2em
251+
margin 3em 1.8em 0
252+
#translations
253+
margin-bottom 2em
255254
#logo
256255
width 100px
257256
.nav-link

0 commit comments

Comments
 (0)