Added some nicer error pages

This commit is contained in:
neviyn 2021-04-29 21:19:33 +01:00
parent 2ad500d758
commit 3540c077f1
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta th:replace="fragments :: header"/>
<title>403 | Permission Denied</title>
</head>
<body>
<div class="d-flex h-100 flex-column align-items-center align-content-center mt-3">
<i class="bi bi-cone-striped" style="font-size: 3rem;"></i>
<h1 class="display-6"><span class="badge bg-secondary rounded-pill align-top">403</span> Forbidden</h1>
<p class="lead">
Sorry. You don't have access to this resource.
</p>
<a class="btn btn-link btn-lg mt-3" href="javascript:history.back()">Back</a>
<a class="btn btn-link btn-lg mt-3" href="/">Home</a>
</div>
</body>
</html>

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta th:replace="fragments :: header"/>
<title>404 | Not Found</title>
</head>
<body>
<div class="d-flex h-100 flex-column align-items-center align-content-center mt-3">
<i class="bi bi-cone-striped" style="font-size: 3rem;"></i>
<h1 class="display-6"><span class="badge bg-secondary rounded-pill align-top">404</span> Not Found</h1>
<p class="lead">
Sorry. Looks like the page you wanted doesn't exist.
</p>
<a class="btn btn-link btn-lg mt-3" href="javascript:history.back()">Back</a>
<a class="btn btn-link btn-lg mt-3" href="/">Home</a>
</div>
</body>
</html>