mirror of
https://github.com/claradex/nativegallery.git
synced 2025-03-25 18:58:16 +03:00
errors pages
This commit is contained in:
parent
e2f2452623
commit
df278c71f8
6 changed files with 163 additions and 0 deletions
11
views/pages/Errors/PhotoNotFound.latte
Normal file
11
views/pages/Errors/PhotoNotFound.latte
Normal file
|
@ -0,0 +1,11 @@
|
|||
{layout '..\@layout.latte'}
|
||||
{var $photo = new \App\Models\Photo($photo_id)}
|
||||
{block content}
|
||||
<center>
|
||||
<h1>Изображение не найдено</h1>
|
||||
<div class="p20w" style="margin-bottom:20px; padding:10px 30px">
|
||||
<img src="/static/img/pnp.jpg" alt="Пусто" width="400" height="205" border="0">
|
||||
<p>Изображения с таким номером нет на сайте.<br />Может быть, его здесь никогда и не было.<br />Если Вы уверены, что что-то здесь всё-таки было, значит, администратор по каким-то причинам это удалил.</p>
|
||||
</div>
|
||||
</center>
|
||||
{/block}
|
105
views/pages/Errors/Problems.latte
Normal file
105
views/pages/Errors/Problems.latte
Normal file
|
@ -0,0 +1,105 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>NativeGallery</title>
|
||||
<link href='https://cdn.jsdelivr.net/npm/boxicons@2.0.5/css/boxicons.min.css' rel='stylesheet'>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.1/dist/umd/popper.min.js" integrity="sha384-SR1sx49pcuLnqZUnnPwx6FCym0wLsk5JZuNx2bPPENzswTNFaQU1RDvt3wT4gWFG" crossorigin="anonymous"></script>
|
||||
<script src="https://birux.loc/app/Static/js/j.js" integrity="sha384-SR1sx49pcuLnqZUnnPwx6FCym0wLsk5JZuNx2bPPENzswTNFaQU1RDvt3wT4gWFG" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.min.js" integrity="sha384-j0CNLUeiqtyaRmlzUHCPZ+Gy5fQu0dQ6eZ/xAww941Ai1SxSY+0EQqNXNE6DZiVc" crossorigin="anonymous"></script>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
|
||||
</head>
|
||||
<style>
|
||||
@import url("/fonts/sf/stylesheet.css");
|
||||
.content__away {
|
||||
background-color: rgb(236, 237, 248);
|
||||
height: 350px;
|
||||
border: none;
|
||||
border-radius: 15px;
|
||||
}
|
||||
body {
|
||||
font-family: Segoe UI, Tahoma, Verdana;
|
||||
}
|
||||
|
||||
a,
|
||||
span,
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: #67a4ff;
|
||||
}
|
||||
|
||||
b {
|
||||
color: #3887ff;
|
||||
}
|
||||
|
||||
:root {
|
||||
--color-active: rgb(175, 223, 255);
|
||||
--first-color: #d7d8e0;
|
||||
--second-color: rgb(97, 124, 213);
|
||||
--mb-1: 0.5rem;
|
||||
--mb-2: 1rem;
|
||||
--mb-3: 1.5rem;
|
||||
--mb-4: 2rem;
|
||||
--mb-5: 2.5rem;
|
||||
--mb-6: 3rem;
|
||||
--z-back: -10;
|
||||
--z-normal: 1;
|
||||
--z-tooltip: 10;
|
||||
--z-fixed: 100;
|
||||
--body-font: 'SF UI Text';
|
||||
--big-font-size: 2rem;
|
||||
--h2-font-size: 1.25rem;
|
||||
--normal-font-size: 0.938rem;
|
||||
--header-height: 3rem;
|
||||
--font-semi: 600;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
:root {
|
||||
--big-font-size: 3.5rem;
|
||||
--h2-font-size: 2rem;
|
||||
--normal-font-size: 1rem;
|
||||
}
|
||||
}
|
||||
.btn-friendly {
|
||||
background-color: #d3b81d !important;
|
||||
color: aliceblue !important;
|
||||
}
|
||||
.btn-friendly:hover {
|
||||
background-color: #b19600 !important;
|
||||
color: aliceblue !important;
|
||||
}
|
||||
.btn-friendly:focus {
|
||||
background-color: #d3b81d !important;
|
||||
color: aliceblue !important;
|
||||
}
|
||||
.btnl-1 {
|
||||
border: none !important;
|
||||
border-radius: 15px 15px 0 0 !important;
|
||||
}
|
||||
.btnl-2 {
|
||||
border: none !important;
|
||||
border-radius: 0 0 15px 15px !important;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<br><br><br>
|
||||
<main class="flex-shrink-0">
|
||||
<div class="container">
|
||||
<div class="content__away">
|
||||
<div class="modal-body p-5">
|
||||
<h2 class="mt-3"><b>NativeGallery Errors</b></h2><br>
|
||||
<pre n:foreach="$problems as $p">{$p}</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
9
views/pages/Errors/PublicProblems.latte
Normal file
9
views/pages/Errors/PublicProblems.latte
Normal file
|
@ -0,0 +1,9 @@
|
|||
{layout '..\@layout.latte'}
|
||||
{var $photo = new \App\Models\Photo($photo_id)}
|
||||
{block content}
|
||||
<h1>Произошла ошибка</h1>
|
||||
|
||||
<div n:foreach="$problems as $p" class="p20" style="padding:20px">
|
||||
{$p}
|
||||
</div>
|
||||
{/block}
|
21
views/pages/Errors/ServerDown.latte
Normal file
21
views/pages/Errors/ServerDown.latte
Normal file
|
@ -0,0 +1,21 @@
|
|||
|
||||
<html lang="ru">
|
||||
|
||||
|
||||
<head>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<html>
|
||||
<body style="background-color:black">
|
||||
|
||||
<table style="width:100%; height:100%">
|
||||
<tr><td style="color:#fff; text-align:center; font-size:19pt; font-family:arial,helvetica,verdana,sans-serif;"><img src="/static/img/hum.jpg"><br><br>Сервер <?=NGALLERY['root']['title']?> временно отключен в связи с техническими работами.</td></tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
11
views/pages/Errors/UserDeactivated.latte
Normal file
11
views/pages/Errors/UserDeactivated.latte
Normal file
|
@ -0,0 +1,11 @@
|
|||
{layout '..\@layout.latte'}
|
||||
{var $photo = new \App\Models\Photo($photo_id)}
|
||||
{block content}
|
||||
<center>
|
||||
<h1>Аккаунт недоступен</h1>
|
||||
<div class="p20w" style="margin-bottom:20px; padding:10px 30px">
|
||||
<img src="/static/img/pnp.jpg" alt="Пусто" width="400" height="205" border="0">
|
||||
<p>Мы сожалеем, но аккаунт пользователя {$username} был заблокирован за нарушение правил сайта.</p>
|
||||
</div>
|
||||
</center>
|
||||
{/block}
|
6
views/pages/Errors/UserNotFound.latte
Normal file
6
views/pages/Errors/UserNotFound.latte
Normal file
|
@ -0,0 +1,6 @@
|
|||
{layout '..\@layout.latte'}
|
||||
{var $photo = new \App\Models\Photo($photo_id)}
|
||||
{block content}
|
||||
<center><h1>Пользователь не найден</h1></center>
|
||||
<center><img src="/static/img/404.jpg"></center>
|
||||
{/block}
|
Loading…
Reference in a new issue