-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherreur-404.php
113 lines (104 loc) · 2.78 KB
/
erreur-404.php
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
$error = $_SERVER["REDIRECT_STATUS"];
$error_title = '';
$error_message ='';
if($error == 404)
{
$error_title = 'Erreur 404';
$error_message = 'Nous sommes désolés, mais la page que vous recherchez n\'existe pas.';
}
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Erreur 404 - Page non trouvée</title>
<style>
body {
background-color: #183425;
font-family: Arial, sans-serif;
color: #333;
text-align: center;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
}
.container {
display: flex;
justify-content: center;
align-items: center;
min-height: 90vh;
flex-direction: column;
background-color: #183425;
padding: 10px;
}
.header-text {
margin-bottom: 20px;
}
.header-text h1 {
font-size: 72px;
margin: 0;
color: #BC644B;
}
h2 {
font-size: 24px;
margin: 0;
color: #f2d8be;
}
p {
margin: 20px 0;
color: #fff
}
a.btn-home {
background-color: #BC644B;
color: #fff;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
display: inline-block;
margin-top: 20px;
}
a.btn-home:hover {
background-color: #a22300;
}
.left-box, .right-box {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.right-box img {
border-radius: 10px;
max-width: 100%;
height: auto;
margin-top: 30px;
}
@media (min-width: 768px) {
.container {
flex-direction: row;
justify-content: space-between;
}
.left-box, .right-box {
width: 50%;
}
}
</style>
</head>
<body>
<div class="container">
<div class="left-box">
<div class="header-text">
<h1><?php echo $error_title?></h1>
</div>
<h2>Page non trouvée</h2>
<p><?php echo $error_message?></p>
<a href="index.php" class="btn-home">Retour à l'accueil</a>
</div>
<div class="right-box">
<img src="IMAGES/panda-rouge-dessin-anime-visage-triste_853115-1058.jpeg" alt="Panda roux triste">
</div>
</div>
</body>
</html>