-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
77 lines (74 loc) · 1.8 KB
/
Copy path404.html
File metadata and controls
77 lines (74 loc) · 1.8 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>404 Not Found</title>
<link rel="stylesheet" href="./styles.css" />
<!-- Import shared UI elements -->
<script type="module" src="common.js"></script>
<style>
body {
font-family: Arial, sans-serif;
background: #f9f9f9;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
.errorBox {
background: #fff;
border: 1px solid #ccc;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
padding: 30px 40px;
max-width: 500px;
text-align: center;
}
.errorBox h1 {
margin: 0 0 15px;
font-size: 28px;
color: #cc0000;
}
.errorBox p {
color: #555;
font-size: 16px;
margin-bottom: 25px;
}
.errorButtons {
display: flex;
justify-content: space-between;
gap: 10px;
}
.errorButtons button {
flex: 1;
padding: 10px 15px;
font-size: 14px;
cursor: pointer;
border: none;
border-radius: 8px;
background: #007bff;
color: white;
transition: background 0.2s ease;
}
.errorButtons button:hover {
background: #0056b3;
}
</style>
</head>
<body>
<div class="errorBox">
<h1>Page Not Found</h1>
<p>The page <strong id="missingPath"></strong> could not be found on this server.</p>
<div class="errorButtons">
<button onclick="window.location.href='index.html'">Home</button>
<button onclick="history.back()">Go Back</button>
<button onclick="window.location.href='contact.html'">Report</button>
</div>
</div>
<script>
const path = window.location.pathname;
document.getElementById("missingPath").textContent = path;
</script>
</body>
</html>