forked from Igalia/wpewebkit.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
391 lines (356 loc) · 11.4 KB
/
index.html
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
382
383
384
385
386
387
388
389
390
391
---
layout: home.html
title: WPE
description: WebKit port optimized for embedded devices
---
<style>
/* specific to home page */
body {
overflow-x: hidden;
}
main, main > .full-width {
display: grid;
grid-template-columns: 1fr [dash] 1px [main] auto 1px 1fr;
grid-template-rows: repeat(10,auto);
}
@media (min-width: 45rem) {
main, main > .full-width {
grid-template-columns: 1fr [dash] 1px [main] minmax(30rem,var(--mainColMax)) 1px 1fr;
}
}
main > * {
grid-column: main / -2;
}
main > .full-width {
grid-column: 1 / -1;
}
main > .full-width > div {
grid-column: main / -2;
}
main {
padding-inline: 0;
}
main > section {
background: var(--dashV);
}
main > section > * {
position: relative;
padding-left: 5px;
margin-left: 1rem;
}
main > section img {
max-width: 95%;
}
header.page {
background: linear-gradient(155deg,#5A5A5A,#A4A8A7,#443468 80%);
color: #FFF;
position: relative;
}
header.page video, header.page > span {
position: absolute;
top: 0;
left: 0;
width: 99vw;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
aspect-ratio: 16/9;
z-index: 1;
}
header.page > span {
background: linear-gradient(111deg,#000C 30%,#0002 80%);
z-index: 2;
}
header.page div {
position: relative;
z-index: 2;
padding: 2em 1rem 3em;
min-height: min-content;
}
header.page > div button {
position: absolute;
bottom: 0.5rem;
right: 0.75rem;
border: 0;
background: transparent;
opacity: 0.5;
}
header.page > div button svg {
height: 3em;
width: auto;
}
@media (min-width: 45rem) {
header.page div {
min-width: 30rem;
max-width: calc(var(--mainColMax) - 5rem);
margin: 0 auto;
padding-block: 6rem 12rem;
padding-inline: 2.5rem 1rem;
}
main > section > * {
margin-left: 2.5rem;
}
header.page div > * {
max-width: 80%;
}
}
@media (min-width: 65rem) {
header.page div {
max-width: calc(var(--mainColMax) - 10rem);
padding-inline: 5rem;
}
main > section > * {
margin-left: 5rem;
}
header.page div > * {
max-width: 60%;
}
}
body header.page::after {
content: none;
}
header.page div::before {
content: '';
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 1px;
background: var(--dashV);
}
header.page div > * {
filter: drop-shadow(0 0 1px #0008) drop-shadow(0 0 2px #0008) drop-shadow(0 0 4px #0008) drop-shadow(0 0 8px #0008);
}
header.page div h1 {
font-size: 3em;
font-weight: 400;
background: url({{ '/assets/img/graphic-title-white.svg' | url }}) 0 100% / 7rem auto no-repeat;
}
.explore-embedded, .resources, .developers {
padding-block-start: 0;
}
.explore-embedded .gallery {
display: grid;
grid-template-columns: 45% 45%;
}
.explore-embedded .gallery img {
max-width: 100%;
}
.explore-embedded ul.arrows {
margin-block-end: 1.5em;
}
.nodot {
padding: 2em 0 1em;
}
.success-stories {
padding: 0;
align-items: center;
overflow-x: clip;
background: radial-gradient(13rem at 45% 55%, #FFF, transparent),
#F1F1F1;
}
.success-stories > div {
padding-block: 2em;
}
.success-stories > * + ::before {
content: none;
}
.success-stories h2 {
margin: 0;
padding: 0.75em 0;
font-size: 1.4em;
}
.success-stories h3 img {
display: block;
max-height: 6.5rem;
}
.success-stories img.hero {
justify-self: start;
object-fit: cover;
object-position: 50% 50%;
}
@media (min-width: 45rem) {
.success-stories > div {
padding: 6rem;
grid-column: main / -2;
display: grid;
grid-template-columns: calc(50% - 5rem) 1fr;
grid-template-rows: min-content;
align-items: center;
gap: 10rem;
}
.success-stories > * {
margin: 0;
padding: 0;
}
.success-stories img.hero {
height: 100%;
max-width: none;
max-height: 30rem;
margin-inline-start: -5rem;
box-shadow: -0.25em 0 0.5em #06C3, 1em 1.5em 2.5em #0066DD99;
}
}
section.igalia {
padding-inline: 0;
background:
url({{ '/assets/img/dotted-continents.svg' | url }}) 50% 25% / cover;
}
section.igalia > div {
padding-block-end: 3em;
}
section.igalia > div > a img {
display: block;
height: 4em;
margin-block-end: 1em;
}
section.igalia > div > div > img {
display: none;
}
@media (min-width: 45rem) {
section.igalia {
background:
linear-gradient(to bottom right,#142B7AFA,#80A0B2) 100% 0 / 50% 100% no-repeat,
url({{ '/assets/img/dotted-continents.svg' | url }}) 50% 25% / cover;
background-blend-mode: multiply;
}
section.igalia > div {
grid-column: main / -2;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: min-content auto;
gap: 1rem 10rem;
}
section.igalia > div > h3 {
grid-row: 1;
grid-column: 1;
margin-block-start: 5rem;
}
section.igalia > div > a {
grid-row: 2;
grid-column: 1;
}
section.igalia > div > div {
grid-row: 2;
grid-column: 2;
color: white;
width: 75%;
justify-self: start;
margin-block-end: 4rem;
}
section.igalia > div > div > img {
display: block;
max-height: 5em;
margin-block: 0 1em;
}
section.igalia > div > div a {
color: inherit;
}
}
</style>
<header class="page full-width">
<video muted loop id="banner"><source src="{{ '/assets/video/homepage.mp4' | url }}" type="video/mp4"></video>
<span></span>
<div>
<h1>
Create simple and performant systems based on <strong>Web platform technologies.</strong>
</h1>
<p>
A WebKit port designed with flexibility and hardware acceleration in mind, leveraging common 3D graphics APIs for best performance.
</p>
<a class="cta btn large" href="{{ '/about/explore-wpe.html' | url }}">Get Started</a>
<button id="bannerControl" aria-label="Play/Pause silent background video"><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" stroke="#FFF" fill="#FFF"><circle cx="50" cy="50" r="45" stroke-width="9" fill="none" /><path d="M 35,30 l 40,20 -40,20 z" /></svg></button></div>
</header>
<main>
<section class="explore-embedded dotsep">
<header class="c2 text full-bleed">
<h2>Explore Embedded Browsers</h2>
<div><!-- placeholder for grid, whee -->
<p><big>The Web Platform is a frequently chosen foundational technology for many reasons, including:</big></p>
<ul class="arrows">
<li>Web Platform technologies are built on standards, they have great longevity</li>
<li>The standards are open, embedded systems can incorporate them without licensing fees or other worries.
Open standards with great longevity allows lots more things to benefit from the same investments</li>
<li>The number of people with the basic skills to build things with web technologies is massive</li>
</ul>
<a class="cta btn" style="font-size: smaller;text-align: center;" href="{{ '/about/what-is-embedded.html' | url }}">Learn more about embedded browsers</a>
</div>
</header>
<div class="c2 dotsep">
<h3><a href="{{ '/about/supported-hardware.html' | url }}">Supported Hardware</a></h3>
<p>WPE is currently running on a wide range of hardware. This page lists configurations which are known to work, sorted by manufacturer:</p>
<ul class="gallery c2">
<li><img src="{{ '/assets/img/[email protected]' | url }}" alt=""></li>
<li><img src="{{ '/assets/img/[email protected]' | url }}" alt=""></li>
<li><img src="{{ '/assets/img/[email protected]' | url }}" alt=""></li>
<li><img src="{{ '/assets/img/[email protected]' | url }}" alt=""></li>
</ul>
</div>
<div class="c2 dotsep">
<h3><a href="{{ '/about/a-good-choice.html' | url }}">Why Choose WPE?</a></h3>
<p>WPE WebKit is widely adopted by many industries, including digital signage, professional audio, home appliances, set-top-boxes, automotive, and inflight infotainment. Countless devices deployed around the globe are already using WPE WebKit as their web runtime platform, and use is growing rapidly.</p>
<img src="{{ '/assets/img/WhyChooseWPE-homepage.png' | url }}" alt="">
</div>
</section>
<section class="success-stories full-width dotsep">
<div>
<div class="spotlight">
<h2>Customer Success Story</h2>
<h3><a href="{{ '/blog/2022-success-metrological.html' | url }}"><img src="{{ '/assets/img/[email protected]' | url }}" alt="Metrological"></a></h3>
<p>WPE WebKit brought RDK, a modern, performant web browser, to millions of screens. It enables operators to manage devices and easily customize their UIs and apps and provides analytics to improve the customer experience and drive business results.</p>
<p><a href="{{ '/blog/2022-success-metrological.html' | url }}" class="cta btn large">Read Success Story</a></p>
</div>
<img src="{{ '/assets/img/Metrological-hero.jpg' | url }}" alt="" class="hero">
</div>
</section>
<section class="developers embedded dotsep">
<div>
<header class="full-bleed">
<h2><a href="{{ '/developers' | url }}">Developers</a></h2>
<img src="{{ '/assets/img/illustration-resources.svg' | url }}" alt="" class="decoration">
</header>
<div class="c2 dotsep">
<h3><a href="{{ '/about/architecture.html' | url }}">WPE Design</a></h3>
<p>WPE is the official WebKit port for embedded platforms. WPE is uniquely designed for embedded systems in that it doesn’t depend on any user-interface toolkits such as the traditional Cocoa, GTK, etc toolkits.</p>
<img src="{{ '/assets/img/diagram-WPE-design.svg' | url }}" alt="" class="decoration">
</div>
<div class="c2 dotsep text">
<h3><a href="{{ '/about/faq.html' | url }}">WPE’s Frequently Asked Questions</a></h3>
<p>We’ve been collecting answers to lots of common questions we’ve been asked. If you have questions, you might find a ready answer in the FAQ.</p>
</div>
</div>
</section>
<section class="igalia full-width">
<div>
<h3>Brought to you by</h3>
<a href="{{ 'https://igalia.com/' | url }}"><img src="{{ '/assets/img/igalia-larger.png' | url }}" alt="Igalia"></a>
<div>
<img src="{{ '/assets/img/Igalia_tagline-white-1.png' | url }}" alt="Open Source Consultancy">
<p>WPEWebKit is developed by <a href="{{ 'https://igalia.com/' | url }}">Igalia</a>, an open-source consultancy with a lot of experience working on the Web platform. As the maintainers of this official port of WebKit, Igalia has a great deal of experience with meeting hardware and software challenges in the embedded space and several others. <a href="{{ 'https://igalia.com/contact/' | url }}">Get in touch!</a></p>
<a href="{{ 'https://igalia.com/' | url }}" class="cta btn large">igalia.com</a>
</div>
</div>
</section>
</main>
<script>
// https://www.codespeedy.com/play-pause-button-for-html5-video-in-javascript/
var ppbutton = document.getElementById("bannerControl");
ppbutton.addEventListener("click", playPause);
myVideo = document.getElementById("banner");
function playPause() {
if (myVideo.paused) {
myVideo.play();
ppbutton.innerHTML = '<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" stroke="#FFF" fill="#FFF"><circle cx="50" cy="50" r="45" stroke-width="9" fill="none" /><rect x="33" y="30" width="12" height="40" /><rect x="55" y="30" width="12" height="40" /></svg>';
} else {
myVideo.pause();
ppbutton.innerHTML = '<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" stroke="#FFF" fill="#FFF"><circle cx="50" cy="50" r="45" stroke-width="9" fill="none" /><path d="M 35,30 l 40,20 -40,20 z" /></svg>';
}
}
window.onload = function() {
let mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
if (mediaQuery || !mediaQuery.matches) {
myVideo.play();
ppbutton.innerHTML = '<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" stroke="#FFF" fill="#FFF"><circle cx="50" cy="50" r="45" stroke-width="9" fill="none" /><rect x="33" y="30" width="12" height="40" /><rect x="55" y="30" width="12" height="40" /></svg>';
}
}
</script>