-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path404.html
82 lines (78 loc) · 2.89 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
<!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="/scripts/scripts.js" type="module" crossorigin="use-credentials"></script>
<script type="module">
import { sampleRUM } from '/scripts/aem.js';
window.addEventListener('load', () => {
if (document.referrer) {
const { origin, pathname } = new URL(document.referrer);
if (origin === window.location.origin) {
const backBtn = document.createElement('a');
const btn = document.createElement('strong');
backBtn.classList.add('button', 'secondary');
backBtn.href = pathname;
backBtn.textContent = 'Go back';
backBtn.title = 'Go back';
const btnContainer = document.querySelector('.back-btn');
btn.append(backBtn);
btnContainer.append(btn);
}
}
sampleRUM('404', { source: document.referrer, target: window.location.href });
});
</script>
<link rel="stylesheet" href="/styles/styles.css" />
<style>
main.error {
min-height: calc(100vh - var(--nav-height));
}
main.error .error-number {
width: 100%;
}
main.error .error-number text {
font-family: var(--fixed-font-family);
}
</style>
<link rel="stylesheet" href="/styles/lazy-styles.css" />
</head>
<body>
<header></header>
<main class="error">
<div
class="section"
data-section-status="loaded"
data-alignment="section-align-center"
data-sectionbuttoninline="true"
>
<div class="default-content-wrapper">
<h1>404: Page Not Found</h1>
<div class="spacer spacer-small block" data-block-name="spacer"></div>
<h3><strong>WE'RE SORRY, THE PAGE YOU ARE LOOKING FOR IS MISSING</strong></h3>
<p><strong>Please use the buttons below to find something similar, or use search to find it faster.</strong></p>
<div class="spacer spacer-small block" data-block-name="spacer"></div>
<p class="button-container back-btn"></p>
<p class="button-container">
<strong><a href="/" title="HOME" class="button primary">home</a></strong>
</p>
<p class="button-container">
<strong
><a href="/learning-center" title="LEARNING CENTER" class="button primary">Learning Center</a></strong
>
</p>
<p class="button-container">
<strong><a href="/contact-us" title="CONTACT US" class="button primary">Contact Us</a></strong>
</p>
</div>
</div>
</main>
<footer></footer>
</body>
</html>