fix indent

This commit is contained in:
Flummi 2021-03-03 07:56:46 +01:00
parent d6c12b9311
commit d553e71b50
8 changed files with 68 additions and 105 deletions

View File

@ -53,8 +53,8 @@ li.post:hover > span.item-mime {
} }
a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover, a.navbar-item.is-active, .navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, .navbar-link.is-active { a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover, a.navbar-item.is-active, .navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, .navbar-link.is-active {
background-color: #000000; background-color: #000;
color: #ffffff; color: #fff;
} }
a#next, a#prev { a#next, a#prev {
@ -64,7 +64,7 @@ a#next, a#prev {
bottom: 932px; bottom: 932px;
margin: unset; margin: unset;
font-size: 30px; font-size: 30px;
color: #99ff00; color: #9f0;
padding: 140px 40px 140px 40px; padding: 140px 40px 140px 40px;
cursor: pointer; cursor: pointer;
align-content: inherit; align-content: inherit;
@ -322,7 +322,7 @@ a#prev {
display: flex; display: flex;
width: 100%; width: 100%;
align-items: center; align-items: center;
justify-content: end; justify-content: flex-end;
} }
.arrow-next { .arrow-next {
@ -363,11 +363,7 @@ a#prev {
vertical-align: baseline; vertical-align: baseline;
zoom: 1; *display: inline; zoom: 1; *display: inline;
*vertical-align: auto; *vertical-align: auto;
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0)); background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
-webkit-box-shadow: 0 1px rgba(255, 255, 255, 0.05);
box-shadow: 0 1px rgba(255, 255, 255, 0.05); box-shadow: 0 1px rgba(255, 255, 255, 0.05);
} }
@ -396,15 +392,8 @@ a#prev {
text-shadow: 0 1px black; text-shadow: 0 1px black;
background-clip: padding-box; background-clip: padding-box;
border-color: rgba(0, 0, 0, 0.9); border-color: rgba(0, 0, 0, 0.9);
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)); background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
-webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px rgba(255, 255, 255, 0.04), inset 0 -1px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px rgba(255, 255, 255, 0.04), inset 0 -1px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px rgba(255, 255, 255, 0.04), inset 0 -1px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.1);
-webkit-transition: 0.1s ease-out;
-moz-transition: 0.1s ease-out;
-o-transition: 0.1s ease-out;
transition: 0.1s ease-out; transition: 0.1s ease-out;
} }
@ -419,7 +408,6 @@ a#prev {
background: #1c1c1c; background: #1c1c1c;
background: rgba(255, 255, 255, 0.01); background: rgba(255, 255, 255, 0.01);
border-color: black rgba(0, 0, 0, 0.65) rgba(0, 0, 0, 0.6); border-color: black rgba(0, 0, 0, 0.65) rgba(0, 0, 0, 0.6);
-webkit-box-shadow: inset 0 1px rgba(0, 0, 0, 0.05), inset 0 2px 2px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06);
box-shadow: inset 0 1px rgba(0, 0, 0, 0.05), inset 0 2px 2px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px rgba(0, 0, 0, 0.05), inset 0 2px 2px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06);
} }
@ -446,20 +434,20 @@ span#f0ck {
/* nav overhaul */ /* nav overhaul */
.nav-item { .nav-item {
width: 100%; width: 100%;
text-align: center text-align: center;
} }
.navbar-brand { .navbar-brand {
padding-top: 0 padding-top: 0;
} }
.navbar-nav.mr-auto { .navbar-nav.mr-auto {
flex-flow: row; flex-flow: row;
justify-content: space-between justify-content: space-between;
} }
.navbar.navbar-expand-lg { .navbar.navbar-expand-lg {
background: #242424 background: #242424;
} }
.navigation-links { .navigation-links {
@ -469,7 +457,6 @@ span#f0ck {
border-radius: 3px; border-radius: 3px;
border: 1px solid #000; border: 1px solid #000;
background-image: linear-gradient(to bottom,rgba(0,0,0,.12),rgba(0,0,0,0)); background-image: linear-gradient(to bottom,rgba(0,0,0,.12),rgba(0,0,0,0));
-webkit-box-shadow: 0 1px rgba(255,255,255,.05);
box-shadow: 0 1px rgba(255,255,255,.05); box-shadow: 0 1px rgba(255,255,255,.05);
border: 1px solid; border: 1px solid;
border-top-color: currentcolor; border-top-color: currentcolor;
@ -482,7 +469,7 @@ span#f0ck {
border-left-color: currentcolor; border-left-color: currentcolor;
border-color: #070809 #0d0e0f #131517; border-color: #070809 #0d0e0f #131517;
border-color: rgba(0,0,0,.8) rgba(0,0,0,.65) rgba(0,0,0,.5); border-color: rgba(0,0,0,.8) rgba(0,0,0,.65) rgba(0,0,0,.5);
border-radius: 3px border-radius: 3px;
} }
.nav-link { .nav-link {
@ -490,47 +477,44 @@ span#f0ck {
display: flex; display: flex;
border: 1px solid #000; border: 1px solid #000;
border-radius: 3px; border-radius: 3px;
transition: .1s ease-out transition: .1s ease-out;
} }
.nav-link { .nav-link {
min-width: 17px; min-width: 17px;
line-height: 27px; line-height: 27px;
background-image: -webkit-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: -moz-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: -o-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: linear-gradient(to bottom,rgba(255,255,255,.04),rgba(255,255,255,0)); background-image: linear-gradient(to bottom,rgba(255,255,255,.04),rgba(255,255,255,0));
-webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.04),inset 0 1px rgba(255,255,255,.04),inset 0 -1px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1) box-shadow: inset 0 0 0 1px rgba(255,255,255,.04),inset 0 1px rgba(255,255,255,.04),inset 0 -1px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1);
} }
.nav-item:hover>a:hover { .nav-item:hover>a:hover {
background-color: #333; background-color: #333;
background-color: rgba(255,255,255,.05) background-color: rgba(255,255,255,.05);
} }
.navbar-nav { .navbar-nav {
padding: 5px padding: 5px;
} }
.nav-item { .nav-item {
width: 100%; width: 100%;
text-align: center text-align: center;
} }
#navbarSupportedContent { #navbarSupportedContent {
padding: 5px padding: 5px;
} }
.pagination-container-fluid { .pagination-container-fluid {
display: flex; display: flex;
margin-left: 15px margin-left: 15px;
} }
.navbar-expand-lg .navbar-nav .nav-link { .navbar-expand-lg .navbar-nav .nav-link {
padding-right: .5rem; padding-right: .5rem;
padding-left: .5rem; padding-left: .5rem;
margin-right: 5px; margin-right: 5px;
margin-left: 5px margin-left: 5px;
} }
.pagination { .pagination {
@ -542,12 +526,9 @@ span#f0ck {
border-radius: 3px; border-radius: 3px;
display: inline-block; display: inline-block;
vertical-align: baseline; vertical-align: baseline;
zoom:1;background-image: -webkit-linear-gradient(top,rgba(0,0,0,.12),rgba(0,0,0,0)); zoom: 1;
background-image: -moz-linear-gradient(top,rgba(0,0,0,.12),rgba(0,0,0,0));
background-image: -o-linear-gradient(top,rgba(0,0,0,.12),rgba(0,0,0,0));
background-image: linear-gradient(to bottom,rgba(0,0,0,.12),rgba(0,0,0,0)); background-image: linear-gradient(to bottom,rgba(0,0,0,.12),rgba(0,0,0,0));
-webkit-box-shadow: 0 1px rgba(255,255,255,.05); box-shadow: 0 1px rgba(255,255,255,.05);
box-shadow: 0 1px rgba(255,255,255,.05)
} }
.pagination>a,.pagination>span { .pagination>a,.pagination>span {
@ -563,11 +544,15 @@ span#f0ck {
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
border: 1px solid #000; border: 1px solid #000;
border-radius: 3px border-radius: 3px;
}
.pagination > span {
border: 1px solid #68da20 !important;
} }
.pagination :first-child { .pagination :first-child {
margin-left: 0 margin-left: 0;
} }
.pagination>a { .pagination>a {
@ -575,21 +560,14 @@ span#f0ck {
text-shadow: 0 1px #000; text-shadow: 0 1px #000;
background-clip: padding-box; background-clip: padding-box;
border-color: rgba(0,0,0,.9); border-color: rgba(0,0,0,.9);
background-image: -webkit-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0)); background-image: linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: -moz-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: -o-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: linear-gradient(to bottom,rgba(255,255,255,.04),rgba(255,255,255,0));
-webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.04),inset 0 1px rgba(255,255,255,.04),inset 0 -1px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1);
box-shadow: inset 0 0 0 1px rgba(255,255,255,.04),inset 0 1px rgba(255,255,255,.04),inset 0 -1px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04),inset 0 1px rgba(255,255,255,.04),inset 0 -1px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1);
-webkit-transition: .1s ease-out; transition: .1s ease-out;
-moz-transition: .1s ease-out;
-o-transition: .1s ease-out;
transition: .1s ease-out
} }
.pagination>a:hover { .pagination>a:hover {
background-color: #333; background-color: #333;
background-color: rgba(255,255,255,.05) background-color: rgba(255,255,255,.05);
} }
.pagination>a:active,.pagination>span { .pagination>a:active,.pagination>span {
@ -598,83 +576,82 @@ span#f0ck {
background: #1c1c1c; background: #1c1c1c;
background: rgba(255,255,255,.01); background: rgba(255,255,255,.01);
border-color: #000 rgba(0,0,0,.65) rgba(0,0,0,.6); border-color: #000 rgba(0,0,0,.65) rgba(0,0,0,.6);
-webkit-box-shadow: inset 0 1px rgba(0,0,0,.05),inset 0 2px 2px rgba(0,0,0,.3),0 1px rgba(255,255,255,.06); box-shadow: inset 0 1px rgba(0,0,0,.05),inset 0 2px 2px rgba(0,0,0,.3),0 1px rgba(255,255,255,.06);
box-shadow: inset 0 1px rgba(0,0,0,.05),inset 0 2px 2px rgba(0,0,0,.3),0 1px rgba(255,255,255,.06)
} }
.pagination .next,.pagination .prev { .pagination .next,.pagination .prev {
font-family: Noteworthy,Arial,sans-serif; font-family: Noteworthy,Arial,sans-serif;
font-size: 14px font-size: 14px;
} }
.navbar-nav { .navbar-nav {
width: 100%; width: 100%;
padding: 5px padding: 5px;
} }
.nav-link-identifier { .nav-link-identifier {
text-align: center; text-align: center;
width: 100% width: 100%;
} }
@media (max-width: 768px) { @media (max-width: 768px) {
ul#posts { ul#posts {
grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
text-align: center; text-align: center;
padding-top: 5px padding-top: 5px;
} }
} }
@media (max-width: 422px) { @media (max-width: 422px) {
ul#posts { ul#posts {
grid-column-gap: 0; grid-column-gap: 0;
grid-row-gap: 5px grid-row-gap: 5px;
} }
.container-fluid,.container-lg,.container-md,.container-sm,.container-xl { .container-fluid,.container-lg,.container-md,.container-sm,.container-xl {
padding-right: 5px; padding-right: 5px;
padding-left: 5px padding-left: 5px;
} }
} }
@media (max-width: 410px) { @media (max-width: 410px) {
ul#posts { ul#posts {
grid-column-gap: 15px; grid-column-gap: 15px;
grid-row-gap: 10px grid-row-gap: 10px;
} }
.container-fluid,.container-lg,.container-md,.container-sm,.container-xl { .container-fluid,.container-lg,.container-md,.container-sm,.container-xl {
padding-right: 15px; padding-right: 15px;
padding-left: 15px padding-left: 15px;
} }
} }
@media (max-width: 991px) { @media (max-width: 991px) {
.navbar-nav { .navbar-nav {
width: 100%; width: 100%;
padding: 0 padding: 0;
} }
.navbar-expand-lg .navbar-nav .nav-link { .navbar-expand-lg .navbar-nav .nav-link {
margin: 0 margin: 0;
} }
.pagination-container-fluid { .pagination-container-fluid {
display: flex; display: flex;
justify-content: center; justify-content: center;
padding-top: 5px; padding-top: 5px;
margin-bottom: 0 margin-bottom: 0;
} }
.navbar { .navbar {
padding: .5rem 1rem 0 padding: .5rem 1rem 0;
} }
.navigation-links { .navigation-links {
border-color: transparent transparent transparent border-color: transparent transparent transparent;
} }
.pagination-container-fluid { .pagination-container-fluid {
margin-left: 0 margin-left: 0;
} }
} }

