rimgo/views/partials/post.hbs

27 lines
1.0 KiB
Handlebars
Raw Normal View History

2022-01-28 01:41:10 +00:00
<a href="{{Link}}">
2023-06-10 16:04:29 +00:00
<div class="bg-slate-600 rounded-lg">
2022-01-28 01:41:10 +00:00
{{#equal Cover.Type "video"}}
2022-02-02 15:22:48 +00:00
<video controls loop poster="/{{Cover.Id}}.webp" preload="none" width="100%" height="100%">
2022-01-28 01:41:10 +00:00
<source src="{{Cover.Url}}" type="video/mp4" />
</video>
{{/equal}}
{{#equal Cover.Type "image"}}
<img src="{{Cover.Url}}" loading="lazy" width="100%" height="100%">
{{/equal}}
2023-06-10 16:04:29 +00:00
<p class="m-2 text-ellipsis whitespace-nowrap overflow-hidden">{{Title}}</p>
2022-12-21 00:35:48 +00:00
<div class="flex gap-2 p-2">
2023-06-10 16:04:29 +00:00
<div class="flex gap-1">
<img class="invert icon" src="/static/icons/PhArrowFatUp.svg" alt="Points" width="18px" height="18px">
2022-01-28 01:41:10 +00:00
{{Points}}
2022-12-21 00:35:48 +00:00
</div>
2023-06-10 16:04:29 +00:00
<div class="flex gap-1">
<img class="invert icon" src="/static/icons/PhChat.svg" alt="Comments" width="18px" height="18px">
2022-01-28 01:41:10 +00:00
{{Comments}}
2022-12-21 00:35:48 +00:00
</div>
2023-06-10 16:04:29 +00:00
<div class="flex gap-1">
<img class="invert icon" src="/static/icons/PhEye.svg" alt="Views" width="18px" height="18px">
2022-01-28 01:41:10 +00:00
{{Views}}
2022-12-21 00:35:48 +00:00
</div>
2022-01-28 01:41:10 +00:00
</div>
</div>
</a>