rimgo/views/user.hbs

52 lines
1.4 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}}');">
2023-08-16 13:45:45 +00:00
<div class="flex flex-col sm:flex-row items-center gap-2">
2023-06-10 16:04:29 +00:00
<img class="rounded-full" src="{{user.Avatar}}" width="72" height="72">
2023-08-16 13:45:45 +00:00
<div class="items-center sm:items-start text-center sm:text-left">
2023-06-10 16:04:29 +00:00
<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>
<hr class="sm:border-0 flex-grow">
2023-08-16 13:45:45 +00:00
<div class="flex flex-col items-center sm:items-end">
<a href="/user/{{user.Username}}"><b>Submissions</b></a>
<a href="/user/{{user.Username}}/comments">Comments</a>
</div>
2022-01-28 01:41:10 +00:00
</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>