Skip to content

Commit 23990de

Browse files
committed
redesign homepage
1 parent 69ba9cd commit 23990de

File tree

15 files changed

+222
-639
lines changed

15 files changed

+222
-639
lines changed

src/blog/index.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/support-vuejs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
<img src="/images/monterail.png">
3232
</a><a href="https://www.trisoft.ro/" target="_blank">
3333
<img src="/images/trisoft.png">
34+
</a><a href="http://actualize.co" target="_blank" style="width:180px">
35+
<img src="/images/actualize.png" style="width:180px">
3436
</a>
3537
</p>
3638

themes/vue/layout/index.ejs

Lines changed: 38 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -1,145 +1,53 @@
11
<div id="hero">
22
<div class="inner">
3-
<ul id="nav">
4-
<li><a href="/guide/" class="nav-link">Guide</a></li>
5-
<li><a href="/api/" class="nav-link">API</a></li>
6-
<li><a href="/examples/" class="nav-link">Examples</a></li>
7-
<li><a href="/blog" class="nav-link">Blog</a></li>
8-
<%- partial('partials/community_dropdown') %>
9-
</ul>
10-
<div id="logo-wrap">
11-
<img id="logo" src="/images/logo.png">
12-
<h1>Vue.js</h1>
13-
</div>
14-
<p class="desc">Reactive Components for Modern Web Interfaces</p>
15-
<p class="buttons">
16-
<a href="/guide/installation.html" class="small-button">Install v<%- theme.vue_version %></a>
17-
<a href="/guide/index.html" class="small-button">Get Started</a>
18-
</p>
19-
<ul id="social">
20-
<li><a href="https://twitter.com/vuejs" class="twitter-follow-button" data-show-count="false" data-dnt="true">Follow @vuejs</a></li>
21-
<li><iframe src="//ghbtns.com/github-btn.html?user=vuejs&repo=vue&type=watch&count=true"
22-
allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe></li>
23-
<li id="donate">
24-
<span class="wrapper" style="width: 108px">
25-
<img src="/images/patreon.png">
26-
<a href="/support-vuejs">Support Vue.js</a>
27-
</span>
28-
</li>
29-
</ul>
30-
31-
<ul id="translations">
32-
<li><a href="http://cn.vuejs.org" class="nav-link">中文</a></li>
33-
<li class="delimiter">|</li>
34-
<li><a href="http://jp.vuejs.org" class="nav-link">日本語</a></li>
35-
<li class="delimiter">|</li>
36-
<li><a href="http://it.vuejs.org" class="nav-link">Italiano</a></li>
37-
</ul>
38-
39-
<div id="sponsors">
40-
<%- partial('partials/sponsors') %>
3+
<div class="left">
4+
<img class="hero-logo" src="/images/logo.png">
5+
</div><div class="right">
6+
<h1>
7+
Make Web Development<br>
8+
Fun Again.
9+
</h1>
10+
<p>
11+
<a class="button" href="/guide/">GET STARTED</a>
12+
<a class="button white" href="https://github.com/vuejs/vue" target="_blank">GITHUB</a>
13+
</p>
4114
</div>
4215
</div>
43-
44-
<div class="down"><img src="/images/down.png"></div>
45-
</div>
46-
47-
<div id="sponsors-mobile">
48-
<%- partial('partials/sponsors') %>
4916
</div>
5017

51-
<div id="example">
52-
<h2>10 Second Example</h2>
53-
<div class="block">
54-
<figure class="highlight lang-html"><table><tbody><tr><td class="gutter"><pre>1
55-
2
56-
3
57-
4
58-
</pre></td><td class="code"><pre><span class="tag">&lt;<span class="title">div</span> <span class="attribute">id</span>=<span class="value">"demo"</span>&gt;</span>
59-
<span class="tag">&lt;<span class="title">p</span>&gt;</span>{{message}}<span class="tag">&lt;/<span class="title">p</span>&gt;</span>
60-
<span class="tag">&lt;<span class="title">input</span> <span class="attribute">v-model</span>=<span class="value">"message"</span>&gt;</span>
61-
<span class="tag">&lt;/<span class="title">div</span>&gt;</span>
62-
</pre></td></tr></tbody></table></figure>
63-
</div>
64-
65-
<div class="sign">+</div>
66-
67-
<div class="block">
68-
<figure class="highlight lang-js"><table><tbody><tr><td class="gutter"><pre>1
69-
2
70-
3
71-
4
72-
5
73-
6
74-
</pre></td><td class="code"><pre><span class="keyword">var</span> demo = <span class="keyword">new</span> Vue({
75-
el: <span class="string">'#demo'</span>,
76-
data: {
77-
message: <span class="string">'Hello Vue.js!'</span>
78-
}
79-
})
80-
</pre></td></tr></tbody></table></figure>
81-
</div>
18+
<div id="highlights">
19+
<div class="inner">
20+
<div class="point">
21+
<h2>Performant</h2>
22+
<p>
23+
16kb min+gzip Runtime<br>
24+
Blazing Fast Virtual DOM<br>
25+
Minimal Optimization Efforts
26+
</p>
27+
</div>
8228