View File

@ -31,6 +31,7 @@ router.get(/\/(p\/\d+)?$/, async (req, res) => {
const data = { const data = {
items: query, items: query,
pagination: { pagination: {
start: 1,
end: pages, end: pages,
prev: (page > 1) ? page - 1 : null, prev: (page > 1) ? page - 1 : null,
next: (page < pages) ? page + 1 : null, next: (page < pages) ? page + 1 : null,
@ -80,6 +81,7 @@ router.get(/^\/([0-9]+)$/, async (req, res) => {
prev: query.prev ? query.prev : null, prev: query.prev ? query.prev : null,
title: `${query.id} - f0ck.me`, title: `${query.id} - f0ck.me`,
pagination: { pagination: {
start: qmax,
end: 1, end: 1,
prev: query.id + 1, prev: query.id + 1,
next: Math.max(query.id - 1, 1), next: Math.max(query.id - 1, 1),

View File

@ -17,9 +17,9 @@
<p>#f0ck specific don'ts:</p> <p>#f0ck specific don'ts:</p>
<ul> <ul>
<li>Animal cruelty is forbidden and will lead to an immediate ban</li> <li>Animal cruelty is forbidden and will lead to an immediate ban</li>
<li>All kinds of terrorist shit, we dont want any of it, f0ck off k?</li> <li>All kinds of terrorist shit, we dont want any of it, f0ck off k?</li>
<li>Snuff/Beastiality is not welcome here</li> <li>Snuff/Beastiality is not welcome here</li>
<li>pictures of you grandmas furburger also might be too hardcore for us</li> <li>pictures of you grandmas furburger also might be too hardcore for us</li>
</ul> </ul>
<h4>What the f0ck is a f0ck?</h4> <h4>What the f0ck is a f0ck?</h4>
<p>A f0ck is basically giving a fuck about some internet bullshit, like stupid images, videos and so on, but also <p>A f0ck is basically giving a fuck about some internet bullshit, like stupid images, videos and so on, but also
@ -30,7 +30,7 @@
<p>f0ck will f0ck any media link posted in the channel ending with: jpg|gif|png|webm|mp3|mp4|ogg|flac</p> <p>f0ck will f0ck any media link posted in the channel ending with: jpg|gif|png|webm|mp3|mp4|ogg|flac</p>
<p>If you don't want f0ck to f0ck it put !ignore behind your link. Example: <p>If you don't want f0ck to f0ck it put !ignore behind your link. Example:
https://retard-journal.com/stupidshit.png !ignore</a> https://retard-journal.com/stupidshit.png !ignore</a>
<p>f0ck will only f0ck media links with the maximum size of 40MB for cool people ??MB</p> <p>f0ck will only f0ck media links with the maximum size of 40MB for cool people ??MB</p>
<h4>Alternative domains</h4> <h4>Alternative domains</h4>
<p>f0ck onions and moons, but fockulite!</p> <p>f0ck onions and moons, but fockulite!</p>
<p>http://fockmoonsb24iczs7odozzy5uktlzbcgp337nabrgffzxv5ihabgpvyd.onion</p> <p>http://fockmoonsb24iczs7odozzy5uktlzbcgp337nabrgffzxv5ihabgpvyd.onion</p>

View File

@ -1,7 +1,7 @@
{{include main/header}} {{include main/header}}
<div class="container"> <div class="container">
<div class="contact"> <div class="contact">
<p>Got a problem? We have the answer: <a href="mailto:admin@f0ck.space">admin@f0ck.space</a></p> <p>Got a problem? We have the answer: <a href="mailto:admin@f0ck.me">admin@f0ck.me</a></p>
</div> </div>
</div> </div>
{{include main/footer}} {{include main/footer}}

View File

@ -4,12 +4,12 @@
<div class="next-post"> <div class="next-post">
{{if next}} {{if next}}
<a id="next" href="/{{=next}}"> <a id="next" href="/{{=next}}">
<div class="arrow-next">«</div> <div class="arrow-next">«</div>
</a> </a>
{{else}} {{else}}
<a id="next" href="#" style="color: #ccc !important;"> <a id="next" href="#" style="color: #ccc !important;">
<div class="arrow-next">«</div> <div class="arrow-next">«</div>
</a> </a>
{{/if}} {{/if}}
</div> </div>
<div class="media-object"> <div class="media-object">
@ -33,12 +33,12 @@
<div class="previous-post"> <div class="previous-post">
{{if prev}} {{if prev}}
<a id="prev" href="/{{=prev}}"> <a id="prev" href="/{{=prev}}">
<div class="arrow-prev">»</div> <div class="arrow-prev">»</div>
</a> </a>
{{else}} {{else}}
<a id="prev" href="#" style="color: #ccc !important;"> <a id="prev" href="#" style="color: #ccc !important;">
<div class="arrow-prev">»</div> <div class="arrow-prev">»</div>
</a> </a>
{{/if}} {{/if}}
</div> </div>
</div> </div>

View File

@ -1,15 +1,15 @@
{{if typeof pagination !== "undefined"}} {{if typeof pagination !== "undefined"}}
<nav class="pagination"> <nav class="pagination">
<a href="{{=pagination.link}}1" class="start{{if !pagination.prev}} disabled{{/if}}">&laquo;</a> <a href="{{=pagination.link}}{{=pagination.start}}" class="btn start{{if !pagination.prev}} disabled{{/if}}">&#11164;&#11164;</a>
<a href="{{=pagination.link}}{{=pagination.prev}}" class="prev{{if !pagination.prev}} disabled{{/if}}">&lsaquo;</a> <a href="{{=pagination.link}}{{=pagination.prev}}" class="btn prev{{if !pagination.prev}} disabled{{/if}}">&#11164;</a>
{{each pagination.cheat as i}} {{each pagination.cheat as i}}
{{if i == pagination.page}} {{if i == pagination.page}}
<span>{{=i}}</span> <span class="btn disabled">{{=i}}</span>
{{else}} {{else}}
<a href="{{=pagination.link}}{{=i}}">{{=i}}</a> <a href="{{=pagination.link}}{{=i}}" class="btn">{{=i}}</a>
{{/if}} {{/if}}
{{/each}} {{/each}}
<a href="{{=pagination.link}}{{=pagination.next}}" class="next{{if !pagination.next}} disabled{{/if}}">&rsaquo;</a> <a href="{{=pagination.link}}{{=pagination.next}}" class="btn next{{if !pagination.next}} disabled{{/if}}">&#11208;</a>
<a href="{{=pagination.link}}{{=pagination.end}}" class="start{{if !pagination.next}} disabled{{/if}}">&raquo;</a> <a href="{{=pagination.link}}{{=pagination.end}}" class="btn start{{if !pagination.next}} disabled{{/if}}">&#11208;&#11208;</a>
</nav> </nav>
{{/if}} {{/if}}

View File

@ -1,9 +1,9 @@
<nav class="navbar navbar-expand-lg"> <nav class="navbar navbar-expand-lg">
<a class="navbar-brand" href="/"> <a class="navbar-brand" href="/">
<span id="f0ck" width="" height="">F0CK</span> <span id="f0ck" width="" height="">F0CK</span>
</a> </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<div class="collapse navbar-collapse show" id="navbarSupportedContent"> <div class="collapse navbar-collapse show" id="navbarSupportedContent">
@ -19,9 +19,9 @@
<a class="nav-link" href="/contact"><span class="nav-link-identifier">Contact</span></a> <a class="nav-link" href="/contact"><span class="nav-link-identifier">Contact</span></a>
</li> </li>
</ul> </ul>
</div> </div>
<div class="pagination-container-fluid"> <div class="pagination-container-fluid">
{{include partials/pagination}} {{include partials/pagination}}
</div> </div>
</div> </div>
</nav> </nav>

View File

@ -1,16 +0,0 @@
{{include main/header}}
<div class="container-fluid">
{{include partials/pagination}}
<ul id="posts">
{{each items as item}}
<li class="post">
<a href="/{{=item.id}}" title="{{=item.mime}}">
<img class="thumb" src="/t/{{=item.id}}.png" />
<span class="item-mime">{{=item.mime}}</span>
</a>
</li>
{{/each}}
</ul>
{{include partials/pagination}}
</div>
{{include main/footer}}