forked from adobe/adobe-io-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
84 lines (74 loc) · 2.52 KB
/
404.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
<!DOCTYPE html>
<html>
<head>
<title>Page not found</title>
<script type="text/javascript">
window.isErrorPage = true;
window.errorCode = '404';
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="Page not found">
<script src="/hlx_statics/scripts/scripts.js" type="module" crossorigin="use-credentials"></script>
<script src="/hlx_statics/scripts/lib-adobeio.js" type="module" crossorigin="use-credentials"></script>
<script type="module">
import { sampleRUM } from '/hlx_statics/scripts/lib-helix.js';
import { redirect, decorateButtons } from '/hlx_statics/scripts/lib-adobeio.js';
window.addEventListener('load', () => {
if (document.referrer) {
const { origin, pathname } = new URL(document.referrer);
if (origin === window.location.origin) {
const backBtn = document.createElement('a');
backBtn.classList.add('button', 'error-button-back');
backBtn.href = pathname;
backBtn.textContent = 'Go back';
backBtn.title = 'Go back';
const btnContainer = document.querySelector('.button-container');
btnContainer.append(backBtn);
}
}
decorateButtons(document);
sampleRUM('404', { source: document.referrer, target: window.location.href });
});
redirect();
</script>
<link rel="stylesheet" href="/hlx_statics/styles/styles.css">
<style>
main.error {
padding: 0 238px;
margin-top: 100px;
margin-bottom: 100px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.heading2 .spectrum-Divider {
display: none;
}
main.error .error-number {
width: 100%;
}
main.error .error-number text {
font-family: var(--fixed-font-family);
}
.error span.spectrum-Button-label {
color: white;
}
</style>
<link rel="stylesheet" href="/hlx_statics/styles/lazy-styles.css">
</head>
<body>
<header></header>
<main class="error">
<div class="section">
<h1 class="error-message spectrum-Heading--sizeXXL spectrum-Heading--serif">Error 404: Page not found</h2>
<p class="button-container spectrum-Body spectrum-Body--sizeL">
<a href="https://developer.adobe.com" class="spectrum-Button spectrum-Button--fill spectrum-Button--accent spectrum-Button--sizeM">
<span class="spectrum-Button-label">Go to homepage</span>
</a>
</p>
</div>
</main>
<footer></footer>
</body>
</html>