forked from vuejs/v2.vuejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ejs
72 lines (65 loc) · 1.92 KB
/
index.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<div class="sidebar">
<ul class="main-menu">
<%- partial('partials/main_menu', { context: 'sidebar' }) %>
</ul>
</div>
<div id="hero">
<div class="inner">
<div class="left">
<img class="hero-logo" src="/images/logo.png">
</div><div class="right">
<h2 class="vue">Vue.js</h2>
<h1>
The Progressive<br>JavaScript Framework
</h1>
<p>
<a class="button" href="/v2/guide/">GET STARTED</a>
<a class="button white" href="https://github.com/vuejs/vue" target="_blank">GITHUB</a>
</p>
</div>
</div>
</div>
<div id="highlights">
<div class="inner">
<div class="point">
<h2>Approachable</h2>
<p>Already know HTML, CSS and JavaScript? Read the guide and start building things in no time!</p>
</div>
<div class="point">
<h2>Versatile</h2>
<p>Simple, minimal core with an incrementally adoptable stack that can handle apps of any scale.</p>
</div>
<div class="point">
<h2>Performant</h2>
<p>
17kb min+gzip Runtime<br>
Blazing Fast Virtual DOM<br>
Minimal Optimization Efforts
</p>
</div>
</div>
</div>
<div id="sponsors">
<div class="inner">
<h3>PROUDLY SPONSORED BY</h3>
<%- partial('partials/sponsors') %>
<br>
<a class="become-sponsor button white" href="/support-vuejs/">Become a Backer</a>
</div>
</div>
<div id="footer">
Released under the <a href="https://opensource.org/licenses/MIT" href="_blank">MIT License</a><br>
Copyright © 2014-<%- new Date().getFullYear() %> Evan You
</div>
<script>
var topScrolled = false
window.addEventListener('scroll', function () {
if (window.pageYOffset > 165 && !topScrolled) {
topScrolled = true
document.getElementById('mobile-bar').classList.remove('top')
} else if (window.pageYOffset <= 165 && topScrolled) {
topScrolled = false
document.getElementById('mobile-bar').classList.add('top')
}
})
</script>