Skip to content

Commit 0ae67a9

Browse files
Add files via upload
1 parent c74c343 commit 0ae67a9

File tree

2 files changed

+109
-2
lines changed

2 files changed

+109
-2
lines changed

app/Views/errors/html/error_404.php

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,84 @@
1-
{"status":false,"message":"error 404, page not found, visit https://crudigniter.github.io for documentantion"}
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>404 Page Not Found</title>
6+
7+
<style>
8+
div.logo {
9+
height: 200px;
10+
width: 155px;
11+
display: inline-block;
12+
opacity: 0.08;
13+
position: absolute;
14+
top: 2rem;
15+
left: 50%;
16+
margin-left: -73px;
17+
}
18+
body {
19+
height: 100%;
20+
background: #fafafa;
21+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
22+
color: #777;
23+
font-weight: 300;
24+
}
25+
h1 {
26+
font-weight: lighter;
27+
letter-spacing: 0.8;
28+
font-size: 3rem;
29+
margin-top: 0;
30+
margin-bottom: 0;
31+
color: #222;
32+
}
33+
.wrap {
34+
max-width: 1024px;
35+
margin: 5rem auto;
36+
padding: 2rem;
37+
background: #fff;
38+
text-align: center;
39+
border: 1px solid #efefef;
40+
border-radius: 0.5rem;
41+
position: relative;
42+
}
43+
pre {
44+
white-space: normal;
45+
margin-top: 1.5rem;
46+
}
47+
code {
48+
background: #fafafa;
49+
border: 1px solid #efefef;
50+
padding: 0.5rem 1rem;
51+
border-radius: 5px;
52+
display: block;
53+
}
54+
p {
55+
margin-top: 1.5rem;
56+
}
57+
.footer {
58+
margin-top: 2rem;
59+
border-top: 1px solid #efefef;
60+
padding: 1em 2em 0 2em;
61+
font-size: 85%;
62+
color: #999;
63+
}
64+
a:active,
65+
a:link,
66+
a:visited {
67+
color: #dd4814;
68+
}
69+
</style>
70+
</head>
71+
<body>
72+
<div class="wrap">
73+
<h1>404 - File Not Found</h1>
74+
75+
<p>
76+
<?php if (! empty($message) && $message !== '(null)') : ?>
77+
<?= nl2br(esc($message)) ?>
78+
<?php else : ?>
79+
Sorry! Cannot seem to find the page you were looking for.
80+
<?php endif ?>
81+
</p>
82+
</div>
83+
</body>
84+
</html>

app/Views/errors/html/production.php

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
{"status":false,"message":"unexpected error, check database connection or url, visit https://crudigniter.github.io for documentantion"}
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="robots" content="noindex">
6+
7+
<title>Whoops!</title>
8+
9+
<style type="text/css">
10+
<?= preg_replace('#[\r\n\t ]+#', ' ', file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'debug.css')) ?>
11+
</style>
12+
</head>
13+
<body>
14+
15+
<div class="container text-center">
16+
17+
<h1 class="headline">Whoops!</h1>
18+
19+
<p class="lead">We seem to have hit a snag. Please try again later...</p>
20+
21+
</div>
22+
23+
</body>
24+
25+
</html>

0 commit comments

Comments
 (0)