rimgo/views/user.hbs

47 lines
1.1 KiB
Handlebars
Raw Normal View History

2022-01-28 01:41:10 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{user.Username}} - rimgo</title>
{{> partials/head }}
</head>
2023-06-10 16:04:29 +00:00
<body class="font-sans text-lg bg-slate-800 text-white">
{{> partials/nav }}
<section class="my-4 w-full flex flex-col items-center">
{{> partials/searchBar }}
</section>
2023-06-10 16:04:29 +00:00
<header class="p-4 rounded-xl text-white mb-4" style="background-image: url('{{user.Cover}}');">
<div class="flex items-center gap-2">
<img class="rounded-full" src="{{user.Avatar}}" width="72" height="72">
<div>
<h2 class="font-bold text-2xl">{{user.Username}}</h2>
<p>{{user.Points}} pts · {{user.CreatedAt}}</p>
2022-01-28 01:41:10 +00:00
</div>
</div>
2023-06-10 16:04:29 +00:00
<p class="mt-2">{{user.Bio}}</p>
</header>
2022-01-28 01:41:10 +00:00
2023-06-10 16:04:29 +00:00
<main>
2022-01-28 01:41:10 +00:00
<div class="posts">
{{#each submissions}}
{{> partials/post }}
{{/each}}
</div>
2022-02-02 15:22:48 +00:00
2023-06-10 16:04:29 +00:00
<div class="mt-4 font-bold">
2022-02-02 15:22:48 +00:00
{{#equal page "0" }}
{{else}}
<a href="{{channel.RelUrl}}?page={{prevPage}}">Previous page</a>
{{/equal}}
<a href="{{channel.RelUrl}}?page={{nextPage}}">Next page</a>
</div>
2022-01-28 01:41:10 +00:00
</main>
{{> partials/footer }}
</body>
</html>