Make 500 Error page

This commit is contained in:
Дмитрий Шиманский
2023-10-22 17:02:30 +03:00
parent 76208767b2
commit 35368f4d7c
8 changed files with 758 additions and 21 deletions

31
Pages/NotFound.cshtml Normal file
View File

@@ -0,0 +1,31 @@
@page
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page not found</title>
<link rel="shortcut icon" type="image/png" href="#">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/404.css" />
</head>
<body>
@{
string path = $"{this.Request.Scheme}://{this.Request.Host}";
}
<div class="error">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-7 text-center">
<img src="~/img/error-404.png" alt="image 404">
<h2><b>404</b> Страница не найдена</h2>
<p>посетите главную страницу <br> возможно вы найдёте её</p>
<a href="@path" class="cmn-btn mt-4">На главную</a>
</div>
</div>
</div>
</div>
</body>
</html>