50 lines
1.4 KiB
Handlebars
50 lines
1.4 KiB
Handlebars
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
|
||
|
<head>
|
||
|
<title>{{user.Username}}'s favorites - rimgo</title>
|
||
|
|
||
|
{{> partials/head }}
|
||
|
</head>
|
||
|
|
||
|
<body class="font-sans text-lg bg-slate-800 text-white">
|
||
|
{{> partials/nav }}
|
||
|
|
||
|
|
||
|
<header class="p-4 rounded-xl text-white mb-4" style="background-image: url('{{user.Cover}}');">
|
||
|
<div class="flex flex-col sm:flex-row items-center gap-2">
|
||
|
<img class="rounded-full" src="{{user.Avatar}}" width="72" height="72">
|
||
|
<div class="items-center sm:items-start text-center sm:text-left">
|
||
|
<h2 class="font-bold text-2xl">{{user.Username}}</h2>
|
||
|
<p>{{user.Points}} pts · {{user.CreatedAt}}</p>
|
||
|
</div>
|
||
|
<hr class="sm:border-0 flex-grow">
|
||
|
<div class="flex flex-col items-center sm:items-end">
|
||
|
<a href="/user/{{user.Username}}">Submissions</a>
|
||
|
<a href="/user/{{user.Username}}/favorites"><b>Favorites</b></a>
|
||
|
<a href="/user/{{user.Username}}/comments">Comments</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<p class="mt-2">{{user.Bio}}</p>
|
||
|
</header>
|
||
|
|
||
|
<main>
|
||
|
<div class="posts">
|
||
|
{{#each favorites}}
|
||
|
{{> partials/post }}
|
||
|
{{/each}}
|
||
|
</div>
|
||
|
|
||
|
<div class="flex mt-4 font-bold justify-between">
|
||
|
{{#noteq page "0" }}
|
||
|
<a href="{{channel.RelUrl}}?page={{prevPage}}">Previous page</a>
|
||
|
{{/noteq}}
|
||
|
<a href="{{channel.RelUrl}}?page={{nextPage}}">Next page</a>
|
||
|
</div>
|
||
|
</main>
|
||
|
|
||
|
{{> partials/footer }}
|
||
|
</body>
|
||
|
|
||
|
</html>
|