83-
<div class="sign">=</div>
29+
<div class="point">
30+
<h2>Approachable</h2>
31+
<p>Already know HTML, CSS and JavaScript? Read the guide and start building things in no time!</p>
32+
</div>
8433

85-
<div class="block result">
86-
<div id="demo">
87-
<p>{{message}}</p>
88-
<input v-model="message">
34+
<div class="point">
35+
<h2>Progressive</h2>
36+
<p>Lean, minimal core with a feature-rich, incrementally adoptable ecosystem.</p>
8937
</div>
90-
<script>
91-
var demo = new Vue({
92-
el: '#demo',
93-
data: {
94-
message: 'Hello Vue.js!'
95-
}
96-
})
97-
</script>
9838
</div>
9939
</div>
100-
<div id="features">
101-
<div class="feats">
102-
<div class="feat">
103-
<h2><span class="icon simple"></span>Simple</h2>
104-
<p>Write some HTML, grab some JSON, create a Vue instance, that's it.</p>
105-
</div>
106-
<div class="feat">
107-
<h2><span class="icon powerful"></span>Reactive</h2>
108-
<p>Expressions & computed properties with transparent dependency tracking.</p>
109-
</div>
110-
<div class="feat">
111-
<h2><span class="icon composable"></span>Components</h2>
112-
<p>Compose your application with decoupled, reusable components.</p>
113-
</div>
114-
<div class="feat">
115-
<h2><span class="icon compact"></span>Compact</h2>
116-
<p>~24kb min+gzip, no dependency.</p>
117-
</div>
118-
<div class="feat">
119-
<h2><span class="icon fast"></span>Fast</h2>
120-
<p>Precise and efficient async batch DOM updates.</p>
121-
</div>
122-
<div class="feat">
123-
<h2><span class="icon module"></span>Package Ready</h2>
124-
<p>Install via NPM or Bower - leverage your favorite eco system!</p>
125-
</div>
40+
41+
<div id="sponsors">
42+
<div class="inner">
43+
<h3>PROUDLY SPONSORED BY</h3>
44+
<%- partial('partials/sponsors') %>
45+
<br>
46+
<a class="become-sponsor button white" href="/support-vuejs/">Become a Backer</a>
12647
</div>
12748
</div>
128-
<div id="why">
129-
<h2>You should try it out if you like:</h2>
130-
<ul>
131-
<li>Extendable Data bindings</li>
132-
<li>Plain JS object models</li>
133-
<li>APIs that simply make sense</li>
134-
<li>Building UIs by composing components</li>
135-
<li>Mixing &amp; matching small libraries</li>
136-
</ul>
137-
</div>
49+
13850
<div id="footer">
139-
<a class="start" href="/guide/index.html">Get Started</a>
140-
<p>Released under the <a href="http://opensource.org/licenses/MIT" target="_blank">MIT License</a></p>
141-
<p>Copyright (c) <%- date(Date.now(), 'YYYY') %> <a href="http://evanyou.me" target="_blank">Evan You</a></p>
51+
Released under the <a href="https://opensource.org/licenses/MIT" href="_blank">MIT License</a><br>
52+
Copyright &copy; 2014-<%- new Date().getFullYear() %> Evan You
14253
</div>
143-
144-
<!-- Twitter follow button script -->
145-
<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/layout/layout.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta charset="utf-8">
77
<meta name="description" content="Vue.js - Intuitive, Fast and Composable MVVM for building interactive interfaces.">
88
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9-
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600|Roboto Mono' rel='stylesheet' type='text/css'>
9+
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono' rel='stylesheet' type='text/css'>
1010
<link href='//fonts.googleapis.com/css?family=Dosis:300,500&text=Vue.js' rel='stylesheet' type='text/css'>
1111
<link href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel='stylesheet' type='text/css'>
1212
<link rel="icon" href="/images/logo.png" type="image/x-icon">
@@ -22,8 +22,8 @@
2222
<a class="menu-button"></a>
2323
<a class="logo" href="/"></a>
2424
</div>
25+
<%- partial('partials/header') %>
2526
<% if (!isIndex) { %>
26-
<%- partial('partials/header') %>
2727
<div id="main">
2828
<% if (page.blog_index) { %>
2929
<%- partial('partials/blog') %>

themes/vue/layout/partials/blog.ejs

Lines changed: 0 additions & 21 deletions
This file was deleted.

themes/vue/layout/partials/header.ejs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
11
<div id="header">
22
<a id="logo" href="/">
33
<img src="/images/logo.png">
4-
<span>Vue.js <sup>2.0 RC</sup></span>
4+
<span>Vue.js</span>
55
</a>
6-
<span style="
7-
position: absolute;
8-
top: 100%;
9-
left: 60px;
10-
padding: 0 10px;
11-
background: #ef9f00;
12-
border-radius: 3px;
13-
margin-top: -15px;
14-
line-height: 30px;
15-
color: white;
16-
font-weight: bold;
17-
letter-spacing: 1px;
18-
box-shadow: 0 1px 2px rgba(0,0,0,.3);
19-
">
20-
WORK IN PROGRESS
21-
</span>
226
<ul id="nav">
237
<%- partial('partials/main_menu', { context: 'nav' }) %>
248
</ul>

themes/vue/layout/partials/main_menu.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
<li><a href="/guide/" class="nav-link<%- page.path.match(/guide/) ? ' current' : '' %>">Guide</a></li>
77
<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/) ? ' current' : '' %>">Blog</a></li>
9+
<li><a href="https://medium.com/the-vue-point" target="_blank" class="nav-link<%- page.path.match(/blog/) ? ' current' : '' %>">Blog</a></li>
1010
<%- partial('partials/community_dropdown') %>

themes/vue/layout/partials/sponsors.ejs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<span>Proudly sponsored by</span>
2-
<br>
31
<a href="https://www.itunescn.com/" target="_blank" style="top:2px">
42
<img src="/images/itunescn.png">
53
</a>
@@ -24,6 +22,9 @@
2422
<a href="http://monterail.com/" target="_blank">
2523
<img src="/images/monterail.png">
2624
</a>
27-
<a href="https://www.trisoft.ro/" target="_blank" style="width:80px;top:-1px">
25+
<a href="https://www.trisoft.ro/" target="_blank" style="width:80px;top:-2px">
2826
<img src="/images/trisoft.png" style="width:80px">
2927
</a>
28+
<a href="http://actualize.co/" target="_blank" style="width:144px;">
29+
<img src="/images/actualize.png" style="width:144px">
30+
</a>

themes/vue/source/css/_blog.styl

Lines changed: 0 additions & 23 deletions
This file was deleted.

themes/vue/source/css/_common.styl

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,31 +40,18 @@ em
4040
p
4141
word-spacing 0.05em
4242

43-
button()
43+
a.button
44+
padding 0.75em 2em
45+
border-radius 2em
4446
display inline-block
45-
font-weight 700
4647
color #fff
4748
background-color lighten($green, 8%)
4849
transition all .15s ease
49-
&:hover
50-
background-color lighten($green, 15%)
51-
-webkit-transform scale(1.03)
52-
transform scale(1.03)
53-
54-
a.button
55-
button()
56-
font-family $code-font
57-
border-bottom 2px solid darken($green, 12%)
58-
padding 12px 14px
59-
border-radius 4px
60-
61-
62-
a.small-button
63-
button()
64-
padding 4px 8px 5px
65-
border-radius 4px
66-
width 140px
67-
margin 0 5px
50+
box-sizing border-box
51+
border 1px solid lighten($green, 8%)
52+
&.white
53+
background-color #fff
54+
color $green
6855

6956
.highlight
7057
overflow-x auto

0 commit comments

Comments
 (0)