-
Notifications
You must be signed in to change notification settings - Fork 12
/
404.html
79 lines (73 loc) · 2.51 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
<!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/lib-franklin.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);
}
}
sampleRUM('404', { source: document.referrer, target: window.location.href });
});
</script>
<link rel="stylesheet" href="/styles/styles.css">
<style>
:root {
--heading-font-size-xxl: 46px;
--heading-font-size-xl: 22px;
--heading-font-size-xl: 25px;
--body-font-size-m: 16px;
}
main.error {
display: flex;
justify-content: center;
}
main.error .section {
padding: 32px;
}
</style>
<link rel="stylesheet" href="/styles/lazy-styles.css">
</head>
<body>
<header></header>
<main class="error">
<div class="container main-content">
<h1 id="social-feed">Sorry, we've looked high and low and can't find the page you're looking
for.</h1>
<h2>You might try searching for it or try some of our most commonly visited pages.</h2>
<h3>Possible reasons:</h3>
<ul>
<li>The page has moved</li>
<li>The page no longer exists</li>
<li>The web address was not entered correctly</li>
<li>The page was accessed from an expired search result</li>
</ul>
<h3>Suggested actions</h3>
<ul>
<li>Make sure the web address has been entered correctly</li>
<li>Go <a title="Go back" onclick="history.go(-1)" href="#"><b>BACK</b></a> to the previous page</li>
<li>Visit the <a title="Home page" href="/"><b>MACK HOMEPAGE</b></a></li>
<li>Search the MackTrucks.com site (search box above)</li>
</ul>
</div>
</main>
<footer></footer>
</body>
</html>