-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
Copy pathHome.vue
381 lines (338 loc) Β· 8.05 KB
/
Home.vue
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<script setup lang="ts">
import { onMounted } from 'vue'
import SiteMap from './SiteMap.vue'
// import NewsLetter from './NewsLetter.vue'
import { load, data, base } from './sponsors'
import SponsorsGroup from './SponsorsGroup.vue'
import VueMasteryModal from './VueMasteryModal.vue'
onMounted(load)
</script>
<template>
<section id="hero">
<img id="uwu" alt="Vue.js Kawaii Logo by @icarusgkx" />
<h1 class="tagline">
The
<span class="accent">Progressive</span>
<br />JavaScript Framework
</h1>
<p class="description">
An approachable, performant and versatile framework for building web
user interfaces.
</p>
<p class="actions">
<VueMasteryModal />
<a class="get-started" href="/guide/introduction.html">
Get Started
<svg
class="icon"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="10"
viewBox="0 0 24 24"
>
<path
d="M13.025 1l-2.847 2.828 6.176 6.176h-16.354v3.992h16.354l-6.176 6.176 2.847 2.828 10.975-11z"
/>
</svg>
</a>
<a class="setup" href="/guide/quick-start.html">Install</a>
<a class="security" href="https://v2.vuejs.org/eol/" target="_blank">
Get Security Updates for Vue 2
<svg
class="icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"
>
<path
d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"
/>
</svg>
</a>
</p>
</section>
<section v-if="data && data.special" id="special-spsr">
<span class="lead">Special Sponsor</span>
<template v-for="{ url, img, name, description } of data.special">
<a :href="url" target="_blank" rel="sponsored noopener">
<picture v-if="img.endsWith('png')">
<source
type="image/avif"
:srcset="`${base}/images/${img.replace(/\.png$/, '.avif')}`"
/>
<img :src="`${base}/images/${img}`" :alt="name" />
</picture>
<img
width="168"
height="42"
v-else
:src="`${base}/images/${img}`"
:alt="name"
/>
</a>
<span>{{ description }}</span>
</template>
</section>
<section v-else id="special-spsr">
<span>
<a href="/sponsor/#tier-benefits">
Special Sponsor slot is now vacant - Inquire now
</a>
</span>
</section>
<section id="highlights" class="vt-box-container">
<div class="vt-box">
<h2>Approachable</h2>
<p>
Builds on top of standard HTML, CSS and JavaScript with intuitive
API and world-class documentation.
</p>
</div>
<div class="vt-box">
<h2>Performant</h2>
<p>
Truly reactive, compiler-optimized rendering system that rarely
requires manual optimization.
</p>
</div>
<div class="vt-box">
<h2>Versatile</h2>
<p>
A rich, incrementally adoptable ecosystem that scales between a
library and a full-featured framework.
</p>
</div>
</section>
<section id="spsrs">
<h2>Platinum Sponsors</h2>
<SponsorsGroup tier="platinum" placement="landing" />
<h2>Gold Sponsors</h2>
<SponsorsGroup tier="gold" placement="landing" />
</section>
<SiteMap />
<!-- <NewsLetter /> -->
</template>
<style scoped>
section {
padding: 42px 32px;
}
#hero {
padding: 96px 32px;
text-align: center;
}
.tagline {
font-size: 76px;
line-height: 1.25;
font-weight: 900;
letter-spacing: -1.5px;
max-width: 960px;
margin: 0px auto;
}
html:not(.dark) .accent,
.dark .tagline {
background: -webkit-linear-gradient(315deg, #42d392 25%, #647eff);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.description {
max-width: 960px;
line-height: 1.5;
color: var(--vt-c-text-2);
transition: color 0.5s;
font-size: 22px;
margin: 24px auto 40px;
}
.actions a {
font-size: 16px;
display: inline-block;
background-color: var(--vt-c-bg-mute);
padding: 8px 18px;
font-weight: 500;
border-radius: 8px;
transition: background-color 0.5s, color 0.5s;
}
.actions .security {
background: linear-gradient(var(--vt-c-bg-mute), var(--vt-c-bg-mute)) padding-box,
linear-gradient(45deg, #42d392, #647eff) border-box;
border: 2px solid transparent;
}
.actions .security:hover {
background: linear-gradient(var(--vt-c-gray-light-4), var(--vt-c-gray-light-4)) padding-box,
linear-gradient(45deg, #42d392, #647eff) border-box;
}
.dark .actions .security:hover {
background: linear-gradient(var(--vt-c-gray-dark-3), var(--vt-c-gray-dark-3)) padding-box,
linear-gradient(45deg, #42d392, #647eff) border-box;
}
.actions .security .icon {
width: 12px;
height: 12px;
margin-left: 4px;
}
.actions .get-started,
.actions .setup {
margin-right: 18px;
}
.actions .icon {
display: inline;
position: relative;
top: -1px;
margin-left: 2px;
fill: currentColor;
transition: transform 0.2s;
}
.actions .get-started:hover {
transition-duration: 0.2s;
}
.actions .get-started:hover .icon {
transform: translateX(2px);
}
.actions .get-started,
.actions .setup,
.actions .security {
color: var(--vt-c-text-code);
}
.actions .get-started:hover,
.actions .setup:hover,
.actions .security:hover {
background-color: var(--vt-c-gray-light-4);
transition-duration: 0.2s;
}
.dark .actions .get-started:hover,
.dark .actions .setup:hover,
.dark .actions .security:hover {
background-color: var(--vt-c-gray-dark-3);
}
#special-spsr {
border-top: 1px solid var(--vt-c-divider-light);
border-bottom: 1px solid var(--vt-c-divider-light);
padding: 12px 24px;
display: flex;
align-items: center;
}
#special-spsr span {
color: var(--vt-c-text-2);
font-weight: 500;
font-size: 13px;
vertical-align: middle;
flex: 1;
}
#special-spsr span:first-child {
text-align: right;
}
#special-spsr a {
display: flex;
justify-content: center;
padding: 0 24px;
}
#special-spsr img {
height: 42px;
margin: -6px 0;
}
.dark #special-spsr img {
filter: grayscale(1) invert(1);
}
#highlights {
max-width: 960px;
margin: 0px auto;
color: var(--vt-c-text-2);
}
#highlights h2 {
font-weight: 600;
font-size: 20px;
letter-spacing: -0.4px;
color: var(--vt-c-text-1);
transition: color 0.5s;
margin-bottom: 0.75em;
}
#highlights p {
font-weight: 400;
font-size: 15px;
}
#highlights .vt-box {
background-color: transparent;
}
#spsrs {
max-width: 900px;
margin: 0px auto;
}
#spsrs h2 {
font-size: 20px;
font-weight: 600;
margin-bottom: 1em;
}
#spsrs .spsr-container {
margin-bottom: 3em;
}
@media (max-width: 960px) {
.tagline {
font-size: 64px;
letter-spacing: -0.5px;
}
.description {
font-size: 18px;
margin-bottom: 48px;
}
}
@media (max-width: 794px) {
.tagline {
font-size: 48px;
letter-spacing: -0.5px;
}
.actions .security {
margin-top: 18px;
}
}
@media (max-width: 576px) {
#hero {
padding: 56px 32px;
}
.description {
font-size: 16px;
margin: 18px 0 30px;
}
#special-spsr {
flex-direction: column;
}
#special-spsr img {
height: 36px;
margin: 8px 0;
}
#special-spsr span {
text-align: center !important;
}
#highlights h3 {
margin-bottom: 0.6em;
}
#highlights .vt-box {
padding: 20px 36px;
}
.actions a {
margin: 18px 0;
}
.actions .security {
margin-top: 0;
}
}
@media (max-width: 370px) {
.tagline {
font-size: 36px;
}
}
#uwu {
display: none;
}
.uwu #uwu {
display: block;
width: 100%;
max-width: 720px;
margin: -120px auto -20px;
aspect-ratio: 192 / 108;
content: url(/logo-uwu.png);
}
@media (max-width: 576px) {
.uwu #uwu {
margin: -60px auto -10px;
}
}
</style>