-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.php
More file actions
60 lines (60 loc) · 1.72 KB
/
404.php
File metadata and controls
60 lines (60 loc) · 1.72 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
<?php
http_response_code(404);
?>
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - Страница не найдена</title>
<link rel="stylesheet" href="/styles.css">
<style>
.error-container {
min-height: 60vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 2rem;
}
.error-code {
font-size: 6rem;
font-weight: bold;
color: #e74c3c;
margin: 0;
}
.error-message {
font-size: 1.5rem;
color: #2c3e50;
margin: 1rem 0;
}
.error-description {
color: #7f8c8d;
margin-bottom: 2rem;
}
.home-link {
display: inline-block;
padding: 0.8rem 1.5rem;
background-color: #3498db;
color: white;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.3s;
}
.home-link:hover {
background-color: #2980b9;
}
</style>
</head>
<body>
<div class="error-container">
<h1 class="error-code">404</h1>
<h2 class="error-message">Страница не найдена</h2>
<p class="error-description">
К сожалению, запрашиваемая страница не существует или была перемещена.
</p>
<a href="/" class="home-link">Вернуться на главную</a>
</div>
</body>
</html>