-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
Copy pathindex.ejs
191 lines (178 loc) · 5.7 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<% function logo(img) { return `https://sponsors.vuejs.org/images/${img}` } %>
<main role="main">
<div class="sidebar">
<div class="sidebar-inner-index">
<ul class="main-menu">
<%- partial('partials/main_menu', { context: 'sidebar' }) %>
</ul>
</div>
</div>
<div id="hero">
<div class="inner">
<div class="left">
<img class="hero-logo" src="<%- url_for("/images/logo.svg") %>" alt="Vue logo">
</div><div class="right">
<h2 class="vue">Vue.js</h2>
<h1>
The Progressive<br>JavaScript Framework
</h1>
<p>
<a id="modal-player" class="button has-icon" href="javascript:;">
<%- partial('icons/play') %>
WHY VUE.JS?</a>
<a class="button white" href="<%- url_for("/v2/guide/") %>">GET STARTED</a>
<a class="button gray has-icon" href="https://github.com/vuejs/vue" target="_blank" rel="noopener">
<%- partial('icons/github-dark') %>
GITHUB</a>
</p>
</div>
</div>
</div>
<%_ if (theme.special) { _%>
<div id="special">
<h3>Special Sponsor</h3>
<% var specialSponsor = theme.special[0]; %>
<a href="<%- specialSponsor.url %>" target="_blank" rel="noopener sponsored" class="sponsor" style="width: 160px; height: 80px; line-height: 80px;">
<img src="<%- logo(specialSponsor.img) %>" alt="Special sponsor <%- specialSponsor.name %>">
<br>
<!-- <span><%- specialSponsor.description %></span> -->
</a>
</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>An incrementally adoptable ecosystem that scales between a library and a full-featured framework.</p>
</div>
<div class="point">
<h2>Performant</h2>
<p>
20KB min+gzip Runtime<br>
Blazing Fast Virtual DOM<br>
Minimal Optimization Efforts
</p>
</div>
</div>
</div>
<div id="sponsors">
<div class="inner">
<%- partial('partials/sponsors') %>
</div>
</div>
<div id="news">
<div class="inner">
<h3><label for="member_email">Subscribe to our Weekly Newsletter</label></h3>
<form
class="newsletter-form"
id="revue-form"
name="revue-form"
target="_blank"
rel="noopener"
action="https://www.getrevue.co/profile/vuenewsletter/add_subscriber"
method="post"
@submit="subscribe"
>
<input
class="newsletter-input"
type="email"
name="member[email]"
id="member_email"
required
placeholder="Email address"
>
<input
class="button newsletter-button"
type="submit"
value="Subscribe"
name="member[subscribe]"
id="member_submit"
>
</form>
<p>
You can read the previous issues and listen to our podcast at <a href="https://news.vuejs.org" target="_blank" rel="noopener">news.vuejs.org</a>.
</p>
</div>
</div>
</main>
<footer id="footer" role="contentinfo">
<p>
<a class="social-icon" href="https://github.com/vuejs/vue" target="_blank" rel="noopener">
<%- partial('icons/github') %>
</a>
<a class="social-icon" href="https://twitter.com/vuejs" target="_blank" rel="noopener">
<%- partial('icons/twitter') %>
</a>
<a class="social-icon" href="https://medium.com/the-vue-point" target="_blank" rel="noopener">
<%- partial('icons/medium') %>
</a>
</p>
<p>Released under the <a href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener">MIT License</a><br>
Copyright © 2014-<%- new Date().getFullYear() %> Evan You</p>
</footer>
<div id="video-modal" class="modal">
<div class="video-space" style="padding: 56.25% 0 0 0; position: relative;">
<iframe
src="https://player.vimeo.com/video/247494684?dnt=1"
style="height: 100%; left: 0; position: absolute; top: 0; width: 100%;"
frameborder="0"
webkitallowfullscreen
mozallowfullscreen
allowfullscreen></iframe>
</div>
<script src="https://player.vimeo.com/api/player.js"></script>
<p class="modal-text">
Video by
<a
href="https://www.vuemastery.com"
target="_blank"
rel="sponsored noopener"
title="Vue.js Courses on Vue Mastery">
Vue Mastery
</a>. Watch Vue Mastery’s free
<a
href="https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance/"
target="_blank"
rel="sponsored noopener"
title="Vue.js Courses on Vue Mastery"
>
Intro to Vue course
</a>.
</p>
</div>
<script>
(function () {
var topScrolled = false
var sponsors = document.getElementById('sponsors')
var sponsorTop = sponsors.offsetTop
var sponsorActive = false
window.addEventListener('resize', function () {
sponsorTop = sponsors.offsetTop
})
window.addEventListener('scroll', function () {
var offset = 20
if (window.pageYOffset > offset && !topScrolled) {
topScrolled = true
document.getElementById('mobile-bar').classList.remove('top')
} else if (window.pageYOffset <= offset && topScrolled) {
topScrolled = false
document.getElementById('mobile-bar').classList.add('top')
}
if (window.pageYOffset > sponsorTop - 100) {
if (!sponsorActive) {
sponsorActive = true
sponsors.classList.add('active')
}
} else {
if (sponsorActive) {
sponsorActive = false
sponsors.classList.remove('active')
}
}
})
})()
</script>