mirror of
https://github.com/SophiaAtkinson/steamwidgets-web.git
synced 2025-06-27 14:37:41 -07:00
Initial commit
This commit is contained in:
17
app/views/error/404.php
Normal file
17
app/views/error/404.php
Normal file
@ -0,0 +1,17 @@
|
||||
<!-- Error 404 yield file -->
|
||||
|
||||
<div class="outer">
|
||||
<div class="inner">
|
||||
<div class="title">
|
||||
<h1>Error 404</h1>
|
||||
</div>
|
||||
|
||||
<div class="text">
|
||||
<p>The requested resource <?= $_SERVER['REQUEST_URI']; ?> was not found on the server.</p>
|
||||
</div>
|
||||
|
||||
<div class="links">
|
||||
<button type="button" class="button btn-col-contact" onclick="location.href = '{{ url('/') }}';">Go home</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
89
app/views/error/exception_debug.php
Normal file
89
app/views/error/exception_debug.php
Normal file
@ -0,0 +1,89 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>Asatru PHP - Exception</title>
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgb(30, 30, 30);
|
||||
color: rgb(100, 100, 100);
|
||||
}
|
||||
|
||||
.ex_box {
|
||||
position: absolute;
|
||||
width: 98%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.ex_header {
|
||||
position: relative;
|
||||
margin-top: 5px;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
font-size: 1.2em;
|
||||
color: rgb(121, 73, 68);
|
||||
}
|
||||
|
||||
.ex_msg {
|
||||
position: relative;
|
||||
margin-top: 5px;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.ex_msg strong {
|
||||
color: rgb(128, 0, 0);
|
||||
}
|
||||
|
||||
.ex_trace_box {
|
||||
position: relative;
|
||||
margin-top: 35px;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 35px;
|
||||
border: 1px solid white;
|
||||
}
|
||||
|
||||
.ex_trace_title {
|
||||
position: relative;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.ex_trace_content {
|
||||
position: relative;
|
||||
margin-top: 15px;
|
||||
margin-left: 15px;
|
||||
margin-right: 15px;
|
||||
margin-bottom: 15px;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="ex_box">
|
||||
<div class="ex_header">
|
||||
<h1><strong>Exception</strong> at <?= $exception->getFile(); ?>:<?= $exception->getLine(); ?></h1>
|
||||
</div>
|
||||
|
||||
<div class="ex_msg">
|
||||
Reported error: <strong><?= $exception->getMessage(); ?></strong>
|
||||
</div>
|
||||
|
||||
<div class="ex_trace_box">
|
||||
<div class="ex_trace_title">
|
||||
Stack trace:
|
||||
</div>
|
||||
|
||||
<div class="ex_trace_content">
|
||||
<?= preg_replace("/\n/", '<br>', $exception->getTraceAsString()); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
41
app/views/error/exception_prod.php
Normal file
41
app/views/error/exception_prod.php
Normal file
@ -0,0 +1,41 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>Asatru PHP - Error 500</title>
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgb(30, 30, 30);
|
||||
color: rgb(100, 100, 100);
|
||||
}
|
||||
|
||||
.outer {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.inner {
|
||||
position: absolute;
|
||||
margin: 0;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
-ms-transform: translateX(-50%) translateY(-50%);
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
font-size: 2em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="outer">
|
||||
<div class="inner">
|
||||
<strong>500</strong> | Internal server error
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user