Skip to content

Commit da16691

Browse files
authored
add 500 error
1 parent fdc18a8 commit da16691

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed

routes/errors/500.php

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>500 - Server Error</title>
8+
<style>
9+
* {
10+
box-sizing: border-box;
11+
}
12+
13+
body {
14+
font-family: 'Roboto', sans-serif;
15+
background-color: #222;
16+
color: #fff;
17+
margin: 0;
18+
display: flex;
19+
justify-content: center;
20+
align-items: center;
21+
min-height: 100vh;
22+
}
23+
24+
.container {
25+
max-width: 400px;
26+
width: 90%;
27+
text-align: center;
28+
padding: 40px;
29+
background-color: #333;
30+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
31+
border-radius: 4px;
32+
opacity: 0;
33+
animation: fade-in 1s forwards;
34+
}
35+
36+
@keyframes fade-in {
37+
0% {
38+
opacity: 0;
39+
transform: translateY(-20px);
40+
}
41+
42+
100% {
43+
opacity: 1;
44+
transform: translateY(0);
45+
}
46+
}
47+
48+
h1 {
49+
font-size: 72px;
50+
font-weight: 700;
51+
color: transparent;
52+
background-image: linear-gradient(to right, #e91e63, #8c14fc);
53+
-webkit-background-clip: text;
54+
background-clip: text;
55+
-webkit-text-fill-color: transparent;
56+
margin: 0;
57+
}
58+
59+
h2 {
60+
font-size: 24px;
61+
font-weight: 400;
62+
color: #fff;
63+
margin-top: 10px;
64+
}
65+
66+
p {
67+
font-size: 16px;
68+
color: #ccc;
69+
margin-top: 20px;
70+
}
71+
72+
a {
73+
display: inline-block;
74+
font-size: 16px;
75+
color: #e91e63;
76+
text-decoration: none;
77+
margin-top: 20px;
78+
border-bottom: 1px solid #e91e63;
79+
padding-bottom: 2px;
80+
transition: border-bottom 0.2s;
81+
}
82+
83+
a:hover {
84+
border-bottom-color: #c2185b;
85+
}
86+
87+
@media (max-width: 480px) {
88+
h1 {
89+
font-size: 48px;
90+
}
91+
92+
h2 {
93+
font-size: 20px;
94+
}
95+
96+
p {
97+
font-size: 14px;
98+
}
99+
}
100+
</style>
101+
</head>
102+
103+
<body>
104+
<div class="container">
105+
<h1>500</h1>
106+
<h2>Internal Server Error</h2>
107+
<p>Sorry, something went wrong on our end.</p>
108+
<a href="<?php echo $_SERVER['REQUEST_URI']; ?>">try again</a>
109+
</div>
110+
</body>
111+
112+
</html>

0 commit comments

Comments
 (0)