wip
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 18s

This commit is contained in:
Kibi Kelburton 2024-07-04 01:18:37 +02:00
parent 3b29f5f9d5
commit ce7f854dd6
2 changed files with 64 additions and 47 deletions

View File

@ -1618,9 +1618,10 @@ span.placeholder {
} }
@media (max-width: 1325px) { @media (max-width: 1325px) {
.ranking { /* ranking page - idea */
/* .ranking {
grid-template-columns: 1fr 1fr !important; grid-template-columns: 1fr 1fr !important;
} } */
.by-user, .by-user,
.by-stats, .by-stats,
@ -2401,7 +2402,7 @@ table.table tbody tr:nth-of-type(odd) {
.ranking { .ranking {
display: grid; display: grid;
grid-template-columns: auto; grid-template-columns: auto;
justify-content: center; /* justify-content: center; */
} }
.ranking div { .ranking div {
@ -2414,15 +2415,15 @@ table.table tbody tr:nth-of-type(odd) {
} }
.by-user { .by-user {
grid-column: 1; grid-row: 1;
} }
.by-stats { .by-stats {
grid-column: 3; grid-row: 3;
} }
.by-hoster { .by-hoster {
grid-column: 2; grid-row: 2;
} }
/* tags */ /* tags */
@ -3016,3 +3017,7 @@ input#s_avatar {
#s_avatar:hover { #s_avatar:hover {
background: #ffffff0f; background: #ffffff0f;
} }
.theforceofthree {
display: grid;
grid-template-columns: 0.4fr 1fr 0.4fr;
}

View File

@ -1,51 +1,63 @@
@include(snippets/header) @include(snippets/header)
<div id="main"> <div id="main">
<div class="topf0ckers"> <div class="topf0ckers">
<h3>Top f0ckers of all time <br>- Ranking -</h3> <h3>f0ck Rankings?</h3>
</div> </div>
<div class="ranking"> <div class="theforceofthree">
<div class="by-user"> <div class="triin">
<h3>Biggest taggers</h3> </div>
<table class="table"> <div class="ranking">
<tbody> <div class="by-user">
@for(let i = 0; i < list.length; i++) <h3>Biggest taggers</h3>
<table class="table">
<tr> <tr>
<td>{{ i + 1 }}</td> <th>Rank</th>
<td><a href="/{{ list[i].avatar }}"><img class="avatar" src="/t/{{ list[i].avatar }}.webp"></a></td> <th>Avatar</th>
<td>@if(list[i].admin)&#11088;&nbsp;@endif<a href="/user/{!! list[i].user !!}">{!! list[i].user !!}</a></td> <th>Username</th>
<td>{{ list[i].count }}</td> <th>Tagged</th>
</tr> </tr>
@endfor <tbody>
</tbody> @for(let i = 0; i < list.length; i++)
</table> <tr>
</div> <td>{{ i + 1 }}</td>
<div class="by-hoster"> <td><a href="/{{ list[i].avatar }}"><img class="avatar" src="/t/{{ list[i].avatar }}.webp"></a></td>
<h3>Top {{ hoster.length }} hoster</h3> <td>@if(list[i].admin)&#11088;&nbsp;@endif<a href="/user/{!! list[i].user !!}">{!! list[i].user !!}</a></td>
<table class="table"> <td>{{ list[i].count }}</td>
@each(hoster as host) </tr>
<tr><td>{{ host.part.length ? host.part : "Telegram" }}</td><td>{{ host.c }}</td></tr> @endfor
@endeach </tbody>
</table> </table>
</div> </div>
<div class="by-stats"> <div class="by-hoster">
<h3>Tag stats</h3> <h3>Top {{ hoster.length }} hoster</h3>
<table class="table"> <table class="table">
<tr><td>total</td><td>{{ stats.total }}</td></tr> @each(hoster as host)
<tr><td>tagged</td><td>{{ stats.tagged }}</td></tr> <tr><td>{{ host.part.length ? host.part : "Telegram" }}</td><td>{{ host.c }}</td></tr>
<tr><td>untagged</td><td>{{ stats.untagged }}</td></tr> @endeach
<tr><td>SFW</td><td>{{ stats.sfw }}</td></tr> </table>
<tr><td>NSFW</td><td>{{ stats.nsfw }}</td></tr> </div>
<tr><td>deleted</td><td>{{ stats.deleted }}</td></tr> <div class="by-stats">
<tr><td>missing ids</td><td>{{ stats.untracked }}</td></tr> <h3>Tag stats</h3>
</table> <table class="table">
<tr><td>total</td><td>{{ stats.total }}</td></tr>
<tr><td>tagged</td><td>{{ stats.tagged }}</td></tr>
<tr><td>untagged</td><td>{{ stats.untagged }}</td></tr>
<tr><td>SFW</td><td>{{ stats.sfw }}</td></tr>
<tr><td>NSFW</td><td>{{ stats.nsfw }}</td></tr>
<tr><td>deleted</td><td>{{ stats.deleted }}</td></tr>
<tr><td>missing ids</td><td>{{ stats.untracked }}</td></tr>
</table>
<h3>Top f0cks</h3> <h3>Top f0cks</h3>
<table class="table"> <table class="table">
@each(favotop as favo) @each(favotop as favo)
<tr><td><a href="/{{ favo.item_id }}">{{ favo.item_id }}</a></td><td>{{ favo.favs }}</td></tr> <tr><td><a href="/{{ favo.item_id }}">{{ favo.item_id }}</a></td><td>{{ favo.favs }}</td></tr>
@endeach @endeach
</table> </table>
</div>
</div> </div>
</div> <div class="triout">
</div>
</div>
</div> </div>
@include(snippets/footer) @include(snippets/footer)