proper errors

This commit is contained in:
Flummi 2022-03-23 05:59:11 +01:00
parent 33d60446f1
commit a507f3be46
3 changed files with 48 additions and 13 deletions

View File

@ -465,7 +465,7 @@ div#posts {
grid-gap: 5px; grid-gap: 5px;
margin: 0; margin: 0;
padding: 0; padding: 0;
margin-top: 15px; /* margin-top: 15px; */
margin-bottom: 35px; margin-bottom: 35px;
} }
@ -527,7 +527,8 @@ div#posts > a:hover::after {
text-transform: uppercase; text-transform: uppercase;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; /* justify-content: space-between; */
justify-content: start;
border-bottom: 1px solid var(--nav-border-color); border-bottom: 1px solid var(--nav-border-color);
} }
@ -592,7 +593,8 @@ span.f0ck {
} }
.nav-item { .nav-item {
width: 100%; width: auto;
white-space: nowrap;
text-align: center; text-align: center;
} }
@ -697,11 +699,16 @@ span.placeholder {
display: inline-block; display: inline-block;
} }
/* Navbar media queries */ /* Navbar media queries */
/* @media(max-width: 360px) {
.navbar {
justify-content: space-between;
}
} */
@media (max-width: 1056px) { @media (max-width: 1056px) {
.navbar { .navbar {
width: 100%; width: 100%;
display: grid; display: flex;
justify-content: normal; justify-content: center;
} }
.pagination-wrapper { .pagination-wrapper {
width: 100%; width: 100%;
@ -799,8 +806,8 @@ span.placeholder {
} }
.dropdown-menu { .dropdown-menu {
position: relative; position: absolute;
top: 0; top: ;
left: 0; left: 0;
margin-right: 5px; margin-right: 5px;
margin-left: 5px; margin-left: 5px;
@ -822,10 +829,8 @@ span.placeholder {
.index-container { .index-container {
width: 100%; width: 100%;
padding-right: 15; padding: 5px;
padding-left: 15; background-color: var(--navigation-links-bg);
margin-left: auto;
margin-right: auto;
} }
@media (min-width: 361px) { @media (min-width: 361px) {
@ -1532,3 +1537,28 @@ span#favs {
a[data-mime^="audio"] { a[data-mime^="audio"] {
background-color: var(--accent); background-color: var(--accent);
} }
/* err page */
.err {
display: grid;
grid-template-rows: auto 1fr;
grid-template-columns: 1fr auto;
margin: 50px;
box-shadow: 5px 5px 5px black;
border-radius: .45rem;
background: #bb880b;
}
.err span {
font-weight: bold;
text-align: left;
align-self: center;
margin: 35px;
text-shadow: 1px 1px black;
font-size: 15px;
}
.err img {
margin: 10px;
align-self: center;
}

View File

@ -225,7 +225,7 @@ export default {
if(!actitem) { // sfw-check! if(!actitem) { // sfw-check!
return { return {
success: false, success: false,
message: "Sorry this post is currently not visible, possible causes are: not tagged, post doesn't exist(yet) or invalid filter settings" message: "Sorry, this post is currently not visible."
}; };
} }

View File

@ -1,3 +1,8 @@
@include(snippets/header) @include(snippets/header)
<h1 style="text-align: center;">{{ message }}</h1> <div class="container">
<div class="err">
<span>{{ message }}</span>
<img src="https://f0ck.me/s/img/favicon.gif" alt="f0ck?!">
</div>
</div>
@include(snippets/footer) @include(snippets/footer)